|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.tuple.Tuple
Field Summary | |
protected static int |
COLUMN_ROWS
|
protected Hashtable |
columnCounters
|
protected int |
columnLength
|
protected int |
columnMaxLength
|
protected int |
endRow
|
protected int |
filledRows
|
protected ArrayList |
folderList
|
protected Map |
optionMap
|
protected int |
startRow
|
protected ArrayList |
tupleColumns
|
protected Value |
tupleValue
|
Fields inherited from interface hep.tuple.interfaces.FTuple |
ROWS_UNKNOWN |
Constructor Summary | |
protected |
Tuple(String name,
String title)
|
protected |
Tuple(String name,
String title,
String options)
|
Method Summary | |
void |
addColumn(FillableTupleColumn column)
Add a new FTupleColumn to the FillableTuple. |
void |
addRow()
Should be called after fill is called for the columns. |
void |
addTuple(FillableTuple tuple)
When a FillableTuple is added a corresponding FillableTupleColumn with type FillableTuple.class must be added as well! |
void |
close()
Free any resources associated with the Tuple (open disk files etc) |
FTupleColumn |
column(int column)
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. |
void |
columnMaxValue(int column,
Value value)
|
void |
columnMeanValue(int column,
Value value)
|
void |
columnMinValue(int column,
Value value)
|
String |
columnName(int column)
Get the name of a column from its index |
void |
columnRmsValue(int column,
Value value)
|
int |
columns()
Get the number of columns in the Tuple |
Class |
columnType(int column)
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. |
void |
fill(int column,
Value value)
Fill the stack for a column with String. |
protected Tuple |
getFolder(int index,
int cursor)
Get a Folder in a given configuration. |
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. |
void |
removeColumn(FillableTupleColumn column)
Remove a new FTupleColumn to the FillableTuple. |
void |
removeTuple(FillableTuple tuple)
Remove the whole FillableTuple. |
void |
reset()
Clears all rows from the FillableTuple. |
void |
resetRow()
Clears the values on the stack. |
void |
resetRows(int numberOfRows)
Clears the values on the stack. |
int |
rows()
Get the number of rows in the Tuple |
protected void |
setStartEndRow(int startRow,
int endRow)
Set the start row. |
int |
startRow()
Get the start Point. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int COLUMN_ROWS
protected int columnLength
protected int columnMaxLength
protected int startRow
protected int endRow
protected int filledRows
protected Map optionMap
protected ArrayList tupleColumns
protected ArrayList folderList
protected Hashtable columnCounters
protected Value tupleValue
Constructor Detail |
protected Tuple(String name, String title)
protected Tuple(String name, String title, String options)
Method Detail |
public void addColumn(FillableTupleColumn column)
FillableTuple
addColumn
in interface FillableTuple
public void removeColumn(FillableTupleColumn column)
FillableTuple
removeColumn
in interface FillableTuple
public int columns()
FTuple
columns
in interface FTuple
public FTupleColumn column(int column)
FTuple
column
in interface FTuple
column
- The index of the column to return
public FTupleColumn columnByName(String name)
FTuple
columnByName
in interface FTuple
name
- The name of the column to search for
public int columnIndexByName(String name)
FTuple
columnIndexByName
in interface FTuple
name
- The column's name.
public String columnName(int column)
FTuple
columnName
in interface FTuple
column
- The column's index
public Class columnType(int column)
FTuple
columnType
in interface FTuple
column
- The column's index
public void columnMinValue(int column, Value value)
public void columnMaxValue(int column, Value value)
public void columnMeanValue(int column, Value value)
public void columnRmsValue(int column, Value value)
public void addRow()
FillableTuple
addRow
in interface FillableTuple
public void resetRow()
FillableTuple
resetRow
in interface FillableTuple
public void reset()
FillableTuple
reset
in interface FillableTuple
public int rows()
FTuple
rows
in interface FTuple
public void close()
FTuple
close
in interface FTuple
public FTupleCursor cursor() throws IllegalStateException
FTuple
cursor
in interface FTuple
IllegalStateException
public boolean supportsMultipleCursors()
FTuple
supportsMultipleCursors
in interface FTuple
public boolean supportsRandomAccess()
FTuple
supportsRandomAccess
in interface FTuple
public String title()
FTuple
title
in interface FTuple
public String name()
FTuple
name
in interface FTuple
public int startRow()
protected void setStartEndRow(int startRow, int endRow)
startRow
- The start row.public void resetRows(int numberOfRows)
public FTuple tuple(int index)
tuple
in interface FTuple
index
- The column's index of the Folder.
protected Tuple getFolder(int index, int cursor)
index
- The column's index for this Folder.cursor
- The cursor position for the Folder.public void columnValue(int column, FTupleCursor cursor, Value value)
FTuple
columnValue
in interface FTuple
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 void fill(int column, Value value)
FillableTuple
fill
in interface FillableTuple
column
- the column's indexvalue
- the value to be storedpublic void addTuple(FillableTuple tuple)
FillableTuple
addTuple
in interface FillableTuple
public void removeTuple(FillableTuple tuple)
FillableTuple
removeTuple
in interface FillableTuple
public boolean isInMemory()
FTuple
isInMemory
in interface FTuple
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |