Package org.drools.core.util
Class TripleStore
- java.lang.Object
-
- org.drools.core.util.AbstractHashTable
-
- org.drools.core.util.TripleStore
-
- All Implemented Interfaces:
Externalizable,Serializable
public class TripleStore extends AbstractHashTable implements Externalizable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTripleStore.TripleKeyComparator-
Nested classes/interfaces inherited from class org.drools.core.util.AbstractHashTable
AbstractHashTable.AbstractObjectComparator, AbstractHashTable.DoubleCompositeIndex, AbstractHashTable.DoubleHashEntry, AbstractHashTable.EqualityEquals, AbstractHashTable.FieldIndex, AbstractHashTable.HashEntry, AbstractHashTable.Index, AbstractHashTable.IndexTupleList, AbstractHashTable.InstanceEquals, AbstractHashTable.ObjectComparator, AbstractHashTable.SingleHashEntry, AbstractHashTable.SingleIndex, AbstractHashTable.TripleCompositeIndex, AbstractHashTable.TripleHashEntry
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROXYstatic StringTYPEstatic StringVALUE-
Fields inherited from class org.drools.core.util.AbstractHashTable
comparator, loadFactor, PRIME, size, table, threshold
-
-
Constructor Summary
Constructors Constructor Description TripleStore()TripleStore(float loadFactor, Entry[] table)TripleStore(int capacity, float loadFactor)TripleStore(Entry[] table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Triple triple)booleancontains(Triple triple)Tripleget(Triple triple)Collection<Triple>getAll(Triple triple)StringgetId()intgetResizeHashcode(Entry entry)booleanput(Triple triple)booleanput(Triple triple, boolean checkExists)voidreadExternal(ObjectInput in)booleanremove(Triple triple)intremoveAll(Triple triple)voidsetId(String id)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.drools.core.util.AbstractHashTable
clear, ensureCapacity, getTable, indexOf, isEmpty, iterator, newIterator, rehash, resize, setComparator, size, toArray, toString
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
PROXY
public static final String PROXY
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractHashTable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractHashTable- Throws:
IOException
-
getId
public String getId()
-
setId
public void setId(String id)
-
put
public boolean put(Triple triple)
-
add
public boolean add(Triple triple)
-
put
public boolean put(Triple triple, boolean checkExists)
-
getAll
public Collection<Triple> getAll(Triple triple)
-
removeAll
public int removeAll(Triple triple)
-
remove
public boolean remove(Triple triple)
-
contains
public boolean contains(Triple triple)
-
getResizeHashcode
public int getResizeHashcode(Entry entry)
- Specified by:
getResizeHashcodein classAbstractHashTable
-
-