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 class
TripleStore.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 String
PROXY
static String
TYPE
static String
VALUE
-
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 boolean
add(Triple triple)
boolean
contains(Triple triple)
Triple
get(Triple triple)
Collection<Triple>
getAll(Triple triple)
String
getId()
int
getResizeHashcode(Entry entry)
boolean
put(Triple triple)
boolean
put(Triple triple, boolean checkExists)
void
readExternal(ObjectInput in)
boolean
remove(Triple triple)
int
removeAll(Triple triple)
void
setId(String id)
void
writeExternal(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:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classAbstractHashTable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in 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:
getResizeHashcode
in classAbstractHashTable
-
-