Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
81 void skipField(
bool binary,
bool compressed, int32_t toRead);
ReaderPtr readerValue()
The value of the field as a Reader, or null. If null, the String value, binary value,...
FieldsReader(const DirectoryPtr &d, const String &segment, const FieldInfosPtr &fn)
int64_t pointer
Definition: FieldsReader.h:108
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: FieldsReader.h:97
void skipField(bool binary, bool compressed, int32_t toRead)
virtual ByteArray getBinaryValue(ByteArray result)
Return the raw byte[] for the binary field.
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
int32_t numTotalDocs
Definition: FieldsReader.h:40
virtual String name()
Returns the name of the field as an interned string. For example "date", "title", "body",...
General purpose thread-local map.
Definition: CloseableThreadLocal.h:16
void addFieldLazy(const DocumentPtr &doc, const FieldInfoPtr &fi, bool binary, bool compressed, bool tokenize)
bool isCompressed
Definition: FieldsReader.h:111
void skipField(bool binary, bool compressed)
Skip the field. We still have to read some of the information about the field, but can skip past the ...
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition: LuceneTypes.h:127
boost::shared_ptr< Reader > ReaderPtr
Definition: LuceneTypes.h:547
void close()
Closes the underlying IndexInput streams, including any ones associated with a lazy implementation of...
IndexInputPtr indexStream
Definition: FieldsReader.h:39
Definition: AbstractField.h:14
virtual bool isBinary()
True if the value of the field is stored as binary.
FieldsReader(const DirectoryPtr &d, const String &segment, const FieldInfosPtr &fn, int32_t readBufferSize, int32_t docStoreOffset=-1, int32_t size=0)
IndexInputPtr cloneableFieldsStream
Definition: FieldsReader.h:32
CloseableThreadLocal< IndexInput > fieldsStreamTL
Definition: FieldsReader.h:49
IndexInputPtr getFieldStream()
TokenStreamPtr tokenStreamValue()
The value of the field as a TokenStream, or null. If null, the Reader value, String value,...
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a cloned FieldsReader that shares open IndexInputs with the original one. It is the caller's ...
int32_t format
Definition: FieldsReader.h:43
IndexInputPtr fieldsStream
Definition: FieldsReader.h:36
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
String stringValue()
The value of the field as a String, or null. If null, the Reader value, binary value,...
Base class for all Lucene classes.
Definition: LuceneObject.h:31
bool closed
Definition: FieldsReader.h:42
boost::weak_ptr< FieldsReader > FieldsReaderWeakPtr
Definition: LuceneTypes.h:131
FieldInfosPtr fieldInfos
Definition: FieldsReader.h:26
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
Class responsible for access to stored document fields. It uses <segment>.fdt and <segment>....
Definition: FieldsReader.h:16
void setPointer(int64_t pointer)
Store
Specifies whether and how a field should be stored.
Definition: AbstractField.h:17
FieldsReader(const FieldInfosPtr &fieldInfos, int32_t numTotalDocs, int32_t size, int32_t format, int32_t formatSize, int32_t docStoreOffset, const IndexInputPtr &cloneableFieldsStream, const IndexInputPtr &cloneableIndexStream)
Used only by clone.
int32_t addFieldSize(const DocumentPtr &doc, const FieldInfoPtr &fi, bool binary, bool compressed)
Add the size of field as a byte[] containing the 4 bytes of the integer byte size (high order byte fi...
void addField(const DocumentPtr &doc, const FieldInfoPtr &fi, bool binary, bool compressed, bool tokenize)
ByteArray uncompress(ByteArray b)
IndexInputPtr rawDocs(Collection< int32_t > lengths, int32_t startDocID, int32_t numDocs)
Returns the length in bytes of each raw document in a contiguous range of length numDocs starting wit...
bool isOriginal
Definition: FieldsReader.h:50
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
void ConstructReader(const DirectoryPtr &d, const String &segment, const FieldInfosPtr &fn, int32_t readBufferSize, int32_t docStoreOffset, int32_t size)
int32_t docStoreOffset
Definition: FieldsReader.h:47
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63
boost::shared_ptr< FieldSelector > FieldSelectorPtr
Definition: LuceneTypes.h:77
void setToRead(int32_t toRead)
Index
Specifies whether and how a field should be indexed.
Definition: AbstractField.h:28
void seekIndex(int32_t docID)
boost::shared_ptr< FieldsReader > FieldsReaderPtr
Definition: LuceneTypes.h:131
DocumentPtr doc(int32_t n, const FieldSelectorPtr &fieldSelector)
LazyField(const FieldsReaderPtr &reader, const String &name, Store store, int32_t toRead, int64_t pointer, bool isBinary, bool isCompressed)
String uncompressString(ByteArray b)
int32_t formatSize
Definition: FieldsReader.h:44
int32_t toRead
Definition: FieldsReader.h:107
LazyField(const FieldsReaderPtr &reader, const String &name, Store store, Index index, TermVector termVector, int32_t toRead, int64_t pointer, bool isBinary, bool isCompressed)
IndexInputPtr cloneableIndexStream
Definition: FieldsReader.h:38
TermVector
Specifies whether and how a field should have term vectors.
Definition: AbstractField.h:57
int32_t _size
Definition: FieldsReader.h:41
FieldsReaderWeakPtr _reader
Definition: FieldsReader.h:103
clucene.sourceforge.net