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 StoreEntry
StoreEntry.getKeyDataItem()
public StoreLocation getValueDataItem()
getValueDataItem
in interface StoreEntry
StoreEntry.getValueDataItem()
public void setValueData(StoreLocation item)
public void setKeyData(StoreLocation item)
public void write(DataOutput dataOut) throws IOException
dataOut
- IOException
public void read(DataInput dataIn) throws IOException
dataIn
- IOException
public void setPreviousItem(long newPrevEntry)
newPrevEntry
- public void setNextItem(long newNextEntry)
newNextEntry
- public long getNextItem()
getNextItem
in interface StoreEntry
StoreEntry.getNextItem()
public int getKeyFile()
getKeyFile
in interface StoreEntry
StoreEntry.getKeyFile()
public int getValueFile()
getValueFile
in interface StoreEntry
StoreEntry.getValueFile()
public long getValueOffset()
getValueOffset
in interface StoreEntry
StoreEntry.getValueOffset()
public void setValueOffset(long valueOffset)
valueOffset
- The valueOffset to set.public long getOffset()
getOffset
in interface StoreEntry
StoreEntry.getOffset()
public void setOffset(long offset)
offset
- The offset to set.public int getKeySize()
getKeySize
in interface StoreEntry
StoreEntry.getKeySize()
public void setKeySize(int keySize)
public int getValueSize()
getValueSize
in interface StoreEntry
StoreEntry.getValueSize()
public void setValueSize(int valueSize)
Copyright © 2005–2014. All rights reserved.