Class JdbcFieldInfoExtra
- java.lang.Object
-
- org.apache.arrow.adbc.driver.jdbc.adapter.JdbcFieldInfoExtra
-
public final class JdbcFieldInfoExtra extends Object
Information about a column from JDBC for inferring column type.Extension of the upstream
JdbcFieldInfowhich lacks necessary fields for certain databases.
-
-
Constructor Summary
Constructors Constructor Description JdbcFieldInfoExtra(ResultSet rs)Create a JdbcFieldInfoExtra from the result of aDatabaseMetaData.getColumns(String, String, String, String).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCharOctetLength()intgetColumn()The column index for query column.@Nullable StringgetColumnDef()org.apache.arrow.adapter.jdbc.JdbcFieldInfogetFieldInfo()Get the base Arrow version.intgetJdbcType()TheTypestype.intgetNumPrecRadix()intgetOrdinalPosition()intgetPrecision()The numeric precision, forTypes.NUMERICandTypes.DECIMALtypes.@Nullable StringgetRemarks()intgetScale()The numeric scale, forTypes.NUMERICandTypes.DECIMALtypes.intgetSqlDataType()intgetSqlDatetimeSub()StringgetTypeName()intisNullable()The nullability.StringtoString()
-
-
-
Constructor Detail
-
JdbcFieldInfoExtra
public JdbcFieldInfoExtra(ResultSet rs) throws SQLException
Create a JdbcFieldInfoExtra from the result of aDatabaseMetaData.getColumns(String, String, String, String).- Parameters:
rs- The result set.- Throws:
SQLException
-
-
Method Detail
-
getFieldInfo
public org.apache.arrow.adapter.jdbc.JdbcFieldInfo getFieldInfo()
Get the base Arrow version.
-
getJdbcType
public int getJdbcType()
TheTypestype.
-
getTypeName
public String getTypeName()
-
getNumPrecRadix
public int getNumPrecRadix()
-
getRemarks
public @Nullable String getRemarks()
-
getColumnDef
public @Nullable String 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.
-
-