strus
0.17
|
Interface of a strus IR storage. More...
#include <storageClientInterface.hpp>
Public Types | |
enum | DocumentStatisticsType { StatNofTerms = 1, StatNofTermOccurrencies = 2 } |
Enumeration of document statistics. More... | |
Public Member Functions | |
virtual | ~StorageClientInterface () |
Destructor. More... | |
virtual std::string | config () const =0 |
Get the interpreted configuration this storage client was created with. More... | |
virtual PostingIteratorInterface * | createTermPostingIterator (const std::string &type, const std::string &value, const Index &length) const =0 |
Create an iterator on the occurrencies of a term in the storage. More... | |
virtual StructIteratorInterface * | createStructIterator (const std::string &structstr) const =0 |
Create an iterator on the structures (relations of ordinal position ranges) of a defined type. More... | |
virtual PostingIteratorInterface * | createBrowsePostingIterator (const MetaDataRestrictionInterface *restriction, const Index &maxpos) const =0 |
Create an iterator on all enumerable postings of document selected by a metadata restriction. More... | |
virtual PostingIteratorInterface * | createFieldPostingIterator (const std::string &meta_fieldStart, const std::string &meta_fieldEnd) const =0 |
Create an iterator postings specified as field in the meta data (by start and end position) More... | |
virtual ForwardIteratorInterface * | createForwardIterator (const std::string &type) const =0 |
Create a viewer to inspect the term stored values with the forward index of the storage. More... | |
virtual DocumentTermIteratorInterface * | createDocumentTermIterator (const std::string &type) const =0 |
Create an iterator on term occurrencies in documents (support for feature selection) More... | |
virtual InvAclIteratorInterface * | createInvAclIterator (const std::string &username) const =0 |
Create a an iterator on the numbers of documents a specified user is allowed to see. More... | |
virtual AclReaderInterface * | createAclReader () const =0 |
Create a an iterator on the access control lists of documents. More... | |
virtual Index | nofDocumentsInserted () const =0 |
Get the number of documents inserted in this storage instance. More... | |
virtual Index | documentFrequency (const std::string &type, const std::string &term) const =0 |
Get the local document frequency of a feature in this storage instance. More... | |
virtual Index | maxDocumentNumber () const =0 |
Get the highest document number used in this stogage. More... | |
virtual Index | documentNumber (const std::string &docid) const =0 |
Get the local internal document number. More... | |
virtual Index | termTypeNumber (const std::string &type) const =0 |
Get the local internal term type number. More... | |
virtual bool | isForwardIndexTerm (const std::string &type) const =0 |
Evaluate if there exists forward index blocks for this type. More... | |
virtual ValueIteratorInterface * | createTermTypeIterator () const =0 |
Create an iterator on the term types inserted. More... | |
virtual ValueIteratorInterface * | createStructTypeIterator () const =0 |
Create an iterator on the structure types inserted. More... | |
virtual ValueIteratorInterface * | createTermValueIterator () const =0 |
Create an iterator on the term value inserted. More... | |
virtual ValueIteratorInterface * | createDocIdIterator () const =0 |
Create an iterator on the document identifiers inserted. More... | |
virtual ValueIteratorInterface * | createUserNameIterator () const =0 |
Create an iterator on the user names used in document access restrictions. More... | |
virtual Index | documentStatistics (const Index &docno, const DocumentStatisticsType &stat, const std::string &type) const =0 |
Get one specified element of the documents statistics for a term type on the local server node. More... | |
virtual MetaDataReaderInterface * | createMetaDataReader () const =0 |
Create an interface to access items of document metadata. More... | |
virtual MetaDataRestrictionInterface * | createMetaDataRestriction () const =0 |
Create an object for restrictions on metadata. More... | |
virtual AttributeReaderInterface * | createAttributeReader () const =0 |
Create an interface to access attributes attached to documents for representation. More... | |
virtual StorageTransactionInterface * | createTransaction ()=0 |
Create an insert/update transaction object. More... | |
virtual StatisticsIteratorInterface * | createAllStatisticsIterator (bool sign=true)=0 |
Creates an iterator on storage statistics messages for initialization/deregistration. More... | |
virtual StatisticsIteratorInterface * | createChangeStatisticsIterator ()=0 |
Creates an iterator on the storage statistics messages created by updates of this storage. More... | |
virtual const StatisticsProcessorInterface * | getStatisticsProcessor () const =0 |
Get the processing message interface for introspecting and packing messages outside the queue context. More... | |
virtual StorageDocumentInterface * | createDocumentChecker (const std::string &docid, const std::string &logfilename) const =0 |
Create an interface to verify, if the contents of a document are inserted correctly into the storage. The checking is invoked by calling the StorageDocumentInterface::done() method after the definition of all elements. More... | |
virtual bool | checkStorage (std::ostream &errorlog) const =0 |
Iterate through all key/value pairs and check their data for validity. More... | |
virtual void | close ()=0 |
Close client connection and eventually do some cleanup. More... | |
Interface of a strus IR storage.
|
inlinevirtual |
Destructor.
|
pure virtual |
Iterate through all key/value pairs and check their data for validity.
[out] | errorlog | stream for reporting errors |
|
pure virtual |
Close client connection and eventually do some cleanup.
|
pure virtual |
Get the interpreted configuration this storage client was created with.
|
pure virtual |
Create a an iterator on the access control lists of documents.
|
pure virtual |
Creates an iterator on storage statistics messages for initialization/deregistration.
[in] | sign | true = positive, false = negative, means all offsets are inverted and isnew is false too (used for deregistration) |
|
pure virtual |
Create an interface to access attributes attached to documents for representation.
|
pure virtual |
Create an iterator on all enumerable postings of document selected by a metadata restriction.
[in] | restriction | restriction on metadata that have to be fulfilled by the documents referenced in the result posting sets. |
[in] | maxpos | maximum position visited. |
|
pure virtual |
Creates an iterator on the storage statistics messages created by updates of this storage.
|
pure virtual |
Create an iterator on the document identifiers inserted.
|
pure virtual |
Create an interface to verify, if the contents of a document are inserted correctly into the storage. The checking is invoked by calling the StorageDocumentInterface::done() method after the definition of all elements.
[in] | docid | identifier (URI) of the document to check |
[in] | logfilename | Where to log checking failures ("-" for stdout) |
|
pure virtual |
Create an iterator on term occurrencies in documents (support for feature selection)
[in] | type | type name of the term |
|
pure virtual |
Create an iterator postings specified as field in the meta data (by start and end position)
[in] | meta_fieldStart | meta data element that specifies the start of the field |
[in] | meta_fieldEnd | meta data element that specifies the end of the field (first position not belonging to the field anymore) |
|
pure virtual |
Create a viewer to inspect the term stored values with the forward index of the storage.
[in] | type | type name of the term to be inspected |
|
pure virtual |
Create a an iterator on the numbers of documents a specified user is allowed to see.
[in] | username | name of the user |
|
pure virtual |
Create an interface to access items of document metadata.
|
pure virtual |
Create an object for restrictions on metadata.
|
pure virtual |
Create an iterator on the structures (relations of ordinal position ranges) of a defined type.
[in] | structstr | name of the structure to get the iterator on |
|
pure virtual |
Create an iterator on the structure types inserted.
|
pure virtual |
Create an iterator on the occurrencies of a term in the storage.
[in] | type | type name of the term |
[in] | value | value string of the term |
[in] | length | ordinal position length assigned to the term (may differ from 1 for terms representing multipart patterns) |
|
pure virtual |
Create an iterator on the term types inserted.
|
pure virtual |
Create an iterator on the term value inserted.
|
pure virtual |
Create an insert/update transaction object.
|
pure virtual |
Create an iterator on the user names used in document access restrictions.
|
pure virtual |
Get the local document frequency of a feature in this storage instance.
[in] | type | the term type addressed |
[in] | term | the term value addressed |
|
pure virtual |
Get the local internal document number.
[in] | docid | document id of the document inserted |
|
pure virtual |
Get one specified element of the documents statistics for a term type on the local server node.
[in] | docno | the local internal document number addressed (return value of documentNumber( const std::string&) const) |
[in] | stat | the enumeration value of the statistics to get |
[in] | type | the term type addressed |
|
pure virtual |
Get the processing message interface for introspecting and packing messages outside the queue context.
|
pure virtual |
Evaluate if there exists forward index blocks for this type.
[in] | type | term type name |
|
pure virtual |
Get the highest document number used in this stogage.
|
pure virtual |
Get the number of documents inserted in this storage instance.
|
pure virtual |
Get the local internal term type number.
[in] | type | term type name |