public final class IndexKey extends java.lang.Object implements LruListener
Constructor and Description |
---|
IndexKey() |
IndexKey(BTree btree,
byte[] data,
int offset,
int length,
long value) |
Modifier and Type | Method and Description |
---|---|
static IndexKey |
create(BTree btree,
byte[] data,
int offset,
int length,
long value) |
boolean |
equals(java.lang.Object o) |
BTree |
getBTree() |
byte[] |
getBuffer() |
int |
getLength() |
int |
getOffset() |
long |
getValue() |
int |
hashCode() |
void |
init(BTree btree,
byte[] data,
int offset,
int length) |
boolean |
isStored() |
boolean |
isValid() |
void |
lruEvent() |
void |
setStored(boolean isStored) |
void |
setValid(boolean isValid) |
void |
setValue(long value) |
java.lang.String |
toString() |
void |
update() |
public IndexKey()
public IndexKey(BTree btree, byte[] data, int offset, int length, long value)
public void init(BTree btree, byte[] data, int offset, int length)
public BTree getBTree()
public byte[] getBuffer()
public int getOffset()
public int getLength()
public void setValue(long value)
public long getValue()
public boolean isValid()
public void setValid(boolean isValid)
public boolean isStored()
public void setStored(boolean isStored)
public void lruEvent()
lruEvent
in interface LruListener
public void update()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object