Class ExecutionOptions

java.lang.Object
org.apache.arrow.datafusion.ExecutionOptions

public class ExecutionOptions extends Object
Configures options related to query execution
  • Method Details

    • parquet

      public ParquetOptions parquet()
      Get execution options related to reading Parquet data
      Returns:
      ParquetOptions instance for this config
    • batchSize

      public long batchSize()
      Get the batch size
      Returns:
      batch size
    • withBatchSize

      public ExecutionOptions withBatchSize(long batchSize)
      Set the size of batches to use when creating new data batches
      Parameters:
      batchSize - the batch size to set
      Returns:
      the modified ExecutionOptions instance
    • coalesceBatches

      public boolean coalesceBatches()
      Get whether batch coalescing is enabled
      Returns:
      whether batch coalescing is enabled
    • withCoalesceBatches

      public ExecutionOptions withCoalesceBatches(boolean enabled)
      Set whether to enable batch coalescing
      Parameters:
      enabled - whether to enable batch coalescing
      Returns:
      the modified ExecutionOptions instance
    • collectStatistics

      public boolean collectStatistics()
      Get whether statistics collection is enabled
      Returns:
      whether statistics collection is enabled
    • withCollectStatistics

      public ExecutionOptions withCollectStatistics(boolean enabled)
      Set whether to enable statistics collection
      Parameters:
      enabled - whether to enable statistics collection
      Returns:
      the modified ExecutionOptions instance
    • targetPartitions

      public long targetPartitions()
      Get the target number of partitions
      Returns:
      number of partitions
    • withTargetPartitions

      public ExecutionOptions withTargetPartitions(long targetPartitions)
      Set the target number of partitions
      Parameters:
      targetPartitions - the number of partitions to set
      Returns:
      the modified ExecutionOptions instance