|
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.Objecteworks.RDF.model.StaticCollection
eworks.RDF.model.TupleImpl
Represents a tuple of instances of LiteralValue.
| Constructor Summary | |
TupleImpl()
Creates a new and empty tuple. |
|
TupleImpl(Collection values)
Creates a new tuple and initializes it with some values. |
|
TupleImpl(int size)
Creates a new and empty tuple and initializes it with a certain size. |
|
TupleImpl(LiteralValue[] values)
Creates a new tuple and initializes it with some values. |
|
| Method Summary | |
boolean |
add(Tuple t)
Do not call this method, because it raises an UnsupportedOperationException.
|
boolean |
addAll(Collection c,
boolean distinct)
Do not call this method, because it raises an UnsupportedOperationException.
|
Object |
clone()
Clones this tuple and returns a new instance containing the same values. |
boolean |
equals(Object o)
Checks the tuple for equality with a given object o. |
Value |
get(int index)
Returns the tuple's component with the given index. |
int |
getNumberOfGroups()
Returns the number of tuple goups, always 1 in this implementation. |
int |
getSize()
Returns the tupel's number of components. |
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 group. |
void |
set(int index,
LiteralValue value)
Sets the tuple's component with the given index
to value. |
| Methods inherited from class eworks.RDF.model.StaticCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
public TupleImpl()
public TupleImpl(LiteralValue[] values)
values.
values - The values to initialize the tuple.public TupleImpl(Collection values)
values.
values - The values to initialize the tuple.public TupleImpl(int size)
size.
size - The initial size of the tuple.| Method Detail |
public Object clone()
clone in interface Tuplespublic boolean add(Tuple t)
UnsupportedOperationException.
This method is specified by Tuples.add(eworks.RDF.model.Tuple) in interface Tuples,
but cannot be used on this class.
add in interface Tuplest - The tuple to add.
UnsupportedOperationException - always.public int getNumberOfGroups()
getNumberOfGroups in interface Tuplespublic Tuples getTuplesByGroup(int groupIndex)
getTuplesByGroup in interface TuplesgroupIndex - The group's numerical index, has to be the value 1 in
this implementation.
ArrayIndexOutOfBoundsException - if the groupIndex
is unequal to 1.
public boolean addAll(Collection c,
boolean distinct)
UnsupportedOperationException.
This method is specified by Tuples.addAll(java.util.Collection, boolean) in interface Tuples,
but cannot be used on this class.
addAll in interface Tuplesc - The tuples to add.distinct - If set to true, there will no duplicates be added.
UnsupportedOperationException - always.public Tuple getTuple(int index)
getTuple in interface Tuplesindex - The numerical index of the tuple to return, must be 0 in this
implementation.
ArrayIndexOutOfBoundsException - if index is unequal to 0.public Value get(int index)
index.
get in interface Tupleindex - The index of the component to return.
index.
public void set(int index,
LiteralValue value)
index
to value.
set in interface Tupleindex - The index of the component to set.value - The component's new value.public int getSize()
getSize in interface Tuplepublic boolean equals(Object o)
o. That
is done by checking if o implements the interface
Tuple. If not, false is returned. Otherwise the
lengths of both tuples are compared, if they are unequal,
false is returned. If they are equal, every component's
(each one an instance of LiteralValue) LiteralValue.equals(java.lang.Object)
method is called. If one of the values does not match, false
is returned, true otherwise.
equals in interface Tupleo - The object the tuple to compare to.
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||