|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the interface of a set of tuples. Therefore this interface provided
methods to manage instances that implement the Tuple
interface.
Managed tuples may be grouped to tuple groups, therefore methods like
getNumberOfGroups()
and getTuplesByGroup(int)
exist.
This class allows duplicate tuples.
Method Summary | |
boolean |
add(Tuple t)
Adds the Tuple t . |
boolean |
addAll(Collection c,
boolean distinct)
Adds all tuples that are contained inside the given collection c . |
Object |
clone()
Clones this instance by creating a flat copy. |
int |
getNumberOfGroups()
Returns the number of tuple groups. |
Tuple |
getTuple(int index)
Returns a certain tuple specified by it's numerical index. |
Tuples |
getTuplesByGroup(int groupIndex)
Returns all tuples of a certain tuple groups, that is specified by it's numerical index. |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
public boolean add(Tuple t)
Tuple
t
. The tuples is added even if it
is already contained, so it can be contained multiple times.
t
- The tuple to add.
true
if and only if the set of tuples has changed.public int getNumberOfGroups()
public Tuples getTuplesByGroup(int groupIndex)
Tuples
interface as well.
groupIndex
- The group's index.
index
.
ArrayIndexOutOfBoundsException
- if this tuple group does not
exist, see getNumberOfGroups()
.public boolean addAll(Collection c, boolean distinct)
c
.
c
- The tuples to add.distinct
- If set to true
, there will no duplicates be added.
true
if and only if at least one tuple was added.public Tuple getTuple(int index)
index
- The numerical index of the tuple to return.
index
.
ArrayIndexOutOfBoundsException
- if this tuple does not exist,
see Collection.size()
.public Object clone()
Tuples
interface again.
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |