Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getColumnList()
- getDescriptor()
- getDouble(String)
- setDouble(String, double[])
- setDouble(String, int, double)
- appendDouble(String, double[])
- getFloat(String)
- setFloat(String, float[])
- setFloat(String, int, float)
- appendFloat(String, float[])
- getInt(String)
- setInt(String, int[])
- setInt(String, int, int)
- appendInt(String, int[])
- getShort(String)
- setShort(String, short[])
- setShort(String, int, short)
- appendShort(String, short[])
- getByte(String)
- setByte(String, byte[])
- setByte(String, int, byte)
- appendByte(String, byte[])
- getLong(String)
- setLong(String, long[])
- setLong(String, int, long)
- appendLong(String, long[])
- columns()
- rows()
- show()
- reset()
- allocate(int)
- getDouble(String, int)
- getFloat(String, int)
- getInt(String, int)
- getLong(String, int)
- getShort(String, int)
- getByte(String, int)
- getTableModel(String)
Class BasicDataBank
java.lang.Object
org.jlab.io.base.BasicDataBank
- All Implemented Interfaces:
DataBank
- Direct Known Subclasses:
EvioDataBank
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
allocate
(int rows) Allocates all variables for the the bank. the names are taken from the descriptor object.void
appendByte
(String path, byte[] arr) void
appendDouble
(String path, double[] arr) Not implemented.void
appendFloat
(String path, float[] arr) Not implemented.void
Not implemented.void
appendLong
(String path, long[] arr) void
appendShort
(String path, short[] arr) int
columns()
Returns the number of columns in the bank. columns are number of variables.byte[]
byte
String[]
Get the names of the columns in the bank.Returns the descriptor of the bank, that contains names of the variables and their types.double[]
Returns a double array for given column name.double
float[]
Returns a float array for given column name.float
int[]
int
long[]
long
short[]
short
getTableModel
(String mask) Returns a table model for displaying the bank informationvoid
reset()
Clears the content of the bank. all columns are removed.int
rows()
returns the number of rows in the bank, assuming all columns have the same length.void
void
void
Adds given array to the doubles container.void
Change the value for individual entry for given column.void
Adds given array to the floats container.void
Change the value for individual entry for given column.void
void
void
void
void
void
void
show()
Prints the content of the bank on the screen.
-
Constructor Details
-
Method Details
-
getColumnList
Description copied from interface:DataBank
Get the names of the columns in the bank. The name is used in the calls getInt() and getDouble() and other calls for get the arrays.- Specified by:
getColumnList
in interfaceDataBank
- Returns:
- array of strings with names.
-
getDescriptor
Description copied from interface:DataBank
Returns the descriptor of the bank, that contains names of the variables and their types.- Specified by:
getDescriptor
in interfaceDataBank
- Returns:
- bank descriptor
-
getDouble
-
setDouble
-
setDouble
-
appendDouble
Not implemented.- Specified by:
appendDouble
in interfaceDataBank
- Parameters:
path
-arr
-
-
getFloat
-
setFloat
-
setFloat
-
appendFloat
Not implemented.- Specified by:
appendFloat
in interfaceDataBank
- Parameters:
path
-arr
-
-
getInt
-
setInt
-
setInt
-
appendInt
-
getShort
-
setShort
-
setShort
-
appendShort
- Specified by:
appendShort
in interfaceDataBank
-
getByte
-
setByte
-
setByte
-
appendByte
- Specified by:
appendByte
in interfaceDataBank
-
getLong
-
setLong
-
setLong
-
appendLong
- Specified by:
appendLong
in interfaceDataBank
-
columns
-
rows
-
show
-
reset
-
allocate
-
getDouble
-
getFloat
-
getInt
-
getLong
-
getShort
-
getByte
-
getTableModel
Description copied from interface:DataBank
Returns a table model for displaying the bank information- Specified by:
getTableModel
in interfaceDataBank
- Parameters:
mask
-- Returns:
-