|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.tree.INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
com.sleepycat.je.tree.INKeyRep
com.sleepycat.je.tree.INKeyRep.Default
public static class INKeyRep.Default
The default representation that's capable of storing keys of any size.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sleepycat.je.tree.INKeyRep |
---|
INKeyRep.Default, INKeyRep.MaxKeySize, INKeyRep.Type |
Field Summary |
---|
Fields inherited from class com.sleepycat.je.tree.INArrayRep |
---|
parent |
Constructor Summary | |
---|---|
INKeyRep.Default(IN parent,
int nodeMaxEntries)
|
|
INKeyRep.Default(SizeofMarker marker)
|
Method Summary | |
---|---|
long |
calculateMemorySize()
Returns the current memory size of the underlying representation in bytes. |
INKeyRep |
compact()
Chooses a more compact representation, if that's possible, otherwise does nothing. |
INKeyRep |
copy(int from,
int to,
int n)
Copies n elements at index denoted by "from" to the index denoted by "to". |
byte[] |
get(int idx)
Returns the element at idx. |
INKeyRep.Type |
getType()
|
int |
length()
Returns the length, that is, the range within which get and set operations can be performed. |
INKeyRep |
set(int idx,
byte[] key)
Sets the array element at idx to the node. |
(package private) void |
updateCacheStats(boolean increment,
Evictor evictor)
Update the cache statistics for this representation. |
Methods inherited from class com.sleepycat.je.tree.INArrayRep |
---|
noteRepChange, noteRepChange, updateCacheStats |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
INKeyRep.Default(IN parent, int nodeMaxEntries)
public INKeyRep.Default(SizeofMarker marker)
Method Detail |
---|
public INKeyRep.Type getType()
getType
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
public byte[] get(int idx)
INArrayRep
get
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
public INKeyRep set(int idx, byte[] key)
INArrayRep
set
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
idx
- the index to be setkey
- the array elelement at the idx
public INKeyRep copy(int from, int to, int n)
INArrayRep
copy
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
from
- the source (inclusive) of the copyto
- the target (inclusive) of the copyn
- the number of elements to be copied.
public long calculateMemorySize()
INArrayRep
calculateMemorySize
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
public INKeyRep compact()
INArrayRep
compact
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
public int length()
INArrayRep
length
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
void updateCacheStats(boolean increment, Evictor evictor)
INArrayRep
updateCacheStats
in class INArrayRep<INKeyRep,INKeyRep.Type,byte[]>
increment
- true the stat should be incremented, false if it must
be decrementedevictor
- the evictor that shoulds ths stat countersINArrayRep.updateCacheStats(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |