Skip to content

[Feature Request]: Top.Smallest / Largest and the ...PerKey helper combiners should support a comparison key param #25888

@tvalentyn

Description

@tvalentyn

What would you like to happen?

See Top.Of implementation that supports the key :

key: (optional) a mapping of elements to a comparable key, similar to
the key argument of Python's sorting methods.

Let's allow the same for

Top.Smallest / Largest and the ...PerKey combiners, see:

def Largest(pcoll, n, has_defaults=True):

Issue Priority

Priority: 3 (nice-to-have improvement)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions