public abstract class ColumnData extends Object
Constructor and Description |
---|
ColumnData()
Constructs a new ColumnData with no metadata.
|
ColumnData(ColumnInfo colinfo)
Constructs a new
ColumnData with metadata supplied by a
given ColumnInfo object. |
ColumnData(ValueInfo base)
Performs
ColumnData initialisation based on template
ValueInfo object. |
Modifier and Type | Method and Description |
---|---|
ColumnInfo |
getColumnInfo()
Returns the
ColumnInfo which provides the metadata for this
column. |
boolean |
isWritable()
Indicates whether this object can store values.
|
abstract Object |
readValue(long irow)
Returns the value stored at a given row in this column.
|
void |
setColumnInfo(ColumnInfo colinfo)
Sets the
ColumnInfo which provides the metadata for this
column. |
void |
storeValue(long irow,
Object val)
Stores a given value in a given row for this column.
|
public ColumnData()
public ColumnData(ColumnInfo colinfo)
ColumnData
with metadata supplied by a
given ColumnInfo
object.colinfo
- the column metadatapublic ColumnData(ValueInfo base)
ColumnData
initialisation based on template
ValueInfo
object.base
- templatepublic ColumnInfo getColumnInfo()
ColumnInfo
which provides the metadata for this
column.public void setColumnInfo(ColumnInfo colinfo)
ColumnInfo
which provides the metadata for this
column.colinfo
- the column metadatapublic abstract Object readValue(long irow) throws IOException
irow
- the row from which to retrieve the valueirow
IOException
- if there is some problem readingpublic void storeValue(long irow, Object val) throws IOException
isWritable
method returns true.
The implementation in the ColumnData
class throws
an UnsupportedOperationException
.val
- the object to storeirow
- the row to store it inUnsupportedOperationException
- if !isWritable()
NullPointerException
- if val==null
and
this column is not nullableArrayStoreException
- if val
is not compatible
with the content class of this columnIOException
- if there is some problem writingpublic boolean isWritable()
ColumnData
class returns
false
storeValue(long, java.lang.Object)
can be usedCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.