- java.lang.Object
-
- org.apache.lucene.index.StoredFieldsConsumer
-
- org.apache.lucene.index.SortingStoredFieldsConsumer
-
final class SortingStoredFieldsConsumer extends StoredFieldsConsumer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SortingStoredFieldsConsumer.CopyVisitor
A visitor that copies every field it sees in the providedStoredFieldsWriter
.
-
Field Summary
Fields Modifier and Type Field Description (package private) static CompressionMode
NO_COMPRESSION
private static StoredFieldsFormat
TEMP_STORED_FIELDS_FORMAT
(package private) TrackingTmpOutputDirectoryWrapper
tmpDirectory
-
Fields inherited from class org.apache.lucene.index.StoredFieldsConsumer
accountable, codec, directory, info, writer
-
-
Constructor Summary
Constructors Constructor Description SortingStoredFieldsConsumer(Codec codec, Directory directory, SegmentInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
abort()
(package private) void
flush(SegmentWriteState state, Sorter.DocMap sortMap)
protected void
initStoredFieldsWriter()
-
Methods inherited from class org.apache.lucene.index.StoredFieldsConsumer
finish, finishDocument, startDocument, writeField
-
-
-
-
Field Detail
-
NO_COMPRESSION
static final CompressionMode NO_COMPRESSION
-
TEMP_STORED_FIELDS_FORMAT
private static final StoredFieldsFormat TEMP_STORED_FIELDS_FORMAT
-
tmpDirectory
TrackingTmpOutputDirectoryWrapper tmpDirectory
-
-
Constructor Detail
-
SortingStoredFieldsConsumer
SortingStoredFieldsConsumer(Codec codec, Directory directory, SegmentInfo info)
-
-
Method Detail
-
initStoredFieldsWriter
protected void initStoredFieldsWriter() throws java.io.IOException
- Overrides:
initStoredFieldsWriter
in classStoredFieldsConsumer
- Throws:
java.io.IOException
-
flush
void flush(SegmentWriteState state, Sorter.DocMap sortMap) throws java.io.IOException
- Overrides:
flush
in classStoredFieldsConsumer
- Throws:
java.io.IOException
-
abort
void abort()
- Overrides:
abort
in classStoredFieldsConsumer
-
-