Class ArrowIPCWriterOptions.Builder

java.lang.Object
ai.rapids.cudf.ArrowIPCWriterOptions.Builder
Enclosing class:
ArrowIPCWriterOptions

public static class ArrowIPCWriterOptions.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withMaxChunkSize

      public ArrowIPCWriterOptions.Builder withMaxChunkSize(long size)
    • withCallback

    • withColumnNames

      public ArrowIPCWriterOptions.Builder withColumnNames(String... columnNames)
      Add the name(s) for nullable column(s). Please note the column names of the nested struct columns should be flattened in sequence. For examples,
         A table with an int column and a struct column:
                         ["int_col", "struct_col":{"field_1", "field_2"}]
         output:
                         ["int_col", "struct_col", "field_1", "field_2"]
      
         A table with an int column and a list of non-nested type column:
                         ["int_col", "list_col":[]]
         output:
                         ["int_col", "list_col"]
      
         A table with an int column and a list of struct column:
                         ["int_col", "list_struct_col":[{"field_1", "field_2"}]]
         output:
                         ["int_col", "list_struct_col", "field_1", "field_2"]
       
      Parameters:
      columnNames - The column names corresponding to the written table(s).
    • withNotNullableColumnNames

      public ArrowIPCWriterOptions.Builder withNotNullableColumnNames(String... columnNames)
      Add the name(s) for non-nullable column(s). Please note the column names of the nested struct columns should be flattened in sequence. For examples,
         A table with an int column and a struct column:
                         ["int_col", "struct_col":{"field_1", "field_2"}]
         output:
                         ["int_col", "struct_col", "field_1", "field_2"]
      
         A table with an int column and a list of non-nested type column:
                         ["int_col", "list_col":[]]
         output:
                         ["int_col", "list_col"]
      
         A table with an int column and a list of struct column:
                         ["int_col", "list_struct_col":[{"field_1", "field_2"}]]
         output:
                         ["int_col", "list_struct_col", "field_1", "field_2"]
       
      Parameters:
      columnNames - The column names corresponding to the written table(s).
    • build

      public ArrowIPCWriterOptions build()