@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.
|
getMergeInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
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_MIN_MAX_TERMS
public static final int VERSION_CURRENT
public Lucene40BlockTreeTermsReader(PostingsReaderBase postingsReader, SegmentReadState state) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FieldsProducer
IOException
public Terms terms(String field) throws IOException
terms
in class Fields
IOException
public long ramBytesUsed()
public Collection<Accountable> getChildResources()
public void checkIntegrity() throws IOException
checkIntegrity
in class FieldsProducer
IOException
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.