public class TupleManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TupleManager.TupleManagerIterator
Iterator instance for iterating over tuples managed in a TupleManager.
|
Modifier and Type | Field and Description |
---|---|
protected Graph |
m_graph |
protected Table |
m_table |
protected java.lang.Class |
m_tupleType |
Constructor and Description |
---|
TupleManager(Table t,
Graph g,
java.lang.Class tupleType)
Create a new TupleManager for the given Table.
|
Modifier and Type | Method and Description |
---|---|
Tuple |
getTuple(int row)
Get a Tuple corresponding to the given row index.
|
java.lang.Class |
getTupleType()
Get the type of Tuple instances to generate.
|
void |
init(Table t,
Graph g,
java.lang.Class tupleType)
Initialize this TupleManager for use with a given Table.
|
void |
invalidate(int row)
Invalidate the tuple at the given row.
|
void |
invalidateAll()
Invalidate all tuples managed by this TupleManager
|
java.util.Iterator |
iterator(IntIterator rows)
Return an iterator over the tuples in this manager.
|
protected TableTuple |
newTuple(int row)
Instantiate a new Tuple instance for the given row index.
|
protected Graph m_graph
protected Table m_table
protected java.lang.Class m_tupleType
public void init(Table t, Graph g, java.lang.Class tupleType)
t
- the data Table to generate Tuples forpublic java.lang.Class getTupleType()
public Tuple getTuple(int row)
row
- the row indexprotected TableTuple newTuple(int row)
row
- the row index of the tuplepublic void invalidate(int row)
row
- the row index to invalidatepublic void invalidateAll()
public java.util.Iterator iterator(IntIterator rows)
rows
- an iterator over table rowsCopyright ? 2013 Regents of the University of California