Package org.apache.lucene.index
Class SortingTermVectorsConsumer
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) TrackingTmpOutputDirectoryWrapper
Fields inherited from class org.apache.lucene.index.TermVectorsConsumer
accountable, codec, directory, flushTerm, info, lastDocID, vectorSliceReaderOff, vectorSliceReaderPos, writer
Fields 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 TypeMethodDescriptionvoid
abort()
(package private) void
flush
(Map<String, TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) (package private) void
private static void
writeTermVectors
(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:
flush
in classTermVectorsConsumer
- Throws:
IOException
-
initTermVectorsWriter
- Overrides:
initTermVectorsWriter
in classTermVectorsConsumer
- Throws:
IOException
-
abort
public void abort()- Overrides:
abort
in 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
-