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
-
final class SortingTermVectorsConsumer extends TermVectorsConsumer
-
-
Field Summary
Fields Modifier and Type Field Description private static TermVectorsFormat
TEMP_TERM_VECTORS_FORMAT
(package private) TrackingTmpOutputDirectoryWrapper
tmpDirectory
-
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
Constructors Constructor Description SortingTermVectorsConsumer(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort()
(package private) void
flush(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms)
(package private) void
initTermVectorsWriter()
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 Detail
-
TEMP_TERM_VECTORS_FORMAT
private static final TermVectorsFormat TEMP_TERM_VECTORS_FORMAT
-
tmpDirectory
TrackingTmpOutputDirectoryWrapper tmpDirectory
-
-
Constructor Detail
-
SortingTermVectorsConsumer
SortingTermVectorsConsumer(IntBlockPool.Allocator intBlockAllocator, ByteBlockPool.Allocator byteBlockAllocator, Directory directory, SegmentInfo info, Codec codec)
-
-
Method Detail
-
flush
void flush(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms) throws java.io.IOException
- Overrides:
flush
in classTermVectorsConsumer
- Throws:
java.io.IOException
-
initTermVectorsWriter
void initTermVectorsWriter() throws java.io.IOException
- Overrides:
initTermVectorsWriter
in classTermVectorsConsumer
- Throws:
java.io.IOException
-
abort
public void abort()
- Overrides:
abort
in classTermVectorsConsumer
-
writeTermVectors
private static void writeTermVectors(TermVectorsWriter writer, Fields vectors, FieldInfos fieldInfos) throws java.io.IOException
Safe (but, slowish) default method to copy every vector field in the providedTermVectorsWriter
.- Throws:
java.io.IOException
-
-