public abstract class DocValuesWriterBase extends PerDocConsumer
| Modifier and Type | Field and Description |
|---|---|
protected IOContext |
context |
static String |
DATA_EXTENSION
Filename extension for data files.
|
static String |
INDEX_EXTENSION
Filename extension for index files
|
protected String |
segmentName |
| Modifier | Constructor and Description |
|---|---|
protected |
DocValuesWriterBase(PerDocWriteState state) |
protected |
DocValuesWriterBase(PerDocWriteState state,
float acceptableOverheadRatio) |
| Modifier and Type | Method and Description |
|---|---|
DocValuesConsumer |
addValuesField(DocValues.Type valueType,
FieldInfo field)
Adds a new DocValuesField
|
void |
close() |
Comparator<BytesRef> |
getComparator() |
protected abstract Directory |
getDirectory() |
abort, canMerge, getDocValuesForMerge, getDocValuesType, mergeprotected final String segmentName
protected final IOContext context
public static final String INDEX_EXTENSION
public static final String DATA_EXTENSION
protected DocValuesWriterBase(PerDocWriteState state)
state - The state to initiate a PerDocConsumer instanceprotected DocValuesWriterBase(PerDocWriteState state, float acceptableOverheadRatio)
state - The state to initiate a PerDocConsumer instanceacceptableOverheadRatio - how to trade space for speed. This option is only applicable for
docvalues of type DocValues.Type.BYTES_FIXED_SORTED and
DocValues.Type.BYTES_VAR_SORTED.PackedInts.getReader(org.apache.lucene.store.DataInput)protected abstract Directory getDirectory() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic DocValuesConsumer addValuesField(DocValues.Type valueType, FieldInfo field) throws IOException
PerDocConsumeraddValuesField in class PerDocConsumerIOExceptionpublic Comparator<BytesRef> getComparator() throws IOException
IOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.