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 SchemaBuilderSchemaBuilder. addBigIntField(String fieldName)Adds a new BIGINT Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addBitField(String fieldName)Adds a new BIT Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. 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.SchemaBuilderSchemaBuilder. 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.SchemaBuilderSchemaBuilder. addDateDayField(String fieldName)Adds a new DateDay Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addDateMilliField(String fieldName)Adds a new DateMilli Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addDecimalField(String fieldName, int precision, int scale)Adds a new DECIMAL Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. 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.SchemaBuilderSchemaBuilder. 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.SchemaBuilderSchemaBuilder. addField(org.apache.arrow.vector.types.pojo.Field field)SchemaBuilderSchemaBuilder. addFloat4Field(String fieldName)Adds a new FLOAT4 Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addFloat8Field(String fieldName)Adds a new FLOAT8 Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addIntField(String fieldName)Adds a new INT Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addListField(String fieldName, org.apache.arrow.vector.types.pojo.ArrowType type)Adds a new LIST Field to the Schema as a top-level Field.SchemaBuilderSchemaBuilder. addMetadata(String key, String value)Adds the provided metadata to the Schema.SchemaBuilderSchemaBuilder. addSmallIntField(String fieldName)Adds a new SMALLINT Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addStringField(String fieldName)Adds a new VARCHAR Field to the Schema as a top-level Field with no children.SchemaBuilderSchemaBuilder. addStructField(String fieldName)Adds a new STRUCT Field to the Schema as a top-level Field.SchemaBuilderSchemaBuilder. addTinyIntField(String fieldName)Adds a new TINYINT Field to the Schema as a top-level Field with no children.static SchemaBuilderSchemaBuilder. 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 voidMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)This method can be used to add additional fields to the schema of our partition response.protected static voidGlueMetadataHandler. 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 voidAwsCmdbMetadataHandler. 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 voidTableProvider. 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 voidCloudwatchMetadataHandler. 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 voidDynamoDBMetadataHandler. 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 SchemaBuilderDDBTableUtils. 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 voidRedisMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request) -
Uses of SchemaBuilder in com.amazonaws.athena.connectors.snowflake
Methods in com.amazonaws.athena.connectors.snowflake with parameters of type SchemaBuilder Modifier and Type Method Description voidSnowflakeMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)Here we inject the additional column to hold the Prepared SQL Statement. -
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 voidVerticaSchemaUtils. convertToArrowType(SchemaBuilder tableSchemaBuilder, String colName, String colType)voidVerticaMetadataHandler. enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request)Here we inject the additional column to hold the Prepared SQL Statement.
-