java.lang.Object
org.apache.lucene.index.PrefixCodedTerms
- All Implemented Interfaces:
Accountable
Prefix codes term instances (prefixes are shared). This is expected to be faster to build than a
FST and might also be more compact if there are no common suffixes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builds a PrefixCodedTerms: call add repeatedly, then finish.static class
An iterator over the list of terms stored in aPrefixCodedTerms
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ByteBuffer>
private long
private int
private final long
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
iterator()
Return an iterator over the terms stored in thisPrefixCodedTerms
.long
Return the memory usage of this object in bytes.void
setDelGen
(long delGen) Records del gen for this packet.long
size()
Return the number of terms stored in thisPrefixCodedTerms
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
-
size
private final long size -
delGen
private long delGen -
lazyHash
private int lazyHash
-
-
Constructor Details
-
PrefixCodedTerms
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-
setDelGen
public void setDelGen(long delGen) Records del gen for this packet. -
iterator
Return an iterator over the terms stored in thisPrefixCodedTerms
. -
size
public long size()Return the number of terms stored in thisPrefixCodedTerms
. -
hashCode
public int hashCode() -
equals
-