Enum Storage.ShardingStrategy (3.10.3)

public enum Storage.ShardingStrategy extends Enum<Storage.ShardingStrategy> implements ProtocolMessageEnum

Strategy for distributing data among multiple streams in a read session.

Protobuf enum google.cloud.bigquery.storage.v1beta1.ShardingStrategy

Implements

ProtocolMessageEnum

Static Fields

Name Description
BALANCED

Assigns data to each stream such that roughly the same number of rows can be read from each stream. Because the server-side unit for assigning data is collections of rows, the API does not guarantee that each stream will return the same number or rows. Additionally, the limits are enforced based on the number of pre-filtering rows, so some filters can lead to lopsided assignments.

BALANCED = 2;

BALANCED_VALUE

Assigns data to each stream such that roughly the same number of rows can be read from each stream. Because the server-side unit for assigning data is collections of rows, the API does not guarantee that each stream will return the same number or rows. Additionally, the limits are enforced based on the number of pre-filtering rows, so some filters can lead to lopsided assignments.

BALANCED = 2;

LIQUID

Assigns data to each stream based on the client's read rate. The faster the client reads from a stream, the more data is assigned to the stream. In this strategy, it's possible to read all data from a single stream even if there are other streams present.

LIQUID = 1;

LIQUID_VALUE

Assigns data to each stream based on the client's read rate. The faster the client reads from a stream, the more data is assigned to the stream. In this strategy, it's possible to read all data from a single stream even if there are other streams present.

LIQUID = 1;

SHARDING_STRATEGY_UNSPECIFIED

Same as LIQUID.

SHARDING_STRATEGY_UNSPECIFIED = 0;

SHARDING_STRATEGY_UNSPECIFIED_VALUE

Same as LIQUID.

SHARDING_STRATEGY_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()