eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.RDF.model
Interface Tuple

All Superinterfaces:
Collection, Tuples
All Known Implementing Classes:
Statement, TupleImpl

public interface Tuple
extends Tuples

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.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)

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

get

public Value get(int index)
Returns the tuple's component with the given index.

Parameters:
index - The index of the component to return.
Returns:
The tuple's component with the given index.

set

public void set(int index,
                LiteralValue value)
Sets the tuple's component with the given index to value.

Parameters:
index - The index of the component to set.
value - The component's new value.

getSize

public int getSize()
Returns the tupel's number of components.

Returns:
The tupel's number of components.

equals

public boolean equals(Object o)
Checks the tuple for equality with a given object o.

Specified by:
equals in interface Collection
Parameters:
o - The object the tuple to compare to.

eRqlEngine API documentation - http://www.wleklinski.de/rdf/