|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.codecs.PerDocConsumer
org.apache.lucene.codecs.lucene40.values.DocValuesWriterBase
public abstract class DocValuesWriterBase
Abstract base class for PerDocConsumer implementations
| Field Summary | |
|---|---|
protected IOContext |
context
IOContext to use when writing files. |
static String |
DATA_EXTENSION
Filename extension for data files. |
static String |
INDEX_EXTENSION
Filename extension for index files |
protected String |
segmentName
Segment name to use when writing files. |
| Constructor Summary | |
|---|---|
protected |
DocValuesWriterBase(PerDocWriteState state)
Creates DocValuesWriterBase, using PackedInts.FAST. |
protected |
DocValuesWriterBase(PerDocWriteState state,
float acceptableOverheadRatio)
Creates DocValuesWriterBase. |
| Method Summary | |
|---|---|
DocValuesConsumer |
addValuesField(DocValues.Type valueType,
FieldInfo field)
Adds a new DocValuesField |
void |
close()
|
Comparator<BytesRef> |
getComparator()
Returns the comparator used to sort BytesRef
values. |
protected abstract Directory |
getDirectory()
Returns the Directory that files should be
written to. |
| Methods inherited from class org.apache.lucene.codecs.PerDocConsumer |
|---|
abort, canMerge, getDocValuesForMerge, getDocValuesType, merge |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String segmentName
protected final IOContext context
IOContext to use when writing files.
public static final String INDEX_EXTENSION
public static final String DATA_EXTENSION
| Constructor Detail |
|---|
protected DocValuesWriterBase(PerDocWriteState state)
DocValuesWriterBase, using PackedInts.FAST.
state - The state to initiate a PerDocConsumer instance
protected DocValuesWriterBase(PerDocWriteState state,
float acceptableOverheadRatio)
DocValuesWriterBase.
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)| Method Detail |
|---|
protected abstract Directory getDirectory()
throws IOException
Directory that files should be
written to.
IOException
public void close()
throws IOException
close in interface Closeableclose in class PerDocConsumerIOException
public DocValuesConsumer addValuesField(DocValues.Type valueType,
FieldInfo field)
throws IOException
PerDocConsumer
addValuesField in class PerDocConsumerIOException
public Comparator<BytesRef> getComparator()
throws IOException
BytesRef
values.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||