public interface ScalarReader extends ColumnReader
In general, a column maps to just one value. However, derived classes may choose to provide type conversions if convenient. An exception is thrown if a call is made to a method that is not supported by the column type.
Values of scalars are provided directly, using the get method for the target type. Maps and arrays are structured types and require another level of reader abstraction to access each value in the structure.
See ScalarWriter
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
getBoolean() |
byte[] |
getBytes() |
LocalDate |
getDate() |
BigDecimal |
getDecimal() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
org.joda.time.Period |
getPeriod() |
String |
getString() |
LocalTime |
getTime() |
Instant |
getTimestamp() |
Object |
getValue()
Return the value of the object using the extended type.
|
ValueType |
valueType()
Describe the type of the value.
|
getAsString, getObject, isNull, schema, type
ValueType valueType()
ValueType extendedType()
int getInt()
boolean getBoolean()
long getLong()
float getFloat()
double getDouble()
String getString()
byte[] getBytes()
BigDecimal getDecimal()
org.joda.time.Period getPeriod()
LocalDate getDate()
LocalTime getTime()
Instant getTimestamp()
Object getValue()
Copyright © 1970 The Apache Software Foundation. All rights reserved.