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 enumgoogle.cloud.bigquery.storage.v1beta1.ShardingStrategy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BALANCEDAssigns data to each stream such that roughly the same number of rows can be read from each stream.LIQUIDAssigns data to each stream based on the client's read rate.SHARDING_STRATEGY_UNSPECIFIEDSame as LIQUID.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intBALANCED_VALUEAssigns data to each stream such that roughly the same number of rows can be read from each stream.static intLIQUID_VALUEAssigns data to each stream based on the client's read rate.static intSHARDING_STRATEGY_UNSPECIFIED_VALUESame as LIQUID.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Storage.ShardingStrategyforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Storage.ShardingStrategy>internalGetValueMap()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.ShardingStrategyvalueOf(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.
-
-
-
Enum Constant Detail
-
SHARDING_STRATEGY_UNSPECIFIED
public static final Storage.ShardingStrategy SHARDING_STRATEGY_UNSPECIFIED
Same as LIQUID.
SHARDING_STRATEGY_UNSPECIFIED = 0;
-
LIQUID
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;
-
BALANCED
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;
-
UNRECOGNIZED
public static final Storage.ShardingStrategy UNRECOGNIZED
-
-
Field Detail
-
SHARDING_STRATEGY_UNSPECIFIED_VALUE
public static final int SHARDING_STRATEGY_UNSPECIFIED_VALUE
Same as LIQUID.
SHARDING_STRATEGY_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
LIQUID_VALUE
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;- See Also:
- Constant Field Values
-
BALANCED_VALUE
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;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Storage.ShardingStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Storage.ShardingStrategy c : Storage.ShardingStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Storage.ShardingStrategy valueOf(String name)
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 public static Storage.ShardingStrategy valueOf(int value)
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
public static Storage.ShardingStrategy forNumber(int value)
- 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
-
-