class SimpleTextPointsWriter extends PointsWriter
Modifier and Type | Field and Description |
---|---|
static BytesRef |
BLOCK_COUNT |
static BytesRef |
BLOCK_DOC_ID |
static BytesRef |
BLOCK_FP |
static BytesRef |
BLOCK_VALUE |
static BytesRef |
BYTES_PER_DIM |
private IndexOutput |
dataOut |
static BytesRef |
DOC_COUNT |
static BytesRef |
END |
static BytesRef |
FIELD_COUNT |
static BytesRef |
FIELD_FP |
static BytesRef |
FIELD_FP_NAME |
static BytesRef |
INDEX_COUNT |
(package private) java.util.Map<java.lang.String,java.lang.Long> |
indexFPs |
static BytesRef |
MAX_LEAF_POINTS |
static BytesRef |
MAX_VALUE |
static BytesRef |
MIN_VALUE |
static BytesRef |
NUM_DATA_DIMS |
static BytesRef |
NUM_INDEX_DIMS |
static BytesRef |
POINT_COUNT |
(package private) BytesRefBuilder |
scratch |
static BytesRef |
SPLIT_COUNT |
static BytesRef |
SPLIT_DIM |
static BytesRef |
SPLIT_VALUE |
(package private) SegmentWriteState |
writeState |
Constructor and Description |
---|
SimpleTextPointsWriter(SegmentWriteState writeState) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish()
Called once at the end before close
|
private void |
newline(IndexOutput out) |
private void |
write(IndexOutput out,
BytesRef b) |
private void |
write(IndexOutput out,
java.lang.String s) |
void |
writeField(FieldInfo fieldInfo,
PointsReader reader)
Write all values contained in the provided reader
|
private void |
writeInt(IndexOutput out,
int x) |
private void |
writeLong(IndexOutput out,
long x) |
merge, mergeOneField
public static final BytesRef NUM_DATA_DIMS
public static final BytesRef NUM_INDEX_DIMS
public static final BytesRef BYTES_PER_DIM
public static final BytesRef MAX_LEAF_POINTS
public static final BytesRef INDEX_COUNT
public static final BytesRef BLOCK_COUNT
public static final BytesRef BLOCK_DOC_ID
public static final BytesRef BLOCK_FP
public static final BytesRef BLOCK_VALUE
public static final BytesRef SPLIT_COUNT
public static final BytesRef SPLIT_DIM
public static final BytesRef SPLIT_VALUE
public static final BytesRef FIELD_COUNT
public static final BytesRef FIELD_FP_NAME
public static final BytesRef FIELD_FP
public static final BytesRef MIN_VALUE
public static final BytesRef MAX_VALUE
public static final BytesRef POINT_COUNT
public static final BytesRef DOC_COUNT
public static final BytesRef END
private IndexOutput dataOut
final BytesRefBuilder scratch
final SegmentWriteState writeState
final java.util.Map<java.lang.String,java.lang.Long> indexFPs
public SimpleTextPointsWriter(SegmentWriteState writeState) throws java.io.IOException
java.io.IOException
public void writeField(FieldInfo fieldInfo, PointsReader reader) throws java.io.IOException
PointsWriter
writeField
in class PointsWriter
java.io.IOException
public void finish() throws java.io.IOException
PointsWriter
finish
in class PointsWriter
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
private void write(IndexOutput out, java.lang.String s) throws java.io.IOException
java.io.IOException
private void writeInt(IndexOutput out, int x) throws java.io.IOException
java.io.IOException
private void writeLong(IndexOutput out, long x) throws java.io.IOException
java.io.IOException
private void write(IndexOutput out, BytesRef b) throws java.io.IOException
java.io.IOException
private void newline(IndexOutput out) throws java.io.IOException
java.io.IOException