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 TermVectorsFormatTEMP_TERM_VECTORS_FORMAT(package private) TrackingTmpOutputDirectoryWrappertmpDirectory-
Fields inherited from class org.apache.lucene.index.TermVectorsConsumer
accountable, codec, directory, flushTerm, hasVectors, 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 voidabort()(package private) voidflush(java.util.Map<java.lang.String,TermsHashPerField> fieldsToFlush, SegmentWriteState state, Sorter.DocMap sortMap, NormsProducer norms)(package private) voidinitTermVectorsWriter()private 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, 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:
flushin classTermVectorsConsumer- Throws:
java.io.IOException
-
initTermVectorsWriter
void initTermVectorsWriter() throws java.io.IOException- Overrides:
initTermVectorsWriterin classTermVectorsConsumer- Throws:
java.io.IOException
-
abort
public void abort()
- Overrides:
abortin 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
-
-