public static class INTargetRep.None extends INTargetRep
INTargetRep.Default, INTargetRep.None, INTargetRep.Sparse, INTargetRep.Type
NONE
Constructor and Description |
---|
INTargetRep.None(SizeofMarker marker) |
Modifier and Type | Method and Description |
---|---|
long |
calculateMemorySize()
Returns the current memory size of the underlying representation in
bytes.
|
INTargetRep |
compact(IN parent)
Chooses a more compact representation, if that's possible, otherwise
does nothing.
|
INTargetRep |
copy(int from,
int to,
int n,
IN parent)
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() |
INTargetRep |
set(int idx,
Node node,
IN parent)
Sets the array element at idx to the node.
|
void |
updateCacheStats(boolean increment,
Evictor evictor)
Update the cache statistics for this representation.
|
noteRepChange, updateCacheStats
public INTargetRep.None(SizeofMarker marker)
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, IN parent)
INArrayRep
set
in class INArrayRep<INTargetRep,INTargetRep.Type,Node>
idx
- the index to be setnode
- the array elelement at the idxpublic INTargetRep copy(int from, int to, int n, IN parent)
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(IN parent)
INArrayRep
WARNING: This method must not change the memory size of the current representation and return 'this', without explicitly adjusting memory usage (via noteRepChange) before returning. Returning a new instance is the trigger for adjusting memory usage in the parent.
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 counters#updateCacheStats(boolean)
Copyright (c) 2004-2012 Oracle. All rights reserved.