Package org.apache.lucene.index
Class StoredFieldsConsumer
- java.lang.Object
-
- org.apache.lucene.index.StoredFieldsConsumer
-
- Direct Known Subclasses:
SortingStoredFieldsConsumer
class StoredFieldsConsumer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Accountable
accountable
(package private) Codec
codec
(package private) Directory
directory
(package private) SegmentInfo
info
private int
lastDoc
(package private) StoredFieldsWriter
writer
-
Constructor Summary
Constructors Constructor Description StoredFieldsConsumer(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
finish(int maxDoc)
(package private) void
finishDocument()
(package private) void
flush(SegmentWriteState state, Sorter.DocMap sortMap)
protected void
initStoredFieldsWriter()
(package private) void
startDocument(int docID)
(package private) void
writeField(FieldInfo info, IndexableField field)
-
-
-
Field Detail
-
codec
final Codec codec
-
directory
final Directory directory
-
info
final SegmentInfo info
-
writer
StoredFieldsWriter writer
-
accountable
Accountable accountable
-
lastDoc
private int lastDoc
-
-
Constructor Detail
-
StoredFieldsConsumer
StoredFieldsConsumer(Codec codec, Directory directory, SegmentInfo info)
-
-
Method Detail
-
initStoredFieldsWriter
protected void initStoredFieldsWriter() throws java.io.IOException
- Throws:
java.io.IOException
-
startDocument
void startDocument(int docID) throws java.io.IOException
- Throws:
java.io.IOException
-
writeField
void writeField(FieldInfo info, IndexableField field) throws java.io.IOException
- Throws:
java.io.IOException
-
finishDocument
void finishDocument() throws java.io.IOException
- Throws:
java.io.IOException
-
finish
void finish(int maxDoc) throws java.io.IOException
- Throws:
java.io.IOException
-
flush
void flush(SegmentWriteState state, Sorter.DocMap sortMap) throws java.io.IOException
- Throws:
java.io.IOException
-
abort
void abort()
-
-