org.drools.core.util
Class PrimitiveLongMap
java.lang.Object
org.drools.core.util.PrimitiveLongMap
- All Implemented Interfaces:
- Externalizable, Serializable
public class PrimitiveLongMap
- extends Object
- implements Externalizable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimitiveLongMap
public PrimitiveLongMap()
PrimitiveLongMap
public PrimitiveLongMap(int tableSize)
PrimitiveLongMap
public PrimitiveLongMap(int tableSize,
int indexIntervals)
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-2012 JBoss by Red Hat. All Rights Reserved.