| java.lang.Object prefuse.data.tuple.TupleManager
TupleManager | public class TupleManager (Code) | | Manager class for Tuples. There is a unique Tuple for each row of a table.
All data structures and Tuples are created lazily, on an as-needed basis.
When a row is deleted from the table, it's corresponding Tuple (if created)
is invalidated before being removed from this data structure, ensuring that
any other live references to the Tuple can't be used to corrupt the table.
author: jeffrey heer |
Inner Class :public class TupleManagerIterator implements Iterator | |
TupleManager | public TupleManager(Table t, Graph g, Class tupleType)(Code) | | Create a new TupleManager for the given Table.
Parameters: t - the data Table to generate Tuples for |
getTuple | public Tuple getTuple(int row)(Code) | | Get a Tuple corresponding to the given row index.
Parameters: row - the row index the Tuple corresponding to the given row |
getTupleType | public Class getTupleType()(Code) | | Get the type of Tuple instances to generate.
the tuple type, as a Class instance |
init | public void init(Table t, Graph g, Class tupleType)(Code) | | Initialize this TupleManager for use with a given Table.
Parameters: t - the data Table to generate Tuples for |
invalidate | public void invalidate(int row)(Code) | | Invalidate the tuple at the given row.
Parameters: row - the row index to invalidate |
invalidateAll | public void invalidateAll()(Code) | | Invalidate all tuples managed by this TupleManager
|
iterator | public Iterator iterator(IntIterator rows)(Code) | | Return an iterator over the tuples in this manager.
Parameters: rows - an iterator over table rows an iterator over the tuples indicated by the input row iterator |
newTuple | protected TableTuple newTuple(int row)(Code) | | Instantiate a new Tuple instance for the given row index.
Parameters: row - the row index of the tuple the newly created Tuple |
|
|