Class GeneratedRowWriter.RowWriterBuilder

    • Method Detail

      • 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.