com.sleepycat.je.tree
Class INTargetRep

java.lang.Object
  extended by com.sleepycat.je.tree.INArrayRep<INTargetRep,INTargetRep.Type,Node>
      extended by com.sleepycat.je.tree.INTargetRep
Direct Known Subclasses:
INTargetRep.Default, INTargetRep.None, INTargetRep.Sparse

public abstract class INTargetRep
extends INArrayRep<INTargetRep,INTargetRep.Type,Node>

The abstract class that defines the various representations used to represent an array of target pointers to children of an IN node. These arrays can be sparse, so the non-default representations are designed to make efficient representations for the sparse cases. Each specialized representation is a subclass of INTargetReps. A new IN node starts out with the None representation and grows through a sparse into the full default representation. Subsequently, the default representation can be compacted into a Sparse or None representation whenever an IN is stripped. Note that representations do not currently move to more compact forms when entries are nulled to minimize the possibility of tansitionary representation changes, since each representation change has a cpu cost and a gc cost associated with it.


Nested Class Summary
static class INTargetRep.Default
           
static class INTargetRep.None
          Representation used when an IN has no children cached.
static class INTargetRep.Sparse
          Representation used when 1-4 children are cached.
static class INTargetRep.Type
           
 
Field Summary
static INTargetRep.None NONE
           
 
Constructor Summary
INTargetRep()
           
 
Method Summary
 
Methods inherited from class com.sleepycat.je.tree.INArrayRep
calculateMemorySize, compact, copy, get, getType, noteRepChange, set, updateCacheStats, updateCacheStats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final INTargetRep.None NONE
Constructor Detail

INTargetRep

public INTargetRep()


Copyright (c) 2004-2012 Oracle. All rights reserved.