private class PerFieldPostingsFormat.FieldsWriter extends FieldsConsumer
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<java.io.Closeable> |
toClose |
(package private) SegmentWriteState |
writeState |
| Constructor and Description |
|---|
FieldsWriter(SegmentWriteState writeState) |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Map<PostingsFormat,PerFieldPostingsFormat.FieldsGroup> |
buildFieldsGroupMapping(Fields fields) |
void |
close() |
void |
merge(MergeState mergeState)
Merges in the fields from the readers in
mergeState. |
void |
write(Fields fields)
Write all fields, terms and postings.
|
final SegmentWriteState writeState
final java.util.List<java.io.Closeable> toClose
public FieldsWriter(SegmentWriteState writeState)
public void write(Fields fields) throws java.io.IOException
FieldsConsumerNotes:
write in class FieldsConsumerjava.io.IOExceptionpublic void merge(MergeState mergeState) throws java.io.IOException
FieldsConsumermergeState. The default implementation skips
and maps around deleted documents, and calls FieldsConsumer.write(Fields).
Implementations can override this method for more sophisticated
merging (bulk-byte copying, etc).merge in class FieldsConsumerjava.io.IOExceptionprivate java.util.Map<PostingsFormat,PerFieldPostingsFormat.FieldsGroup> buildFieldsGroupMapping(Fields fields)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class FieldsConsumerjava.io.IOException