class SimpleTextFieldsWriter extends FieldsConsumer
Modifier and Type | Field and Description |
---|---|
(package private) static BytesRef |
DOC |
(package private) static BytesRef |
END |
(package private) static BytesRef |
END_OFFSET |
(package private) static BytesRef |
FIELD |
(package private) static BytesRef |
FREQ |
private IndexOutput |
out |
(package private) static BytesRef |
PAYLOAD |
(package private) static BytesRef |
POS |
private BytesRefBuilder |
scratch |
(package private) java.lang.String |
segment |
(package private) static BytesRef |
START_OFFSET |
(package private) static BytesRef |
TERM |
private SegmentWriteState |
writeState |
Constructor and Description |
---|
SimpleTextFieldsWriter(SegmentWriteState writeState) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private void |
newline() |
private void |
write(BytesRef b) |
void |
write(FieldInfos fieldInfos,
Fields fields) |
void |
write(Fields fields,
NormsProducer norms)
Write all fields, terms and postings.
|
private void |
write(java.lang.String s) |
merge
private IndexOutput out
private final BytesRefBuilder scratch
private final SegmentWriteState writeState
final java.lang.String segment
static final BytesRef END
static final BytesRef FIELD
static final BytesRef TERM
static final BytesRef DOC
static final BytesRef FREQ
static final BytesRef POS
static final BytesRef START_OFFSET
static final BytesRef END_OFFSET
static final BytesRef PAYLOAD
public SimpleTextFieldsWriter(SegmentWriteState writeState) throws java.io.IOException
java.io.IOException
public void write(Fields fields, NormsProducer norms) throws java.io.IOException
FieldsConsumer
Notes:
write
in class FieldsConsumer
java.io.IOException
public void write(FieldInfos fieldInfos, Fields fields) throws java.io.IOException
java.io.IOException
private void write(java.lang.String s) throws java.io.IOException
java.io.IOException
private void write(BytesRef b) throws java.io.IOException
java.io.IOException
private void newline() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class FieldsConsumer
java.io.IOException