|
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 tuple. A tuple is an ordered set of componentens
(a "list" of components). In this case, it is an ordered set of instances of
LiteralValue
. Each of the components can be defined and retrieved by it's
numerical index.
This interface extends the Tuples
interface for performance reasons.
So every single Tuple
instance can be used whereever a
Tuples
instance is expected. In such cases this tuple is treated as
a set of tuples with one only encapsulated tuple. So there is no need to created
a seperate tuples
instance for this one and only tuple.
Method Summary | |
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 |
getSize()
Returns the tupel's number of components. |
void |
set(int index,
LiteralValue value)
Sets the tuple's component with the given index
to value . |
Methods inherited from interface eworks.RDF.model.Tuples |
add, addAll, clone, getNumberOfGroups, getTuple, getTuplesByGroup |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
public Value get(int index)
index
.
index
- The index of the component to return.
index
.public void set(int index, LiteralValue value)
index
to value
.
index
- The index of the component to set.value
- The component's new value.public int getSize()
public boolean equals(Object o)
o
.
equals
in interface Collection
o
- 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 |