public class BlockTermsWriter extends FieldsConsumer
Modifier and Type | Field and Description |
---|---|
protected IndexOutput |
out |
static int |
VERSION_APPEND_ONLY |
static int |
VERSION_CHECKSUM |
static int |
VERSION_CURRENT |
static int |
VERSION_META_ARRAY |
static int |
VERSION_START |
Constructor and Description |
---|
BlockTermsWriter(TermsIndexWriterBase termsIndexWriter,
SegmentWriteState state,
PostingsWriterBase postingsWriter) |
Modifier and Type | Method and Description |
---|---|
TermsConsumer |
addField(FieldInfo field)
Add a new field
|
void |
close()
Called when we are done adding everything.
|
merge
public static final int VERSION_START
public static final int VERSION_APPEND_ONLY
public static final int VERSION_META_ARRAY
public static final int VERSION_CHECKSUM
public static final int VERSION_CURRENT
protected IndexOutput out
public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter, SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException
IOException
public TermsConsumer addField(FieldInfo field) throws IOException
FieldsConsumer
addField
in class FieldsConsumer
IOException
public void close() throws IOException
FieldsConsumer
close
in interface Closeable
close
in interface AutoCloseable
close
in class FieldsConsumer
IOException
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.