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 Details

    • 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 Details

    • SHARDING_STRATEGY_UNSPECIFIED_VALUE

      public static final int SHARDING_STRATEGY_UNSPECIFIED_VALUE
       Same as LIQUID.
       
      SHARDING_STRATEGY_UNSPECIFIED = 0;
      See Also:
    • 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:
    • 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:
  • Method Details

    • values

      public static Storage.ShardingStrategy[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null