|
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.Tuple
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 | |
Tuple(String name,
String title,
String[] columnName,
Class[] columnType,
String options)
|
|
Tuple(String name,
String title,
String[] columnName,
Class[] columnType,
String options,
FTupleFactory fTupleFactory)
|
|
Tuple(String name,
String title,
String columnsString,
String options)
|
|
Tuple(String name,
String title,
String columnsString,
String options,
FTupleFactory fTupleFactory)
|
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 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)
|
double |
columnMean(int column)
|
double |
columnMin(int column)
|
String |
columnName(int param)
Get the name of a column from its index |
String[] |
columnNames()
|
double |
columnRms(int column)
|
int |
columns()
Get the number of columns in the Tuple |
Class |
columnType(int param)
Get the type of a 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(double[] values)
|
void |
fill(float[] values)
|
void |
fill(int column,
boolean value)
|
void |
fill(int column,
byte value)
|
void |
fill(int column,
char value)
|
void |
fill(int column,
double value)
|
void |
fill(int column,
float value)
|
void |
fill(int column,
int value)
|
void |
fill(int column,
long value)
|
void |
fill(int column,
Object obj)
|
void |
fill(int column,
short value)
|
void |
fill(int column,
String string)
|
void |
fill(int column,
Value value)
Fill the stack for a column with String. |
int |
findColumn(String str)
|
protected FillableTuple |
fTuple()
|
boolean |
getBoolean(int param)
|
byte |
getByte(int param)
|
char |
getChar(int param)
|
String |
getColString()
|
double |
getDouble(int param)
|
float |
getFloat(int param)
|
int |
getInt(int param)
|
long |
getLong(int param)
|
Object |
getObject(int param)
|
String |
getOptions()
|
short |
getShort(int param)
|
String |
getString(int param)
|
hep.aida.ITuple |
getTuple(int param)
|
protected void |
initTuple(String name,
String title,
String[] columnName,
Class[] columnType,
String options,
FTupleFactory fTupleFactory)
|
protected void |
initTuple(String name,
String title,
String columnsString,
String options,
FTupleFactory fTupleFactory)
|
protected void |
inspectOptions()
|
boolean |
isInMemory()
The purpose of this method is to see if a FTuple would benefit from being buffered in memory for performance issues. |
boolean |
next()
|
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. |
int |
row()
|
int |
rows()
Get the number of rows in the Tuple |
void |
setRow(int row)
|
void |
skip(int rows)
|
void |
start()
|
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 |
annotation, getAIDAType, getRow, 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, 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 Tuple(String name, String title, String[] columnName, Class[] columnType, String options)
public Tuple(String name, String title, String[] columnName, Class[] columnType, String options, FTupleFactory fTupleFactory)
public Tuple(String name, String title, String columnsString, String options)
public Tuple(String name, String title, String columnsString, String options, FTupleFactory fTupleFactory)
Method Detail |
protected void initTuple(String name, String title, String columnsString, String options, FTupleFactory fTupleFactory)
protected void initTuple(String name, String title, String[] columnName, Class[] columnType, String options, FTupleFactory fTupleFactory)
public String columnDefaultString(int column)
public boolean isInMemory()
FTuple
isInMemory
in interface FTuple
protected void inspectOptions()
public String getOptions()
public String getColString()
public double columnMin(int column)
columnMin
in interface hep.aida.ITuple
public double columnMax(int column)
columnMax
in interface hep.aida.ITuple
public double columnMean(int column)
columnMean
in interface hep.aida.ITuple
public double columnRms(int column)
columnRms
in interface hep.aida.ITuple
public int findColumn(String str) throws IllegalArgumentException
findColumn
in interface hep.aida.ITuple
IllegalArgumentException
public boolean getBoolean(int param) throws ClassCastException
getBoolean
in interface hep.aida.ITuple
ClassCastException
public byte getByte(int param) throws ClassCastException
getByte
in interface hep.aida.ITuple
ClassCastException
public char getChar(int param) throws ClassCastException
getChar
in interface hep.aida.ITuple
ClassCastException
public double getDouble(int param) throws ClassCastException
getDouble
in interface hep.aida.ITuple
ClassCastException
public float getFloat(int param) throws ClassCastException
getFloat
in interface hep.aida.ITuple
ClassCastException
public int getInt(int param) throws ClassCastException
getInt
in interface hep.aida.ITuple
ClassCastException
public long getLong(int param) throws ClassCastException
getLong
in interface hep.aida.ITuple
ClassCastException
public Object getObject(int param) throws ClassCastException
getObject
in interface hep.aida.ITuple
ClassCastException
public short getShort(int param) throws ClassCastException
getShort
in interface hep.aida.ITuple
ClassCastException
public String getString(int param) throws ClassCastException
getString
in interface hep.aida.ITuple
ClassCastException
public hep.aida.ITuple getTuple(int param)
getTuple
in interface hep.aida.ITuple
public void fill(int column, int value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, short value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, long value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, double value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, float value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, boolean value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, byte value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, char value) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, String string) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(int column, Object obj) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(float[] values) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public void fill(double[] values) throws IllegalArgumentException
fill
in interface hep.aida.ITuple
fill
in class AbstractTuple
IllegalArgumentException
public int row()
public void setRow(int row)
setRow
in interface hep.aida.ITuple
public void start()
start
in interface hep.aida.ITuple
public void skip(int rows)
skip
in interface hep.aida.ITuple
public boolean next()
next
in interface hep.aida.ITuple
public void addRow()
FillableTuple
addRow
in interface FillableTuple
addRow
in class AbstractTuple
public String columnName(int param)
FTuple
columnName
in interface FTuple
param
- The column's index
public String[] columnNames()
columnNames
in interface hep.aida.ITuple
columnNames
in class AbstractTuple
public Class columnType(int param)
FTuple
columnType
in interface FTuple
param
- The column's index
public Class[] columnTypes()
columnTypes
in interface hep.aida.ITuple
columnTypes
in class AbstractTuple
public int columns()
FTuple
columns
in interface FTuple
public void reset()
FillableTuple
reset
in interface FillableTuple
reset
in class AbstractTuple
public void resetRow()
FillableTuple
resetRow
in interface FillableTuple
resetRow
in class AbstractTuple
public int rows()
FTuple
rows
in interface FTuple
protected FillableTuple fTuple()
public void addColumn(FillableTupleColumn column)
FillableTuple
addColumn
in interface FillableTuple
public void addTuple(FillableTuple tuple)
FillableTuple
addTuple
in interface FillableTuple
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 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)
FillableTuple
fill
in interface FillableTuple
column
- the column's indexpublic void removeColumn(FillableTupleColumn column)
FillableTuple
removeColumn
in interface FillableTuple
public void removeTuple(FillableTuple tuple)
FillableTuple
removeTuple
in interface FillableTuple
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.
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |