Class SimpleBlockWriter
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.data.SimpleBlockWriter
-
- All Implemented Interfaces:
BlockWriter
public class SimpleBlockWriter extends Object implements BlockWriter
Used to write a single Block using the BlockWriter programming model.- See Also:
BlockWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.amazonaws.athena.connector.lambda.data.BlockWriter
BlockWriter.RowWriter
-
-
Constructor Summary
Constructors Constructor Description SimpleBlockWriter(Block block)Basic constructor using a pre-allocated Block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintEvaluatorgetConstraintEvaluator()Provides access to the ConstraintEvaluator that will be applied to the generated Blocks.voidwriteRows(BlockWriter.RowWriter rowWriter)Used to write rows into the Block that is managed by this BlockWriter.
-
-
-
Constructor Detail
-
SimpleBlockWriter
public SimpleBlockWriter(Block block)
Basic constructor using a pre-allocated Block.- Parameters:
block- The Block to write into.
-
-
Method Detail
-
writeRows
public void writeRows(BlockWriter.RowWriter rowWriter)
Used to write rows into the Block that is managed by this BlockWriter.- Specified by:
writeRowsin interfaceBlockWriter- Parameters:
rowWriter- The RowWriter that the BlockWriter should use to write rows into the Block(s) it is managing.
-
getConstraintEvaluator
public ConstraintEvaluator getConstraintEvaluator()
Provides access to the ConstraintEvaluator that will be applied to the generated Blocks.- Specified by:
getConstraintEvaluatorin interfaceBlockWriter
-
-