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 TypeMethodDescriptionint
int
The column index for query column.@Nullable String
Get the base Arrow version.int
TheTypes
type.int
int
int
The numeric precision, forTypes.NUMERIC
andTypes.DECIMAL
types.@Nullable String
int
getScale()
The numeric scale, forTypes.NUMERIC
andTypes.DECIMAL
types.int
int
int
The 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()TheTypes
type. -
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.NUMERIC
andTypes.DECIMAL
types. -
getScale
public int getScale()The numeric scale, forTypes.NUMERIC
andTypes.DECIMAL
types. -
getColumn
public int getColumn()The column index for query column. -
toString
-