Package | Description |
---|---|
org.apache.arrow.adapter.jdbc |
Modifier and Type | Method and Description |
---|---|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setAllocator(BufferAllocator allocator)
Sets the memory allocator to use when constructing the Arrow vectors from the ResultSet.
|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setArraySubTypeByColumnIndexMap(Map<Integer,JdbcFieldInfo> map)
Sets the mapping of column-index-to-
JdbcFieldInfo used for columns of type Types.ARRAY . |
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setArraySubTypeByColumnNameMap(Map<String,JdbcFieldInfo> map)
Sets the mapping of column-name-to-
JdbcFieldInfo used for columns of type Types.ARRAY . |
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setBigDecimalRoundingMode(RoundingMode bigDecimalRoundingMode)
Set the rounding mode used when the scale of the actual value does not match the declared scale.
|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setCalendar(Calendar calendar)
Sets the
Calendar to use when constructing timestamp fields in the
Arrow schema, and reading time-based fields from the JDBC ResultSet . |
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setColumnMetadataByColumnIndex(Map<Integer,Map<String,String>> columnMetadataByColumnIndex)
Set metadata from columnIndex->meta map on per field basis.
|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setExplicitTypesByColumnIndex(Map<Integer,JdbcFieldInfo> map)
Sets the mapping of column-index-to-
JdbcFieldInfo used for column types. |
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setExplicitTypesByColumnName(Map<String,JdbcFieldInfo> map)
Sets the mapping of column-name-to-
JdbcFieldInfo used for column types. |
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setIncludeMetadata(boolean includeMetadata)
Sets whether to include JDBC ResultSet field metadata in the Arrow Schema field metadata.
|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setJdbcConsumerGetter(JdbcToArrowConfig.JdbcConsumerFactory jdbcConsumerGetter)
Set the function used to get a JDBC consumer for a given type.
|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setJdbcToArrowTypeConverter(Function<JdbcFieldInfo,ArrowType> jdbcToArrowTypeConverter)
Set the function used to convert JDBC types to Arrow types.
|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setReuseVectorSchemaRoot(boolean reuseVectorSchemaRoot)
Set whether to use the same
VectorSchemaRoot instance on each iteration,
or to allocate a new one. |
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setSchemaMetadata(Map<String,String> schemaMetadata)
Set metadata for schema.
|
JdbcToArrowConfigBuilder |
JdbcToArrowConfigBuilder.setTargetBatchSize(int targetBatchSize)
Set the target number of rows to convert at once.
|
Copyright © 2024 The Apache Software Foundation. All rights reserved.