FreeHEP API
Version current

hep.tuple.interfaces
Interface FillableTuple

All Superinterfaces:
FTuple
All Known Implementing Classes:
Tuple

public interface FillableTuple
extends FTuple

An interface implemented by all mutable tuples. Through this interface tuples can be modified. Columns and folders can be added and removed. Columns can be filled, rows can be added.

Author:
The FreeHEP team @ SLAC.
Source Code:
FillableTuple.java

Field Summary
 
Fields inherited from interface hep.tuple.interfaces.FTuple
ROWS_UNKNOWN
 
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 fill(int column, Value value)
          Fill the stack for a column with String.
 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.
 
Methods inherited from interface hep.tuple.interfaces.FTuple
close, column, columnByName, columnIndexByName, columnName, columns, columnType, columnValue, cursor, isInMemory, name, rows, supportsMultipleCursors, supportsRandomAccess, title, tuple
 

Method Detail

fill

public void fill(int column,
                 Value value)
Fill the stack for a column with String. If the column has an incompatible type an IllegalArgumentException is thrown.

Parameters:
column - the column's index
value - the value to be stored

addRow

public void addRow()
Should be called after fill is called for the columns. Unfilled columns will be filled with the default value for that column.


resetRow

public void resetRow()
Clears the values on the stack.


reset

public void reset()
Clears all rows from the FillableTuple.


addColumn

public void addColumn(FillableTupleColumn column)
Add a new FTupleColumn to the FillableTuple.


removeColumn

public void removeColumn(FillableTupleColumn column)
Remove a new FTupleColumn to the FillableTuple.


addTuple

public void addTuple(FillableTuple tuple)
When a FillableTuple is added a corresponding FillableTupleColumn with type FillableTuple.class must be added as well!


removeTuple

public void removeTuple(FillableTuple tuple)
Remove the whole FillableTuple.


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.