Class ExternalSorter
java.lang.Object
org.apache.beam.sdk.extensions.sorter.ExternalSorter
Does an external sort of the provided values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExternalSorter.Optionscontains configuration of the sorter. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a given record to the sorter.static ExternalSortercreate(ExternalSorter.Options options) Returns aSorterconfigured with the givenExternalSorter.Options.sort()Sorts the added elements and returns anIterableover the sorted elements.
-
Field Details
-
options
-
-
Method Details
-
create
Returns aSorterconfigured with the givenExternalSorter.Options. -
add
Adds a given record to the sorter.Records can only be added before calling
sort().- Throws:
IOException
-
sort
Sorts the added elements and returns anIterableover the sorted elements.Can be called at most once.
- Throws:
IOException
-