ATLAS Offline Software
|
#include <Implicitcollection/ImplicitCollectionIterator.h>
Public Member Functions | |
ImplicitCollectionIterator (IContainer &container, const pool::ICollectionDescription &description) | |
Constructor. More... | |
virtual void | setCondition (const std::string &whereClause, coral::AttributeList *attributeBindData=0, TokenList *tokenBindData=0) |
Sets the query. More... | |
virtual const std::string & | whereClause () const |
Returns the where clause of the query. More... | |
virtual pool::ICollectionCursor & | execute () |
Processes the query and returns a cursor over the query result. More... | |
virtual bool | next () |
Retrieves the next token in the collection. More... | |
virtual Token * | token () const |
Returns the token of the current position. More... | |
virtual const Token & | eventRef () const |
Returns the event reference Token for the current row. More... | |
virtual const CollectionRowBuffer & | currentRow () const |
Returns the selected Tokens and Attributes for the current row of the query result set. More... | |
virtual bool | seek (long long int position) |
Seek to a given position in the collection. More... | |
virtual int | size () |
Return the size of the collection. More... | |
virtual | ~ImplicitCollectionIterator () |
Destructor. More... | |
virtual void | addToOutputList (const std::string &) |
Adds a column to the query select list. More... | |
virtual void | addToOutputList (const std::vector< std::string > &) |
Adds one or more columns to the query select list. More... | |
virtual void | selectAllAttributes () |
Adds all Attribute columns to the query select list. More... | |
virtual void | selectAllTokens () |
Adds all Token columns to the query select list. More... | |
virtual void | selectAll () |
Adds all Token and Attribute columns to the query select list. More... | |
virtual void | addToCollectionFragmentList (const std::string &) |
virtual void | addToCollectionFragmentList (const std::vector< std::string > &) |
virtual void | addAllCollectionFragments () |
virtual void | setRowCacheSize (int) |
Sets the cache size used to store the query result. More... | |
virtual void | close () |
Cleanup. More... | |
virtual void | skipEventReference (bool=true) |
Tell the query to not include the primary event reference in the result by default (it can still beselected manually) Only relevant for explicit collections with attributes. More... | |
Protected Attributes | |
IContainer & | m_container |
ITokenIterator * | m_tokenIterator |
Token * | m_token |
CollectionRowBuffer | m_rowBuffer |
std::string | m_whereClause |
Iterator over an implicit collection. Single class implementing both Query and Cursor interfaces to simplify backward compatibility
Definition at line 37 of file ImplicitCollectionIterator.h.
pool::ImplicitCollectionIterator::ImplicitCollectionIterator | ( | IContainer & | container, |
const pool::ICollectionDescription & | description | ||
) |
Constructor.
|
virtual |
Destructor.
|
inlinevirtual |
Definition at line 109 of file ImplicitCollectionIterator.h.
|
inlinevirtual |
Definition at line 107 of file ImplicitCollectionIterator.h.
|
inlinevirtual |
Definition at line 108 of file ImplicitCollectionIterator.h.
|
inlinevirtual |
Adds a column to the query select list.
columnName | Name of Attribute column to select. |
Implements pool::ICollectionQuery.
Definition at line 102 of file ImplicitCollectionIterator.h.
|
inlinevirtual |
Adds one or more columns to the query select list.
columnNames | Names of Attribute columns to select. |
Implements pool::ICollectionQuery.
Definition at line 103 of file ImplicitCollectionIterator.h.
|
inlinevirtual |
Cleanup.
Implements pool::ICollectionCursor.
Definition at line 112 of file ImplicitCollectionIterator.h.
|
virtual |
Returns the selected Tokens and Attributes for the current row of the query result set.
Implements pool::ICollectionCursor.
Returns the event reference Token for the current row.
Implements pool::ICollectionCursor.
Definition at line 76 of file ImplicitCollectionIterator.h.
|
virtual |
Processes the query and returns a cursor over the query result.
this method returns self
Implements pool::ICollectionQuery.
|
virtual |
Retrieves the next token in the collection.
Returns false if the end of the collection has been reached.
Implements pool::ICollectionCursor.
|
virtual |
Seek to a given position in the collection.
position | The position to which to seek. |
Implements pool::IPositionSeek.
|
inlinevirtual |
Adds all Token and Attribute columns to the query select list.
Implements pool::ICollectionQuery.
Definition at line 106 of file ImplicitCollectionIterator.h.
|
inlinevirtual |
Adds all Attribute columns to the query select list.
Implements pool::ICollectionQuery.
Definition at line 104 of file ImplicitCollectionIterator.h.
|
inlinevirtual |
Adds all Token columns to the query select list.
Implements pool::ICollectionQuery.
Definition at line 105 of file ImplicitCollectionIterator.h.
|
virtual |
Sets the query.
whereClause | The query. |
attributeBindData | - unused |
tokenBindData | - unused |
Implements pool::ICollectionQuery.
|
inlinevirtual |
Sets the cache size used to store the query result.
rowCacheSize | Number of rows stored in cache before cache is flushed. |
Implements pool::ICollectionQuery.
Definition at line 110 of file ImplicitCollectionIterator.h.
|
virtual |
Return the size of the collection.
|
inlinevirtualinherited |
Tell the query to not include the primary event reference in the result by default (it can still beselected manually) Only relevant for explicit collections with attributes.
skip | if true (the default) then skip the primary event reference |
Reimplemented in pool::RootCollection::RootCollectionQuery, and pool::RootCollection::RNTCollectionQuery.
Definition at line 98 of file ICollectionQuery.h.
|
virtual |
Returns the token of the current position.
|
virtual |
Returns the where clause of the query.
Implements pool::ICollectionQuery.
|
protected |
Definition at line 116 of file ImplicitCollectionIterator.h.
|
mutableprotected |
Definition at line 120 of file ImplicitCollectionIterator.h.
|
protected |
Definition at line 118 of file ImplicitCollectionIterator.h.
|
protected |
Definition at line 117 of file ImplicitCollectionIterator.h.
|
protected |
Definition at line 122 of file ImplicitCollectionIterator.h.