public abstract class NumberStarColumnWriter extends StarColumnWriter
StarColumnWriter.DataStat
Modifier | Constructor and Description |
---|---|
protected |
NumberStarColumnWriter(StarTable table,
int icol,
uk.ac.bristol.star.feather.FeatherType featherType,
boolean isNullable,
byte[] blank)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ItemAccumulator |
createItemAccumulator(StoragePolicy storage) |
StarColumnWriter.DataStat |
writeDataBytes(java.io.OutputStream out)
Writes the bytes consituting the data stream for this column,
excluding any optional validity mask.
|
protected abstract void |
writeNumber(java.io.OutputStream out,
java.lang.Number value)
Writes the bytes for a given typed value.
|
getColumnIndex, getFeatherType, getName, getTable, getUserMetadata, isNullable, writeColumnBytes
protected NumberStarColumnWriter(StarTable table, int icol, uk.ac.bristol.star.feather.FeatherType featherType, boolean isNullable, byte[] blank)
table
- input tableicol
- column indexfeatherType
- output data typeisNullable
- true iff no in-band blank representation existsblank
- byte pattern of blank value;
the length of this array also defines the output item
size in bytesprotected abstract void writeNumber(java.io.OutputStream out, java.lang.Number value) throws java.io.IOException
out
- destination streamvalue
- non-null typed value to writejava.io.IOException
public StarColumnWriter.DataStat writeDataBytes(java.io.OutputStream out) throws java.io.IOException
StarColumnWriter
writeDataBytes
in class StarColumnWriter
out
- destination streamjava.io.IOException
public ItemAccumulator createItemAccumulator(StoragePolicy storage)
createItemAccumulator
in class StarColumnWriter