public class GenericAccessor extends AbstractSqlAccessor
| Constructor and Description |
|---|
GenericAccessor(ValueVector v) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject(int index)
(See
class description.) |
Class<?> |
getObjectClass()
Reports the class returned by getObject() of this accessor.
|
TypeProtos.MajorType |
getType()
Reports the (native) type of data accessed by this accessor.
|
boolean |
isNull(int index)
Reports whether the logical value is a SQL NULL.
|
getBigDecimal, getBoolean, getByte, getBytes, getChar, getDate, getDouble, getFloat, getInt, getLong, getReader, getShort, getStream, getString, getTime, getTimestamppublic GenericAccessor(ValueVector v)
public Class<?> getObjectClass()
SqlAccessor
(Is for ResultSetMetaData#getColumnClassName(...).)
public boolean isNull(int index)
SqlAccessorisNull in interface SqlAccessorisNull in class AbstractSqlAccessorpublic Object getObject(int index) throws InvalidAccessException
SqlAccessorclass description.)InvalidAccessExceptionpublic TypeProtos.MajorType getType()
SqlAccessor
(Some implementations may support more than just the minimum
getType(...) method implied by the type.
Copyright © 2021 The Apache Software Foundation. All rights reserved.