Enum 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 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;
    • 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 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