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, mergeDoc
protected 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 DocValuesConsumer
IOException
protected BytesRef getHeader()
public void finish(int docCount) throws IOException
finish
in class DocValuesConsumer
IOException
protected void writeDoc(IndexOutput output, int docId, BytesRef spare) throws IOException
IOException
protected DocValues.Type getType()
getType
in class DocValuesConsumer
public int getValueSize()
getValueSize
in class DocValuesConsumer
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.