Package org.apache.lucene.index
Class PrefixCodedTerms
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.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds a PrefixCodedTerms: call add repeatedly, then finish.static classAn iterator over the list of terms stored in aPrefixCodedTerms. -
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()iterator()Return an iterator over the terms stored in thisPrefixCodedTerms.longReturn the memory usage of this object in bytes.voidsetDelGen(long delGen) Records del gen for this packet.longsize()Return the number of terms stored in thisPrefixCodedTerms.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin 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
-