public class WrapperColumn extends ColumnData
Constructor and Description |
---|
WrapperColumn(ColumnData base)
Initialises a new WrapperColumn based on a base column.
|
Modifier and Type | Method and Description |
---|---|
ColumnData |
getBaseColumn()
Returns the column on which this one is based.
|
boolean |
isWritable()
Indicates whether this object can store values.
|
Object |
readValue(long irow)
Returns the value stored at a given row in this column.
|
void |
storeValue(long irow,
Object val)
Stores a given value in a given row for this column.
|
getColumnInfo, setColumnInfo
public WrapperColumn(ColumnData base)
base
- the base columnpublic Object readValue(long irow) throws IOException
ColumnData
readValue
in class ColumnData
irow
- the row from which to retrieve the valueirow
IOException
- if there is some problem readingpublic void storeValue(long irow, Object val) throws IOException
ColumnData
isWritable
method returns true.
The implementation in the ColumnData
class throws
an UnsupportedOperationException
.storeValue
in class ColumnData
irow
- the row to store it inval
- the object to storeIOException
- if there is some problem writingpublic boolean isWritable()
ColumnData
ColumnData
class returns
false
isWritable
in class ColumnData
ColumnData.storeValue(long, java.lang.Object)
can be usedpublic ColumnData getBaseColumn()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.