@Deprecated public final class Lucene40BlockTreeTermsReader extends FieldsProducer
NOTE: this terms dictionary supports min/maxItemsPerBlock during indexing to control how much memory the terms index uses.
The data structure used by this implementation is very similar to a burst trie (http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.18.3499), but with added logic to break up too-large blocks of all terms sharing a given prefix into smaller ones.
Use CheckIndex with the -verbose
option to see summary statistics on the blocks in the
dictionary.
| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION_APPEND_ONLY
Deprecated.
Append-only
|
static int |
VERSION_CHECKSUM
Deprecated.
checksums
|
static int |
VERSION_CURRENT
Deprecated.
Current terms format.
|
static int |
VERSION_META_ARRAY
Deprecated.
Meta data as array
|
static int |
VERSION_MIN_MAX_TERMS
Deprecated.
min/max term
|
static int |
VERSION_START
Deprecated.
Initial terms format.
|
EMPTY_ARRAY| Constructor and Description |
|---|
Lucene40BlockTreeTermsReader(PostingsReaderBase postingsReader,
SegmentReadState state)
Deprecated.
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Deprecated.
|
void |
close()
Deprecated.
|
Collection<Accountable> |
getChildResources()
Deprecated.
|
Iterator<String> |
iterator()
Deprecated.
|
long |
ramBytesUsed()
Deprecated.
|
int |
size()
Deprecated.
|
Terms |
terms(String field)
Deprecated.
|
String |
toString()
Deprecated.
|
getMergeInstancepublic 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_MIN_MAX_TERMS
public static final int VERSION_CURRENT
public Lucene40BlockTreeTermsReader(PostingsReaderBase postingsReader, SegmentReadState state) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FieldsProducerIOExceptionpublic Terms terms(String field) throws IOException
terms in class FieldsIOExceptionpublic long ramBytesUsed()
public Collection<Accountable> getChildResources()
public void checkIntegrity()
throws IOException
checkIntegrity in class FieldsProducerIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.