public class BaseTupleStore extends Object implements TupleStore
| Constructor and Description |
|---|
BaseTupleStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
<T> Tuple<T> |
get(String key)
A get operation for single-valued keys
|
Collection<Tuple> |
getAll(String key)
A get operation for multi-valued keys
|
Collection<Tuple> |
getTuples()
Returns all the getTuples set on the current entity
|
int |
hashCode() |
Set<String> |
keys()
Returns the keys in the current object
|
void |
put(Tuple tuple)
Puts a single tuple in the current data store
|
void |
putAll(Iterable<Tuple> tuples)
Adds all the given getTuples to the current data store
|
<T> Tuple<T> |
remove(String key)
Removes the first tuple belonging to the specified key.
|
<T> Tuple<T> |
remove(Tuple<T> t)
Removes the specified tuple
|
Collection<Tuple> |
removeAll(Collection<Tuple> tuples) |
Collection<Tuple> |
removeAll(String key)
Revoves all the tuples with the given key.
|
public void put(Tuple tuple)
TupleStoreput in interface TupleStorepublic void putAll(Iterable<Tuple> tuples)
TupleStoreputAll in interface TupleStorepublic Collection<Tuple> getTuples()
getTuples in interface TupleStorepublic Collection<Tuple> getAll(String key)
getAll in interface TupleStorepublic <T> Tuple<T> get(String key)
get in interface TupleStorepublic Set<String> keys()
TupleStorekeys in interface TupleStorepublic <T> Tuple<T> remove(Tuple<T> t)
TupleStoreremove in interface TupleStorepublic <T> Tuple<T> remove(String key)
TupleStoreremove in interface TupleStorepublic Collection<Tuple> removeAll(String key)
TupleStoreremoveAll in interface TupleStorepublic Collection<Tuple> removeAll(Collection<Tuple> tuples)
removeAll in interface TupleStoreCopyright © 2014 Calrissian. All rights reserved.