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 (package private) TrackingTmpOutputDirectoryWrapper
tmpDirectory
-
Fields inherited from class org.apache.lucene.index.TermVectorsConsumer
docWriter, flushTerm, hasVectors, lastDocID, vectorSliceReaderOff, vectorSliceReaderPos, writer
-
Fields inherited from class org.apache.lucene.index.TermsHash
bytePool, bytesUsed, intPool, nextTermsHash, termBytePool, trackAllocations
-
-
Constructor Summary
Constructors Constructor Description SortingTermVectorsConsumer(DocumentsWriterPerThread docWriter)
-
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, startDocument
-
-
-
-
Field Detail
-
tmpDirectory
TrackingTmpOutputDirectoryWrapper tmpDirectory
-
-
Constructor Detail
-
SortingTermVectorsConsumer
public SortingTermVectorsConsumer(DocumentsWriterPerThread docWriter)
-
-
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
-
-