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(OutputStream out)
Writes the bytes consituting the data stream for this column,
excluding any optional validity mask.
|
protected abstract void |
writeNumber(OutputStream out,
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(OutputStream out, Number value) throws IOException
out - destination streamvalue - non-null typed value to writeIOExceptionpublic StarColumnWriter.DataStat writeDataBytes(OutputStream out) throws IOException
StarColumnWriterwriteDataBytes in class StarColumnWriterout - destination streamIOExceptionpublic ItemAccumulator createItemAccumulator(StoragePolicy storage)
createItemAccumulator in class StarColumnWriterCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.