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, writeColumnBytesprotected 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.IOExceptionpublic StarColumnWriter.DataStat writeDataBytes(java.io.OutputStream out) throws java.io.IOException
StarColumnWriterwriteDataBytes in class StarColumnWriterout - destination streamjava.io.IOExceptionpublic ItemAccumulator createItemAccumulator(StoragePolicy storage)
createItemAccumulator in class StarColumnWriter