org.drools.core.util
Class PrimitiveLongMap

java.lang.Object
  extended by org.drools.core.util.PrimitiveLongMap
All Implemented Interfaces:
Externalizable, Serializable

public class PrimitiveLongMap
extends Object
implements Externalizable

See Also:
Serialized Form

Nested Class Summary
static class PrimitiveLongMap.Page
           
 
Constructor Summary
PrimitiveLongMap()
           
PrimitiveLongMap(int tableSize)
           
PrimitiveLongMap(int tableSize, int indexIntervals)
           
 
Method Summary
 void clear()
           
 boolean containsKey(long key)
           
 PrimitiveLongMap.Page expandPages(int toPageId)
          Expand index to accomodate given pageId Create empty TopNodes
 Object get(long key)
           
 long getNext(long key)
          gets the next populated key, after the given key position.
 boolean isEmpty()
           
 Object put(long key, Object value)
           
 void readExternal(ObjectInput in)
           
 Object remove(long key)
           
 void resizeIndex(int newSize)
           
 void shrinkPages(int toPageId)
          Shrink index to accomodate given pageId
 int size()
           
 Collection values()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveLongMap

public PrimitiveLongMap()

PrimitiveLongMap

public PrimitiveLongMap(int tableSize)

PrimitiveLongMap

public PrimitiveLongMap(int tableSize,
                        int indexIntervals)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

clear

public void clear()

isEmpty

public boolean isEmpty()

put

public Object put(long key,
                  Object value)

remove

public Object remove(long key)

get

public Object get(long key)

getNext

public long getNext(long key)
gets the next populated key, after the given key position.

Parameters:
key -
Returns:

size

public int size()

values

public Collection values()

containsKey

public boolean containsKey(long key)

expandPages

public PrimitiveLongMap.Page expandPages(int toPageId)
Expand index to accomodate given pageId Create empty TopNodes


shrinkPages

public void shrinkPages(int toPageId)
Shrink index to accomodate given pageId


resizeIndex

public void resizeIndex(int newSize)


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.