public abstract class ArrayColumn extends ColumnData
Modifier and Type | Method and Description |
---|---|
Object |
getArray()
Returns the array object which holds the array data for this
column.
|
boolean |
isWritable()
Returns true, since this class can store cell values.
|
static ArrayColumn |
makeColumn(ColumnInfo base,
long rowCount)
Obtains an ArrayColumn object based on a template
object with a given number of rows.
|
static ArrayColumn |
makeColumn(ColumnInfo base,
Object data)
Constructs a new ArrayColumn based on a given data array.
|
static ArrayColumn |
makeColumn(String name,
Object data)
Constructs a new ArrayColumn based on a given data array.
|
Object |
readValue(long lrow)
Returns the value stored at a given row in this column.
|
void |
storeValue(long lrow,
Object val)
Stores a given value in a given row for this column.
|
getColumnInfo, setColumnInfo
public boolean isWritable()
isWritable
in class ColumnData
public void storeValue(long lrow, Object val)
ColumnData
storeValue
in class ColumnData
lrow
- the row to store it inval
- the object to storepublic Object readValue(long lrow)
ColumnData
readValue
in class ColumnData
lrow
- the row from which to retrieve the valuepublic Object getArray()
public static ArrayColumn makeColumn(ColumnInfo base, long rowCount)
base
- the template ColumnInfo - note this is
not the actual ColumnInfo object which will be returned
by the getColumnInfo method of the returned
ArrayColumnrowCount
- the number of rows it is to holdpublic static ArrayColumn makeColumn(ColumnInfo base, Object data)
base
- the column info on which to base this column's infodata
- an array of primitives or objects which will form
the storage for this columnIllegalArgumentException
- if data isn't an array or
base.getContentClass() is incompatible with
datapublic static ArrayColumn makeColumn(String name, Object data)
name
- the name of the new columndata
- an array of primitives or objects which will form
the storage for this columnCopyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.