public abstract class AbstractScalarReader extends Object implements ScalarReader, ReaderEvents
Modifier and Type | Class and Description |
---|---|
static class |
AbstractScalarReader.NullReader |
static class |
AbstractScalarReader.ScalarObjectReader |
Modifier and Type | Field and Description |
---|---|
protected NullStateReader |
nullStateReader |
protected ColumnReaderIndex |
vectorIndex |
Constructor and Description |
---|
AbstractScalarReader() |
Modifier and Type | Method and Description |
---|---|
void |
bindIndex(ColumnReaderIndex rowIndex) |
void |
bindNullState(NullStateReader nullStateReader) |
protected UnsupportedConversionError |
conversionError(String javaType) |
ValueType |
extendedType()
The extended type of the value, describes the secondary type
for DATE, TIME and TIMESTAMP for which the value type is
int or long.
|
String |
getAsString()
Return the entire object as a string.
|
boolean |
getBoolean() |
byte[] |
getBytes() |
LocalDate |
getDate() |
BigDecimal |
getDecimal() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
Object |
getObject()
Return the value of the underlying data as a Java object.
|
org.joda.time.Period |
getPeriod() |
String |
getString() |
LocalTime |
getTime() |
Instant |
getTimestamp() |
Object |
getValue()
Return the value of the object using the extended type.
|
boolean |
isNull()
Determine if this value is null.
|
static AbstractScalarReader.ScalarObjectReader |
nullReader(ColumnMetadata schema) |
NullStateReader |
nullStateReader() |
void |
reposition() |
ObjectType |
type()
The type of this reader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
valueType
schema
bindBuffer
protected ColumnReaderIndex vectorIndex
protected NullStateReader nullStateReader
public static AbstractScalarReader.ScalarObjectReader nullReader(ColumnMetadata schema)
public void bindIndex(ColumnReaderIndex rowIndex)
bindIndex
in interface ReaderEvents
public void bindNullState(NullStateReader nullStateReader)
bindNullState
in interface ReaderEvents
public ObjectType type()
ColumnReader
type
in interface ColumnReader
public ValueType extendedType()
ScalarReader
extendedType
in interface ScalarReader
public NullStateReader nullStateReader()
nullStateReader
in interface ReaderEvents
public void reposition()
reposition
in interface ReaderEvents
public boolean isNull()
ColumnReader
isNull
in interface ColumnReader
protected UnsupportedConversionError conversionError(String javaType)
public boolean getBoolean()
getBoolean
in interface ScalarReader
public int getInt()
getInt
in interface ScalarReader
public long getLong()
getLong
in interface ScalarReader
public float getFloat()
getFloat
in interface ScalarReader
public double getDouble()
getDouble
in interface ScalarReader
public String getString()
getString
in interface ScalarReader
public byte[] getBytes()
getBytes
in interface ScalarReader
public BigDecimal getDecimal()
getDecimal
in interface ScalarReader
public org.joda.time.Period getPeriod()
getPeriod
in interface ScalarReader
public LocalDate getDate()
getDate
in interface ScalarReader
public LocalTime getTime()
getTime
in interface ScalarReader
public Instant getTimestamp()
getTimestamp
in interface ScalarReader
public Object getObject()
ColumnReader
getObject
in interface ColumnReader
public Object getValue()
ScalarReader
getValue
in interface ScalarReader
public String getAsString()
ColumnReader
getAsString
in interface ColumnReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.