|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
eworks.RDF.model.AbstractTuples
eworks.RDF.model.GroupedTuples
Represents a set of grouped tuples and provides methods to manage them. Each
tuple is represented by an instance of a class that implements the Tuple
interface.
This implementation supports the grouping of tuples as defined by
the methods Tuples.getNumberOfGroups() and Tuples.getTuplesByGroup(int).
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
GroupedTuples()
Creates a new and empty set of tuples. |
|
GroupedTuples(Collection c)
Creates a new set of tuples and initializes it with a given set of tuples. |
|
GroupedTuples(int initialCapacity)
Creates a new and empty set of tuples with a given initial capacity. |
|
| Method Summary | |
boolean |
addAll(Collection c,
boolean distinct)
Adds all tuples that are contained inside the given collection c.
|
Object |
clone()
Clones this tuple set and returns a new instance containing the same tuples. |
int |
getNumberOfGroups()
Returns the number of tuple groups. |
Tuples |
getTuplesByGroup(int groupIndex)
Returns all tuples of a certain tuple groups, that is specified by it's numerical index. |
| Methods inherited from class eworks.RDF.model.AbstractTuples |
add, getTuple |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Constructor Detail |
public GroupedTuples()
public GroupedTuples(int initialCapacity)
initialCapacity - The initial capacity.public GroupedTuples(Collection c)
c - The set of tuples to initialize the new tuple set.| Method Detail |
public int getNumberOfGroups()
getNumberOfGroups in interface TuplesgetNumberOfGroups in class AbstractTuplespublic Tuples getTuplesByGroup(int groupIndex)
Tuples interface as well.
getTuplesByGroup in interface TuplesgetTuplesByGroup in class AbstractTuplesgroupIndex - The group's index.
index.
ArrayIndexOutOfBoundsException - if this tuple group does not
exist, see getNumberOfGroups().
public boolean addAll(Collection c,
boolean distinct)
c.
A new tuple group is created, that contains all tuples given by c.
addAll in interface TuplesaddAll in class AbstractTuplesc - 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 Object clone()
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||