public class IndexItem extends Object implements Item, StoreEntry
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_SIZE |
static int |
INDEXES_ONLY_SIZE |
protected long |
offset |
ACTIVE, FREE, LOCATION_SIZE, MAGIC, POSITION_NOT_SET| Constructor and Description |
|---|
IndexItem()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
StoreLocation |
getKeyDataItem() |
int |
getKeyFile() |
int |
getKeySize() |
long |
getNextItem() |
long |
getOffset() |
StoreLocation |
getValueDataItem() |
int |
getValueFile() |
long |
getValueOffset() |
int |
getValueSize() |
int |
hashCode() |
void |
read(DataInput dataIn) |
void |
setKeyData(StoreLocation item) |
void |
setKeySize(int keySize) |
void |
setNextItem(long newNextEntry) |
void |
setOffset(long offset) |
void |
setPreviousItem(long newPrevEntry) |
void |
setValueData(StoreLocation item) |
void |
setValueOffset(long valueOffset) |
void |
setValueSize(int valueSize) |
String |
toString() |
void |
write(DataOutput dataOut) |
public static final int INDEX_SIZE
public static final int INDEXES_ONLY_SIZE
protected long offset
public IndexItem()
public StoreLocation getKeyDataItem()
getKeyDataItem in interface StoreEntryStoreEntry.getKeyDataItem()public StoreLocation getValueDataItem()
getValueDataItem in interface StoreEntryStoreEntry.getValueDataItem()public void setValueData(StoreLocation item)
public void setKeyData(StoreLocation item)
public void write(DataOutput dataOut) throws IOException
dataOut - IOExceptionpublic void read(DataInput dataIn) throws IOException
dataIn - IOExceptionpublic void setPreviousItem(long newPrevEntry)
newPrevEntry - public void setNextItem(long newNextEntry)
newNextEntry - public long getNextItem()
getNextItem in interface StoreEntryStoreEntry.getNextItem()public int getKeyFile()
getKeyFile in interface StoreEntryStoreEntry.getKeyFile()public int getValueFile()
getValueFile in interface StoreEntryStoreEntry.getValueFile()public long getValueOffset()
getValueOffset in interface StoreEntryStoreEntry.getValueOffset()public void setValueOffset(long valueOffset)
valueOffset - The valueOffset to set.public long getOffset()
getOffset in interface StoreEntryStoreEntry.getOffset()public void setOffset(long offset)
offset - The offset to set.public int getKeySize()
getKeySize in interface StoreEntryStoreEntry.getKeySize()public void setKeySize(int keySize)
public int getValueSize()
getValueSize in interface StoreEntryStoreEntry.getValueSize()public void setValueSize(int valueSize)
Copyright © 2005–2017. All rights reserved.