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, waitvalueTypeschemabindBufferprotected ColumnReaderIndex vectorIndex
protected NullStateReader nullStateReader
public static AbstractScalarReader.ScalarObjectReader nullReader(ColumnMetadata schema)
public void bindIndex(ColumnReaderIndex rowIndex)
bindIndex in interface ReaderEventspublic void bindNullState(NullStateReader nullStateReader)
bindNullState in interface ReaderEventspublic ObjectType type()
ColumnReadertype in interface ColumnReaderpublic ValueType extendedType()
ScalarReaderextendedType in interface ScalarReaderpublic NullStateReader nullStateReader()
nullStateReader in interface ReaderEventspublic void reposition()
reposition in interface ReaderEventspublic boolean isNull()
ColumnReaderisNull in interface ColumnReaderprotected UnsupportedConversionError conversionError(String javaType)
public boolean getBoolean()
getBoolean in interface ScalarReaderpublic int getInt()
getInt in interface ScalarReaderpublic long getLong()
getLong in interface ScalarReaderpublic float getFloat()
getFloat in interface ScalarReaderpublic double getDouble()
getDouble in interface ScalarReaderpublic String getString()
getString in interface ScalarReaderpublic byte[] getBytes()
getBytes in interface ScalarReaderpublic BigDecimal getDecimal()
getDecimal in interface ScalarReaderpublic org.joda.time.Period getPeriod()
getPeriod in interface ScalarReaderpublic LocalDate getDate()
getDate in interface ScalarReaderpublic LocalTime getTime()
getTime in interface ScalarReaderpublic Instant getTimestamp()
getTimestamp in interface ScalarReaderpublic Object getObject()
ColumnReadergetObject in interface ColumnReaderpublic Object getValue()
ScalarReadergetValue in interface ScalarReaderpublic String getAsString()
ColumnReadergetAsString in interface ColumnReaderCopyright © 2021 The Apache Software Foundation. All rights reserved.