站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

FactHandleIndexHashTable (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.util
Class FactHandleIndexHashTable

java.lang.Object
  extended by org.drools.util.AbstractHashTable
      extended by org.drools.util.FactHandleIndexHashTable
All Implemented Interfaces:
Serializable, FactHandleMemory

public class FactHandleIndexHashTable
extends AbstractHashTable
implements FactHandleMemory

See Also:
Serialized Form

Nested Class Summary
static class FactHandleIndexHashTable.FieldIndexEntry
           
static class FactHandleIndexHashTable.FieldIndexHashTableIterator
          Fast re-usable iterator
 
Nested classes/interfaces inherited from class org.drools.util.AbstractHashTable
AbstractHashTable.DoubleCompositeIndex, AbstractHashTable.EqualityEquals, AbstractHashTable.FactEntry, AbstractHashTable.FieldIndex, AbstractHashTable.HashTableIterator, AbstractHashTable.Index, AbstractHashTable.InstanceEquals, AbstractHashTable.ObjectComparator, AbstractHashTable.SingleIndex, AbstractHashTable.TripleCompositeIndex
 
Field Summary
static int PRIME
           
 
Fields inherited from class org.drools.util.AbstractHashTable
comparator, loadFactor, size, table, threshold
 
Constructor Summary
FactHandleIndexHashTable(AbstractHashTable.FieldIndex[] index)
           
FactHandleIndexHashTable(int capacity, float loadFactor, AbstractHashTable.FieldIndex[] index)
           
 
Method Summary
 boolean add(InternalFactHandle handle)
           
 boolean add(InternalFactHandle handle, boolean checkExists)
           
 boolean contains(InternalFactHandle handle)
           
 FactHandleIndexHashTable.FieldIndexEntry get(ReteTuple tuple)
           
 Entry getBucket(Object object)
           
 boolean isIndexed()
           
 Iterator iterator()
           
 Iterator iterator(ReteTuple tuple)
           
 boolean remove(InternalFactHandle handle)
           
 int size()
           
 
Methods inherited from class org.drools.util.AbstractHashTable
getBucket, getTable, indexOf, isEmpty, resize, setComparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.reteoo.FactHandleMemory
getTable
 

Field Detail

PRIME

public static final int PRIME
See Also:
Constant Field Values
Constructor Detail

FactHandleIndexHashTable

public FactHandleIndexHashTable(AbstractHashTable.FieldIndex[] index)

FactHandleIndexHashTable

public FactHandleIndexHashTable(int capacity,
                                float loadFactor,
                                AbstractHashTable.FieldIndex[] index)
Method Detail

iterator

public Iterator iterator()
Specified by:
iterator in interface FactHandleMemory
Overrides:
iterator in class AbstractHashTable

iterator

public Iterator iterator(ReteTuple tuple)
Specified by:
iterator in interface FactHandleMemory

isIndexed

public boolean isIndexed()
Specified by:
isIndexed in interface FactHandleMemory

getBucket

public Entry getBucket(Object object)
Specified by:
getBucket in class AbstractHashTable

add

public boolean add(InternalFactHandle handle)
Specified by:
add in interface FactHandleMemory

add

public boolean add(InternalFactHandle handle,
                   boolean checkExists)
Specified by:
add in interface FactHandleMemory

remove

public boolean remove(InternalFactHandle handle)
Specified by:
remove in interface FactHandleMemory

contains

public boolean contains(InternalFactHandle handle)
Specified by:
contains in interface FactHandleMemory

get

public FactHandleIndexHashTable.FieldIndexEntry get(ReteTuple tuple)

size

public int size()
Specified by:
size in interface FactHandleMemory
Overrides:
size in class AbstractHashTable


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