Class BufferedExternalSorter.Options

java.lang.Object
org.apache.beam.sdk.extensions.sorter.BufferedExternalSorter.Options
All Implemented Interfaces:
Serializable
Enclosing class:
BufferedExternalSorter

public static class BufferedExternalSorter.Options extends Object implements Serializable
Contains configuration for the sorter.
See Also:
  • Method Details

    • withTempLocation

      public BufferedExternalSorter.Options withTempLocation(String tempLocation)
      Sets the path to a temporary location where the sorter writes intermediate files.
    • getTempLocation

      public String getTempLocation()
      Returns the configured temporary location.
    • withMemoryMB

      public BufferedExternalSorter.Options withMemoryMB(int memoryMB)
      Sets the size of the memory buffer in megabytes. This controls both the buffer for initial in memory sorting and the buffer used when external sorting. Must be greater than zero. Must be less than 2048 if sorter type is Hadoop.
    • getMemoryMB

      public int getMemoryMB()
      Returns the configured size of the memory buffer.
    • withExternalSorterType

      public BufferedExternalSorter.Options withExternalSorterType(ExternalSorter.Options.SorterType sorterType)
      Sets the external sorter type.
    • getExternalSorterType

      public ExternalSorter.Options.SorterType getExternalSorterType()
      Returns the external sorter type.