Enum Storage.ShardingStrategy
java.lang.Object
java.lang.Enum<Storage.ShardingStrategy>
com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Storage.ShardingStrategy>
- Enclosing class:
- Storage
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 Summary
Enum ConstantsEnum ConstantDescriptionAssigns data to each stream such that roughly the same number of rows can be read from each stream.Assigns data to each stream based on the client's read rate.Same as LIQUID. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAssigns data to each stream such that roughly the same number of rows can be read from each stream.static final intAssigns data to each stream based on the client's read rate.static final intSame as LIQUID. -
Method Summary
Modifier and TypeMethodDescriptionstatic Storage.ShardingStrategyforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Storage.ShardingStrategy>static Storage.ShardingStrategyvalueOf(int value) Deprecated.static Storage.ShardingStrategyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Storage.ShardingStrategyReturns 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.
-
Enum Constant Details
-
SHARDING_STRATEGY_UNSPECIFIED
Same as LIQUID.
SHARDING_STRATEGY_UNSPECIFIED = 0; -
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; -
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; -
UNRECOGNIZED
-
-
Field Details
-
SHARDING_STRATEGY_UNSPECIFIED_VALUE
public static final int SHARDING_STRATEGY_UNSPECIFIED_VALUESame as LIQUID.
SHARDING_STRATEGY_UNSPECIFIED = 0;- See Also:
-
LIQUID_VALUE
public static final int LIQUID_VALUEAssigns 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;- See Also:
-
BALANCED_VALUE
public static final int BALANCED_VALUEAssigns 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;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Storage.ShardingStrategy> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Storage.ShardingStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-