public class SimpleTextDocValuesConsumer extends DocValuesConsumer
FOR RECREATIONAL USE ONLY
| Modifier and Type | Field and Description |
|---|---|
protected IOContext |
ctx |
protected Directory |
dir |
protected BytesRefHash |
hash |
protected int |
maxDocId |
protected BytesRef |
scratch |
protected String |
segment |
protected DocValues.Type |
type |
spare| Constructor and Description |
|---|
SimpleTextDocValuesConsumer(String segment,
Directory dir,
IOContext ctx,
DocValues.Type type,
String segmentSuffix) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int docID,
IndexableField value) |
void |
finish(int docCount) |
protected BytesRef |
getHeader() |
protected DocValues.Type |
getType() |
int |
getValueSize() |
protected void |
writeDoc(IndexOutput output,
int docId,
BytesRef spare) |
merge, merge, mergeDocprotected BytesRef scratch
protected int maxDocId
protected final String segment
protected final Directory dir
protected final IOContext ctx
protected final DocValues.Type type
protected final BytesRefHash hash
public SimpleTextDocValuesConsumer(String segment, Directory dir, IOContext ctx, DocValues.Type type, String segmentSuffix)
public void add(int docID,
IndexableField value)
throws IOException
add in class DocValuesConsumerIOExceptionprotected BytesRef getHeader()
public void finish(int docCount)
throws IOException
finish in class DocValuesConsumerIOExceptionprotected void writeDoc(IndexOutput output, int docId, BytesRef spare) throws IOException
IOExceptionprotected DocValues.Type getType()
getType in class DocValuesConsumerpublic int getValueSize()
getValueSize in class DocValuesConsumerCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.