public abstract class StarColumnWriter
extends java.lang.Object
implements uk.ac.bristol.star.feather.FeatherColumnWriter
Modifier and Type | Class and Description |
---|---|
static class |
StarColumnWriter.DataStat
Aggregates information about column output.
|
Modifier | Constructor and Description |
---|---|
protected |
StarColumnWriter(StarTable table,
int icol,
uk.ac.bristol.star.feather.FeatherType featherType,
boolean isNullable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract ItemAccumulator |
createItemAccumulator(StoragePolicy storage) |
int |
getColumnIndex()
Returns the index of the input table column which is being written.
|
uk.ac.bristol.star.feather.FeatherType |
getFeatherType()
Returns the output data type code.
|
java.lang.String |
getName() |
StarTable |
getTable()
Returns the table on which this writer is operating.
|
java.lang.String |
getUserMetadata() |
boolean |
isNullable()
Indicates whether this writer may write a validity mask.
|
uk.ac.bristol.star.feather.ColStat |
writeColumnBytes(java.io.OutputStream out) |
abstract StarColumnWriter.DataStat |
writeDataBytes(java.io.OutputStream out)
Writes the bytes consituting the data stream for this column,
excluding any optional validity mask.
|
protected StarColumnWriter(StarTable table, int icol, uk.ac.bristol.star.feather.FeatherType featherType, boolean isNullable)
isNullable
parameter only needs to be given true
if the writeData method cannot represent null values in its
byte representation.table
- inupt tableicol
- column index in input tablefeatherType
- data type for output columnisNullable
- true iff writeData cannot write in-band null valuespublic abstract StarColumnWriter.DataStat writeDataBytes(java.io.OutputStream out) throws java.io.IOException
out
- destination streamjava.io.IOException
public StarTable getTable()
public int getColumnIndex()
public uk.ac.bristol.star.feather.FeatherType getFeatherType()
getFeatherType
in interface uk.ac.bristol.star.feather.FeatherColumnWriter
public boolean isNullable()
public java.lang.String getName()
getName
in interface uk.ac.bristol.star.feather.FeatherColumnWriter
public java.lang.String getUserMetadata()
getUserMetadata
in interface uk.ac.bristol.star.feather.FeatherColumnWriter
public uk.ac.bristol.star.feather.ColStat writeColumnBytes(java.io.OutputStream out) throws java.io.IOException
writeColumnBytes
in interface uk.ac.bristol.star.feather.FeatherColumnWriter
java.io.IOException
public abstract ItemAccumulator createItemAccumulator(StoragePolicy storage)