|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.aida.ref.event.AIDAObservable | +--hep.aida.ref.ManagedObject | +--hep.aida.ref.tuple.AbstractTuple | +--hep.aida.ref.tuple.ChainedTuple
Field Summary |
Fields inherited from class hep.aida.ref.ManagedObject |
fillable |
Fields inherited from class hep.aida.ref.event.AIDAObservable |
isValid |
Fields inherited from interface hep.tuple.interfaces.FTuple |
ROWS_UNKNOWN |
Constructor Summary | |
ChainedTuple(String name,
String title,
hep.aida.ITuple[] set)
Tuple constructor. |
Method Summary | |
void |
addColumn(FTupleColumn column)
|
void |
addTuple(FillableTuple tuple)
|
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 |
String |
columnDefaultString(int column)
|
int |
columnIndexByName(String name)
Get the index corresponding to a given column. |
double |
columnMax(int column)
Get the maximum value of a column. |
void |
columnMaxValue(int column,
Value value)
|
double |
columnMean(int column)
Get the mean value of a column. |
void |
columnMeanValue(int column,
Value value)
|
double |
columnMin(int column)
Get the minimum value of a column. |
void |
columnMinValue(int column,
Value value)
|
String |
columnName(int column)
Get the name of a column from its index |
String[] |
columnNames()
|
double |
columnRms(int column)
Get the rms of a column. |
void |
columnRmsValue(int column,
Value value)
|
int |
columns()
Get the number of columns in the Tuple. |
Class |
columnType(int column)
Get the type of the column from its index |
Class[] |
columnTypes()
|
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)
|
int |
findColumn(String name)
Convert a name to a column index. |
boolean |
getBoolean(int column)
Get the column's value corresponding to the cursor's current position. |
byte |
getByte(int column)
Get the column's value corresponding to the cursor's current position. |
char |
getChar(int column)
Get the column's value corresponding to the cursor's current position. |
double |
getDouble(int column)
Get the column's value corresponding to the cursor's current position. |
float |
getFloat(int column)
Get the column's value corresponding to the cursor's current position. |
int |
getInt(int column)
Get the column's value corresponding to the cursor's current position. |
long |
getLong(int column)
Get the column's value corresponding to the cursor's current position. |
Object |
getObject(int column)
tupleValue |
int |
getRow()
Get the current row. |
short |
getShort(int column)
Get the column's value corresponding to the cursor's current position. |
String |
getString(int column)
Get the column's value corresponding to the cursor's current position. |
hep.aida.ITuple |
getTuple(int column)
|
boolean |
isInMemory()
The purpose of this method is to see if a FTuple would benefit from being buffered in memory for performance issues. |
static void |
main(String[] args)
|
boolean |
next()
Positions the cursor at the next row. |
void |
removeColumn(FTupleColumn column)
|
void |
removeTuple(FillableTuple tuple)
|
int |
rows()
The number of rows currently in the ntuple. |
void |
setRow(int row)
Set the current row. |
void |
skip(int rows)
Skips rows. |
void |
start()
Positions the read cursor immediately before the first row. |
boolean |
supportsMultipleCursors()
Determine if this Tuple supports multiple cursors |
boolean |
supportsRandomAccess()
Determine if the cursor returned by getCursor allows random access to the data |
FTuple |
tuple(int index)
Get Folder at the current cursor position. |
Methods inherited from class hep.aida.ref.tuple.AbstractTuple |
addRow, annotation, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, getAIDAType, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, reset, resetRow, setAnnotation, setTitle, title |
Methods inherited from class hep.aida.ref.ManagedObject |
isFillable, name, setFillable, setName |
Methods inherited from class hep.aida.ref.event.AIDAObservable |
addListener, createEvent, fireStateChanged, fireStateChanged, removeListener, setIsValidAfterNotify, setValid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hep.tuple.interfaces.FTuple |
name, title |
Constructor Detail |
public ChainedTuple(String name, String title, hep.aida.ITuple[] set)
name
- the Tuple's nametitle
- the Tuple's titleset
- Array of ITuples to be chainedMethod Detail |
public String columnDefaultString(int column)
public int columns()
columns
in interface FTuple
public String columnName(int column)
columnName
in interface FTuple
column
- the column's index
public String[] columnNames()
columnNames
in interface hep.aida.ITuple
columnNames
in class AbstractTuple
public Class columnType(int column)
columnType
in interface FTuple
column
- the column's index
public Class[] columnTypes()
columnTypes
in interface hep.aida.ITuple
columnTypes
in class AbstractTuple
public double columnMin(int column)
columnMin
in interface hep.aida.ITuple
column
- The column's index.
public double columnMax(int column)
columnMax
in interface hep.aida.ITuple
column
- The column's index.
public double columnMean(int column)
columnMean
in interface hep.aida.ITuple
column
- The column's index.
public double columnRms(int column)
columnRms
in interface hep.aida.ITuple
column
- The column's index.
public int rows()
rows
in interface FTuple
public int getRow()
getRow
in class AbstractTuple
public hep.aida.ITuple getTuple(int column)
getTuple
in interface hep.aida.ITuple
public void setRow(int row)
setRow
in interface hep.aida.ITuple
row
- The current row;
public void start()
start
in interface hep.aida.ITuple
public void skip(int rows)
skip
in interface hep.aida.ITuple
rows
- number of rows to skip, greater than 0.
public boolean next()
next
in interface hep.aida.ITuple
public int findColumn(String name) throws IllegalArgumentException
findColumn
in interface hep.aida.ITuple
IllegalArgumentException
public int getInt(int column) throws ClassCastException
getInt
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public short getShort(int column) throws ClassCastException
getShort
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public long getLong(int column) throws ClassCastException
getLong
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public float getFloat(int column) throws ClassCastException
getFloat
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public double getDouble(int column) throws ClassCastException
getDouble
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public boolean getBoolean(int column) throws ClassCastException
getBoolean
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public byte getByte(int column) throws ClassCastException
getByte
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public char getChar(int column) throws ClassCastException
getChar
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public String getString(int column) throws ClassCastException
getString
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public Object getObject(int column) throws ClassCastException
getObject
in interface hep.aida.ITuple
column
- the column's index
ClassCastException
public void addColumn(FTupleColumn column)
public void addTuple(FillableTuple tuple)
public void close()
FTuple
close
in interface FTuple
public FTupleColumn column(int index)
FTuple
column
in interface FTuple
index
- 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 void columnMaxValue(int column, Value value)
public void columnMeanValue(int column, Value value)
public void columnMinValue(int column, Value value)
public void columnRmsValue(int column, Value value)
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 FTupleCursor cursor() throws IllegalStateException
FTuple
cursor
in interface FTuple
IllegalStateException
public void fill(int column, Value value)
public void removeColumn(FTupleColumn column)
public void removeTuple(FillableTuple tuple)
public boolean supportsMultipleCursors()
FTuple
supportsMultipleCursors
in interface FTuple
public boolean supportsRandomAccess()
FTuple
supportsRandomAccess
in interface FTuple
public FTuple tuple(int index)
FTuple
tuple
in interface FTuple
index
- The column's index of the Folder.
public static void main(String[] args)
public boolean isInMemory()
FTuple
isInMemory
in interface FTuple
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |