Uses of Class
com.amazonaws.athena.connector.lambda.data.SchemaBuilder
-
-
Uses of SchemaBuilder in com.amazonaws.athena.connector.lambda.data
Methods in com.amazonaws.athena.connector.lambda.data that return SchemaBuilder Modifier and Type Method Description SchemaBuilder
SchemaBuilder. addBigIntField(String fieldName)
Adds a new BIGINT Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addBitField(String fieldName)
Adds a new BIT Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addChildField(String parent, String child, org.apache.arrow.vector.types.pojo.ArrowType type)
Adds a new Field as a child of the requested top-level parent field.SchemaBuilder
SchemaBuilder. addChildField(String parent, org.apache.arrow.vector.types.pojo.Field child)
Adds a new Field as a child of the requested top-level parent field.SchemaBuilder
SchemaBuilder. addDateDayField(String fieldName)
Adds a new DateDay Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addDateMilliField(String fieldName)
Adds a new DateMilli Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addDecimalField(String fieldName, int precision, int scale)
Adds a new DECIMAL Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addField(String fieldName, org.apache.arrow.vector.types.pojo.ArrowType type)
Adds a new Field with the provided details to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addField(String fieldName, org.apache.arrow.vector.types.pojo.ArrowType type, List<org.apache.arrow.vector.types.pojo.Field> children)
Adds a new Field with the provided details to the Schema as a top-level Field.SchemaBuilder
SchemaBuilder. addField(org.apache.arrow.vector.types.pojo.Field field)
SchemaBuilder
SchemaBuilder. addFloat4Field(String fieldName)
Adds a new FLOAT4 Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addFloat8Field(String fieldName)
Adds a new FLOAT8 Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addIntField(String fieldName)
Adds a new INT Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addListField(String fieldName, org.apache.arrow.vector.types.pojo.ArrowType type)
Adds a new LIST Field to the Schema as a top-level Field.SchemaBuilder
SchemaBuilder. addMetadata(String key, String value)
Adds the provided metadata to the Schema.SchemaBuilder
SchemaBuilder. addSmallIntField(String fieldName)
Adds a new SMALLINT Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addStringField(String fieldName)
Adds a new VARCHAR Field to the Schema as a top-level Field with no children.SchemaBuilder
SchemaBuilder. addStructField(String fieldName)
Adds a new STRUCT Field to the Schema as a top-level Field.SchemaBuilder
SchemaBuilder. addTinyIntField(String fieldName)
Adds a new TINYINT Field to the Schema as a top-level Field with no children.static SchemaBuilder
SchemaBuilder. newBuilder()
Creates a new SchemaBuilder. -
Uses of SchemaBuilder in com.amazonaws.athena.connector.lambda.handlers
Methods in com.amazonaws.athena.connector.lambda.handlers with parameters of type SchemaBuilder Modifier and Type Method Description void
MetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)
This method can be used to add additional fields to the schema of our partition response.protected static void
GlueMetadataHandler. populateSourceTableNameIfAvailable(software.amazon.awssdk.services.glue.model.Table table, SchemaBuilder schemaBuilder)
Glue has strict table naming rules and may not be able to match the exact table name from the source. -
Uses of SchemaBuilder in com.amazonaws.athena.connectors.aws.cmdb
Methods in com.amazonaws.athena.connectors.aws.cmdb with parameters of type SchemaBuilder Modifier and Type Method Description void
AwsCmdbMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)
Delegates to the TableProvider that is registered for the requested table. -
Uses of SchemaBuilder in com.amazonaws.athena.connectors.aws.cmdb.tables
Methods in com.amazonaws.athena.connectors.aws.cmdb.tables with parameters of type SchemaBuilder Modifier and Type Method Description default void
TableProvider. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)
Default implementation does not enhance the partition results schema -
Uses of SchemaBuilder in com.amazonaws.athena.connectors.cloudwatch
Methods in com.amazonaws.athena.connectors.cloudwatch with parameters of type SchemaBuilder Modifier and Type Method Description void
CloudwatchMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)
We add one additional field to the partition schema. -
Uses of SchemaBuilder in com.amazonaws.athena.connectors.dynamodb
Methods in com.amazonaws.athena.connectors.dynamodb with parameters of type SchemaBuilder Modifier and Type Method Description void
DynamoDBMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)
Generates a partition schema with metadata derived from available predicates. -
Uses of SchemaBuilder in com.amazonaws.athena.connectors.dynamodb.util
Methods in com.amazonaws.athena.connectors.dynamodb.util that return SchemaBuilder Modifier and Type Method Description static SchemaBuilder
DDBTableUtils. buildSchemaFromItems(List<Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue>> items)
A utility method that takes a list of items, and returns a schema builder -
Uses of SchemaBuilder in com.amazonaws.athena.connectors.redis
Methods in com.amazonaws.athena.connectors.redis with parameters of type SchemaBuilder Modifier and Type Method Description void
RedisMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)
-
Uses of SchemaBuilder in com.amazonaws.athena.connectors.vertica
Methods in com.amazonaws.athena.connectors.vertica with parameters of type SchemaBuilder Modifier and Type Method Description static void
VerticaSchemaUtils. convertToArrowType(SchemaBuilder tableSchemaBuilder, String colName, String colType)
void
VerticaMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)
Here we inject the additional column to hold the Prepared SQL Statement.
-