public static enum Storage.ShardingStrategy extends Enum<Storage.ShardingStrategy> implements com.google.protobuf.ProtocolMessageEnum
Strategy for distributing data among multiple streams in a read session.Protobuf enum
google.cloud.bigquery.storage.v1beta1.ShardingStrategy| Enum Constant and Description |
|---|
BALANCED
Assigns data to each stream such that roughly the same number of rows can
be read from each stream.
|
LIQUID
Assigns data to each stream based on the client's read rate.
|
SHARDING_STRATEGY_UNSPECIFIED
Same as LIQUID.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BALANCED_VALUE
Assigns data to each stream such that roughly the same number of rows can
be read from each stream.
|
static int |
LIQUID_VALUE
Assigns data to each stream based on the client's read rate.
|
static int |
SHARDING_STRATEGY_UNSPECIFIED_VALUE
Same as LIQUID.
|
| Modifier and Type | Method and Description |
|---|---|
static Storage.ShardingStrategy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Storage.ShardingStrategy> |
internalGetValueMap() |
static Storage.ShardingStrategy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Storage.ShardingStrategy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Storage.ShardingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Storage.ShardingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storage.ShardingStrategy SHARDING_STRATEGY_UNSPECIFIED
Same as LIQUID.
SHARDING_STRATEGY_UNSPECIFIED = 0;public static final Storage.ShardingStrategy 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;public static final Storage.ShardingStrategy 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;public static final Storage.ShardingStrategy UNRECOGNIZED
public static final int SHARDING_STRATEGY_UNSPECIFIED_VALUE
Same as LIQUID.
SHARDING_STRATEGY_UNSPECIFIED = 0;public static final int 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;public static final int 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;public static Storage.ShardingStrategy[] values()
for (Storage.ShardingStrategy c : Storage.ShardingStrategy.values()) System.out.println(c);
public static Storage.ShardingStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Storage.ShardingStrategy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Storage.ShardingStrategy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Storage.ShardingStrategy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Storage.ShardingStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.