java.lang.Object
org.apache.lucene.index.TermsHash
org.apache.lucene.index.TermVectorsConsumer
- Direct Known Subclasses:
SortingTermVectorsConsumer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Accountableprotected final Codecprotected final Directory(package private) final BytesRefScratch term used by TermVectorsConsumerPerField.finishDocument.private booleanprotected final SegmentInfo(package private) intprivate intprivate TermVectorsConsumerPerField[](package private) final ByteSliceReader(package private) final ByteSliceReaderUsed by TermVectorsConsumerPerField when serializing the term vectors.(package private) TermVectorsWriterFields inherited from class org.apache.lucene.index.TermsHash
bytePool, bytesUsed, intPool, nextTermsHash, termBytePool -
Constructor Summary
ConstructorsConstructorDescriptionTermVectorsConsumer(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()addField(FieldInvertState invertState, FieldInfo fieldInfo) (package private) voidaddFieldToFlush(TermVectorsConsumerPerField fieldToFlush) (package private) voidfill(int docID) Fills in no-term-vectors for all docs we haven't seen since the last doc that had term vectors.(package private) voidfinishDocument(int docID) (package private) voidflush(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) (package private) void(package private) void(package private) void(package private) void
-
Field Details
-
directory
-
info
-
codec
-
writer
TermVectorsWriter writer -
flushTerm
Scratch term used by TermVectorsConsumerPerField.finishDocument. -
vectorSliceReaderPos
Used by TermVectorsConsumerPerField when serializing the term vectors. -
vectorSliceReaderOff
-
hasVectors
private boolean hasVectors -
numVectorFields
private int numVectorFields -
lastDocID
int lastDocID -
perFields
-
accountable
Accountable accountable
-
-
Constructor Details
-
TermVectorsConsumer
TermVectorsConsumer(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec)
-
-
Method Details
-
flush
void flush(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) throws IOException- Overrides:
flushin classTermsHash- Throws:
IOException
-
fill
Fills in no-term-vectors for all docs we haven't seen since the last doc that had term vectors.- Throws:
IOException
-
initTermVectorsWriter
- Throws:
IOException
-
setHasVectors
void setHasVectors() -
finishDocument
- Overrides:
finishDocumentin classTermsHash- Throws:
IOException
-
abort
public void abort() -
resetFields
void resetFields() -
addField
-
addFieldToFlush
-
startDocument
void startDocument()- Overrides:
startDocumentin classTermsHash
-