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) Accountableaccountable(package private) Codeccodec(package private) Directorydirectory(package private) SegmentInfoinfoprivate intlastDoc(package private) StoredFieldsWriterwriter
-
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) voidabort()(package private) voidfinish(int maxDoc)(package private) voidfinishDocument()(package private) voidflush(SegmentWriteState state, Sorter.DocMap sortMap)protected voidinitStoredFieldsWriter()(package private) voidstartDocument(int docID)(package private) voidwriteField(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()
-
-