org.drools.core.util.index
Class LeftTupleIndexHashTable
java.lang.Object
org.drools.core.util.AbstractHashTable
org.drools.core.util.index.LeftTupleIndexHashTable
- All Implemented Interfaces:
- Externalizable, Serializable, LeftTupleMemory
public class LeftTupleIndexHashTable
- extends AbstractHashTable
- implements LeftTupleMemory
- See Also:
- Serialized Form
|
Field Summary |
static int |
PRIME
|
PRIME
public static final int PRIME
- See Also:
- Constant Field Values
LeftTupleIndexHashTable
public LeftTupleIndexHashTable()
LeftTupleIndexHashTable
public LeftTupleIndexHashTable(AbstractHashTable.FieldIndex[] index)
LeftTupleIndexHashTable
public LeftTupleIndexHashTable(int capacity,
float loadFactor,
AbstractHashTable.FieldIndex[] index)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable- Overrides:
readExternal in class AbstractHashTable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable- Overrides:
writeExternal in class AbstractHashTable
- Throws:
IOException
init
public void init(Entry[] table,
int size,
int factSize)
iterator
public Iterator iterator()
- Specified by:
iterator in interface LeftTupleMemory- Overrides:
iterator in class AbstractHashTable
fastIterator
public FastIterator fastIterator()
- Specified by:
fastIterator in interface LeftTupleMemory
fullFastIterator
public FastIterator fullFastIterator()
- Specified by:
fullFastIterator in interface LeftTupleMemory
fullFastIterator
public FastIterator fullFastIterator(LeftTuple leftTuple)
- Specified by:
fullFastIterator in interface LeftTupleMemory
getFirst
public LeftTuple getFirst(RightTuple rightTuple)
- Specified by:
getFirst in interface LeftTupleMemory
getFirst
public LeftTuple getFirst(LeftTuple leftTuple)
isIndexed
public boolean isIndexed()
- Specified by:
isIndexed in interface LeftTupleMemory
getIndex
public AbstractHashTable.Index getIndex()
getBucket
public Entry getBucket(Object object)
- Specified by:
getBucket in class AbstractHashTable
getResizeHashcode
public int getResizeHashcode(Entry entry)
- Specified by:
getResizeHashcode in class AbstractHashTable
toArray
public LeftTuple[] toArray()
- Specified by:
toArray in interface LeftTupleMemory- Overrides:
toArray in class AbstractHashTable
removeAdd
public void removeAdd(LeftTuple leftTuple)
- Specified by:
removeAdd in interface LeftTupleMemory
add
public void add(LeftTuple tuple)
- Specified by:
add in interface LeftTupleMemory
remove
public void remove(LeftTuple leftTuple)
- Specified by:
remove in interface LeftTupleMemory
contains
public boolean contains(LeftTuple tuple)
- Specified by:
contains in interface LeftTupleMemory
get
public LeftTupleList get(RightTuple rightTuple)
size
public int size()
- Specified by:
size in interface LeftTupleMemory- Overrides:
size in class AbstractHashTable
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.