java.lang.Object
org.apache.lucene.index.TermsHash
org.apache.lucene.index.TermVectorsConsumer
org.apache.lucene.index.SortingTermVectorsConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TermVectorsFormat(package private) TrackingTmpOutputDirectoryWrapperFields inherited from class org.apache.lucene.index.TermVectorsConsumer
accountable, codec, directory, flushTerm, info, lastDocID, vectorSliceReaderOff, vectorSliceReaderPos, writerFields inherited from class org.apache.lucene.index.TermsHash
bytePool, bytesUsed, intPool, nextTermsHash, termBytePool -
Constructor Summary
ConstructorsConstructorDescriptionSortingTermVectorsConsumer(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()(package private) voidflush(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) (package private) voidprivate static voidwriteTermVectors(TermVectorsWriter writer, Fields vectors, FieldInfos fieldInfos) Safe (but, slowish) default method to copy every vector field in the providedTermVectorsWriter.Methods inherited from class org.apache.lucene.index.TermVectorsConsumer
addField, addFieldToFlush, fill, finishDocument, resetFields, setHasVectors, startDocument
-
Field Details
-
TEMP_TERM_VECTORS_FORMAT
-
tmpDirectory
TrackingTmpOutputDirectoryWrapper tmpDirectory
-
-
Constructor Details
-
SortingTermVectorsConsumer
SortingTermVectorsConsumer(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 classTermVectorsConsumer- Throws:
IOException
-
initTermVectorsWriter
- Overrides:
initTermVectorsWriterin classTermVectorsConsumer- Throws:
IOException
-
abort
public void abort()- Overrides:
abortin classTermVectorsConsumer
-
writeTermVectors
private static void writeTermVectors(TermVectorsWriter writer, Fields vectors, FieldInfos fieldInfos) throws IOException Safe (but, slowish) default method to copy every vector field in the providedTermVectorsWriter.- Throws:
IOException
-