public abstract class StarColumnWriter extends 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.
|
String |
getName() |
StarTable |
getTable()
Returns the table on which this writer is operating.
|
String |
getUserMetadata() |
boolean |
isNullable()
Indicates whether this writer may write a validity mask.
|
uk.ac.bristol.star.feather.ColStat |
writeColumnBytes(OutputStream out) |
abstract StarColumnWriter.DataStat |
writeDataBytes(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(OutputStream out) throws IOException
out - destination streamIOExceptionpublic StarTable getTable()
public int getColumnIndex()
public uk.ac.bristol.star.feather.FeatherType getFeatherType()
getFeatherType in interface uk.ac.bristol.star.feather.FeatherColumnWriterpublic boolean isNullable()
public String getName()
getName in interface uk.ac.bristol.star.feather.FeatherColumnWriterpublic String getUserMetadata()
getUserMetadata in interface uk.ac.bristol.star.feather.FeatherColumnWriterpublic uk.ac.bristol.star.feather.ColStat writeColumnBytes(OutputStream out) throws IOException
writeColumnBytes in interface uk.ac.bristol.star.feather.FeatherColumnWriterIOExceptionpublic abstract ItemAccumulator createItemAccumulator(StoragePolicy storage)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.