public class PrefixCodedTerms extends java.lang.Object implements Accountable
Modifier and Type | Class and Description |
---|---|
static class |
PrefixCodedTerms.Builder
Builds a PrefixCodedTerms: call add repeatedly, then finish.
|
static class |
PrefixCodedTerms.TermIterator
An iterator over the list of terms stored in a
PrefixCodedTerms . |
Modifier and Type | Field and Description |
---|---|
(package private) RAMFile |
buffer |
private long |
delGen |
private long |
size |
Modifier | Constructor and Description |
---|---|
private |
PrefixCodedTerms(RAMFile buffer,
long size) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
PrefixCodedTerms.TermIterator |
iterator()
Return an iterator over the terms stored in this
PrefixCodedTerms . |
long |
ramBytesUsed()
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 this
PrefixCodedTerms . |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getChildResources
final RAMFile buffer
private final long size
private long delGen
private PrefixCodedTerms(RAMFile buffer, long size)
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public void setDelGen(long delGen)
public PrefixCodedTerms.TermIterator iterator()
PrefixCodedTerms
.public long size()
PrefixCodedTerms
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object