|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.tree.INArrayRep<INTargetRep,INTargetRep.Type,Node>
com.sleepycat.je.tree.INTargetRep
com.sleepycat.je.tree.INTargetRep.None
public static class INTargetRep.None
Representation used when an IN has no children cached.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sleepycat.je.tree.INTargetRep |
---|
INTargetRep.Default, INTargetRep.None, INTargetRep.Sparse, INTargetRep.Type |
Field Summary | |
---|---|
(package private) int |
nodeMaxEntries
|
Fields inherited from class com.sleepycat.je.tree.INArrayRep |
---|
parent |
Constructor Summary | |
---|---|
INTargetRep.None(IN parent,
int nodeMaxEntries)
|
|
INTargetRep.None(SizeofMarker marker)
|
Method Summary | |
---|---|
long |
calculateMemorySize()
Returns the current memory size of the underlying representation in bytes. |
INTargetRep |
compact()
Chooses a more compact representation, if that's possible, otherwise does nothing. |
INTargetRep |
copy(int from,
int to,
int n)
Copies n elements at index denoted by "from" to the index denoted by "to". |
Node |
get(int idx)
Returns the element at idx. |
INTargetRep.Type |
getType()
|
int |
length()
Returns the length, that is, the range within which get and set operations can be performed. |
INTargetRep |
set(int idx,
Node node)
Sets the array element at idx to the node. |
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 |
Field Detail |
---|
final int nodeMaxEntries
Constructor Detail |
---|
public INTargetRep.None(IN parent, int nodeMaxEntries)
public INTargetRep.None(SizeofMarker marker)
Method Detail |
---|
public INTargetRep.Type getType()
getType
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
public Node get(int idx)
INArrayRep
get
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
public INTargetRep set(int idx, Node node)
INArrayRep
set
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
idx
- the index to be setnode
- the array elelement at the idx
public int length()
INArrayRep
length
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
public INTargetRep copy(int from, int to, int n)
INArrayRep
copy
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
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<INTargetRep,INTargetRep.Type,Node>
public INTargetRep compact()
INArrayRep
compact
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
public void updateCacheStats(boolean increment, Evictor evictor)
INArrayRep
updateCacheStats
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
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 |