Class GeneratedRowWriter.RowWriterBuilder
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.data.writers.GeneratedRowWriter.RowWriterBuilder
-
- Enclosing class:
- GeneratedRowWriter
public static class GeneratedRowWriter.RowWriterBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratedRowWriter
build()
GeneratedRowWriter.RowWriterBuilder
withExtractor(String fieldName, Extractor extractor)
GeneratedRowWriter.RowWriterBuilder
withFieldWriterFactory(String fieldName, FieldWriterFactory factory)
Used to override the default FieldWriter for the given field.
-
-
-
Method Detail
-
withExtractor
public GeneratedRowWriter.RowWriterBuilder withExtractor(String fieldName, Extractor extractor)
-
withFieldWriterFactory
public GeneratedRowWriter.RowWriterBuilder withFieldWriterFactory(String fieldName, FieldWriterFactory factory)
Used to override the default FieldWriter for the given field. For example, you might use this if your source stores DateDay using java type Y but our default FieldWriter for DateDay only accept type Z even though Apache Arrow has a native setter for type Y. By proving your own FieldWriterFactory you can avoid the extra step of translating to an intermediate type.- Parameters:
fieldName
- The name of the field who's factory you'd like to override.factory
- The factory you'd like to use instead of the default.- Returns:
- This builder.
-
build
public GeneratedRowWriter build()
-
-