Interface FieldWriter
-
- All Known Implementing Classes:
BigIntFieldWriter,BitFieldWriter,DateDayFieldWriter,DateMilliFieldWriter,DecimalFieldWriter,Float4FieldWriter,Float8FieldWriter,IntFieldWriter,SmallIntFieldWriter,TinyIntFieldWriter,VarBinaryFieldWriter,VarCharFieldWriter
public interface FieldWriterUsed to write a value and apply constraints for a particular column to the row currently being processed. This interface enables the use of a pseudo-code generator for RowWriter which reduces object and branching overhead when translating from your source system to ApacheFor example of how to use this, see ExampleRecordHandler in athena-federation-sdk.
- See Also:
FieldWriter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanwrite(Object context, int rowNum)Attempts to write a value to the Apache Arrow vector provided at construction time.
-
-
-
Method Detail
-
write
boolean write(Object context, int rowNum) throws Exception
Attempts to write a value to the Apache Arrow vector provided at construction time.- Parameters:
context- The context (specific to the extractor) from which to extract a value.rowNum- The row to write the value into.- Returns:
- True if the value passed constraints and should be considered valid, False otherwise.
- Throws:
Exception- internal exception
-
-