Interface VarCharExtractor

  • All Superinterfaces:
    Extractor

    public interface VarCharExtractor
    extends Extractor
    Used to extract a VarChar value from the context object. 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 Apache Arrow.

    For example of how to use this, see ExampleRecordHandler in athena-federation-sdk.

    • Method Detail

      • extract

        void extract​(Object context,
                     NullableVarCharHolder dst)
              throws Exception
        Used to extract a value from the context.
        Parameters:
        context - This is the object you provided to GeneratorRowWriter and is frequently the handle to the source system row/query from which you need to extract a value.
        dst - The 'Holder' that you should write your value to and optionally set the isSet flag to > 0 for non-null or 0 for null.
        Throws:
        Exception - internal exception.