|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface implemented by all Tuples. This is the minimal interface that a tuple should implement. FTuples can be used with the TupleExplorer
Field Summary | |
static int |
ROWS_UNKNOWN
|
Method Summary | |
void |
close()
Free any resources associated with the Tuple (open disk files etc) |
FTupleColumn |
column(int index)
Get a TupleColumn |
FTupleColumn |
columnByName(String name)
Find the index of a column by name |
int |
columnIndexByName(String name)
Get the index corresponding to a given column. |
String |
columnName(int index)
Get the name of a column from its index |
int |
columns()
Get the number of columns in the Tuple |
Class |
columnType(int index)
Get the type of a column from its index |
void |
columnValue(int column,
FTupleCursor cursor,
Value value)
Get a value stored in the column. |
FTupleCursor |
cursor()
Get a cursor for accessing data from the Tuple. |
boolean |
isInMemory()
The purpose of this method is to see if a FTuple would benefit from being buffered in memory for performance issues. |
String |
name()
Get the name of the Tuple. |
int |
rows()
Get the number of rows in the Tuple |
boolean |
supportsMultipleCursors()
Determine if this Tuple supports multiple cursors |
boolean |
supportsRandomAccess()
Determine if the cursor returned by getCursor allows random access to the data |
String |
title()
Get the title of the Tuple. |
FTuple |
tuple(int index)
Get Folder at the current cursor position. |
Field Detail |
public static final int ROWS_UNKNOWN
Method Detail |
public String title()
public String name()
public int columns()
public int rows()
public FTupleColumn column(int index)
index
- The index of the column to return
public FTupleColumn columnByName(String name)
name
- The name of the column to search for
public int columnIndexByName(String name)
name
- The column's name.
public String columnName(int index)
index
- The column's index
public Class columnType(int index)
index
- The column's index
public void columnValue(int column, FTupleCursor cursor, Value value)
column
- The column's index.cursor
- The cursor that specifies which value to get.value
- The Value object in which the value is passed.public FTuple tuple(int index)
index
- The column's index of the Folder.
public boolean supportsRandomAccess()
public boolean supportsMultipleCursors()
public FTupleCursor cursor() throws IllegalStateException
IllegalStateEsxception
- If no cursor is currently available
IllegalStateException
public void close()
public boolean isInMemory()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |