public interface ColumnWriter
Modifier and Type | Method and Description |
---|---|
void |
copy(ColumnReader from)
Copy a single value from the given reader, which must be of the
same type as this writer.
|
boolean |
isProjected()
Whether this writer is projected (is backed by a materialized vector),
or is unprojected (is just a dummy writer.) In most cases, clients can
ignore whether the column is projected and just write to the writer.
|
boolean |
nullable()
Whether this writer allows nulls.
|
ColumnMetadata |
schema()
Returns the schema of the column associated with this writer.
|
void |
setNull()
Set the current value to null.
|
void |
setObject(Object value)
Generic technique to write data as a generic Java object.
|
ObjectType |
type()
Return the object (structure) type of this writer.
|
ObjectType type()
boolean nullable()
TypeProtos.DataMode.OPTIONAL
type in the schema. List entries
are nullable, if they are primitive, but not if they are maps or lists.
Unions are nullable, regardless of cardinality.setNull()
is supported, false
if notboolean isProjected()
ColumnMetadata schema()
void setNull()
void copy(ColumnReader from)
from
- reader to provide the datavoid setObject(Object value)
value
- value to write to the vector. The Java type of the
object indicates the Drill storage typeIllegalArgumentException
- if the type of the Java object
cannot be mapped to the type of the underlying vector or
vector structureCopyright © 1970 The Apache Software Foundation. All rights reserved.