gravitino.api.rel.expressions.distributions.strategy.Strategy

class gravitino.api.rel.expressions.distributions.strategy.Strategy(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

An enum that defines the distribution strategy.

The following strategies are supported:

  • NONE: No distribution strategy, depends on the underlying system’s allocation.

  • HASH: Uses the hash value of the expression to distribute data.

  • RANGE: Uses the specified range of the expression to distribute data.

  • EVEN: Distributes data evenly across partitions.

__init__(*args, **kwds)

Methods

get_by_name(name)

Attributes

NONE

HASH

RANGE

EVEN