Class JdbcFieldInfoExtra
java.lang.Object
org.apache.arrow.adbc.driver.jdbc.adapter.JdbcFieldInfoExtra
Information about a column from JDBC for inferring column type.
Extension of the upstream JdbcFieldInfo which lacks necessary fields for certain
databases.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a JdbcFieldInfoExtra from the result of aDatabaseMetaData.getColumns(String, String, String, String). -
Method Summary
Modifier and TypeMethodDescriptionintintThe column index for query column.@Nullable StringGet the base Arrow version.intTheTypestype.intintintThe numeric precision, forTypes.NUMERICandTypes.DECIMALtypes.@Nullable StringintgetScale()The numeric scale, forTypes.NUMERICandTypes.DECIMALtypes.intintintThe nullability.toString()
-
Constructor Details
-
JdbcFieldInfoExtra
Create a JdbcFieldInfoExtra from the result of aDatabaseMetaData.getColumns(String, String, String, String).- Parameters:
rs- The result set.- Throws:
SQLException
-
-
Method Details
-
getFieldInfo
Get the base Arrow version. -
getJdbcType
public int getJdbcType()TheTypestype. -
getTypeName
-
getNumPrecRadix
public int getNumPrecRadix() -
getRemarks
-
getColumnDef
-
getSqlDataType
public int getSqlDataType() -
getSqlDatetimeSub
public int getSqlDatetimeSub() -
getCharOctetLength
public int getCharOctetLength() -
getOrdinalPosition
public int getOrdinalPosition() -
isNullable
public int isNullable()The nullability. -
getPrecision
public int getPrecision()The numeric precision, forTypes.NUMERICandTypes.DECIMALtypes. -
getScale
public int getScale()The numeric scale, forTypes.NUMERICandTypes.DECIMALtypes. -
getColumn
public int getColumn()The column index for query column. -
toString
-