Class BufferedExternalSorter.Options
java.lang.Object
org.apache.beam.sdk.extensions.sorter.BufferedExternalSorter.Options
- All Implemented Interfaces:
Serializable
- Enclosing class:
BufferedExternalSorter
Contains configuration for the sorter.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the external sorter type.int
Returns the configured size of the memory buffer.Returns the configured temporary location.Sets the external sorter type.withMemoryMB
(int memoryMB) Sets the size of the memory buffer in megabytes.withTempLocation
(String tempLocation) Sets the path to a temporary location where the sorter writes intermediate files.
-
Method Details
-
withTempLocation
Sets the path to a temporary location where the sorter writes intermediate files. -
getTempLocation
Returns the configured temporary location. -
withMemoryMB
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
Returns the external sorter type.
-