Class ExternalSorter.Options
java.lang.Object
org.apache.beam.sdk.extensions.sorter.ExternalSorter.Options
- All Implemented Interfaces:
Serializable
- Enclosing class:
ExternalSorter
ExternalSorter.Options contains configuration of the sorter.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the configured size of the memory buffer.Returns the sorter type.Returns the configured temporary location.setMemoryMB(int memoryMB) Sets the size of the memory buffer in megabytes.setSorterType(ExternalSorter.Options.SorterType sorterType) Sets the sorter type.setTempLocation(String tempLocation) Sets the path to a temporary location where the sorter writes intermediate files.
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
setTempLocation
Sets the path to a temporary location where the sorter writes intermediate files. -
getTempLocation
Returns the configured temporary location. -
setMemoryMB
Sets the size of the memory buffer in megabytes. Must be greater than zero and less than 2048. -
getMemoryMB
public int getMemoryMB()Returns the configured size of the memory buffer. -
setSorterType
Sets the sorter type. -
getSorterType
Returns the sorter type.
-