Enum RelDistribution.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANY
      Not a valid distribution, but indicates that a consumer will accept any distribution.
      BROADCAST_DISTRIBUTED
      There are multiple instances of the stream, and all records appear in each instance.
      HASH_DISTRIBUTED
      There are multiple instances of the stream, and each instance contains records whose keys hash to a particular hash value.
      RANDOM_DISTRIBUTED
      There are multiple instances of the stream, and each instance contains randomly chosen records.
      RANGE_DISTRIBUTED
      There are multiple instances of the stream, and each instance contains records whose keys fall into a particular range.
      ROUND_ROBIN_DISTRIBUTED
      There are multiple instances of the stream, and records are assigned to instances in turn.
      SINGLETON
      There is only one instance of the stream.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String shortName  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Type​(java.lang.String shortName)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RelDistribution.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RelDistribution.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SINGLETON

        public static final RelDistribution.Type SINGLETON
        There is only one instance of the stream. It sees all records.
      • HASH_DISTRIBUTED

        public static final RelDistribution.Type HASH_DISTRIBUTED
        There are multiple instances of the stream, and each instance contains records whose keys hash to a particular hash value. Instances are disjoint; a given record appears on exactly one stream.
      • RANGE_DISTRIBUTED

        public static final RelDistribution.Type RANGE_DISTRIBUTED
        There are multiple instances of the stream, and each instance contains records whose keys fall into a particular range. Instances are disjoint; a given record appears on exactly one stream.
      • RANDOM_DISTRIBUTED

        public static final RelDistribution.Type RANDOM_DISTRIBUTED
        There are multiple instances of the stream, and each instance contains randomly chosen records. Instances are disjoint; a given record appears on exactly one stream.
      • ROUND_ROBIN_DISTRIBUTED

        public static final RelDistribution.Type ROUND_ROBIN_DISTRIBUTED
        There are multiple instances of the stream, and records are assigned to instances in turn. Instances are disjoint; a given record appears on exactly one stream.
      • BROADCAST_DISTRIBUTED

        public static final RelDistribution.Type BROADCAST_DISTRIBUTED
        There are multiple instances of the stream, and all records appear in each instance.
      • ANY

        public static final RelDistribution.Type ANY
        Not a valid distribution, but indicates that a consumer will accept any distribution.
    • Field Detail

      • shortName

        public final java.lang.String shortName
    • Constructor Detail

      • Type

        private Type​(java.lang.String shortName)
    • Method Detail

      • values

        public static RelDistribution.Type[] 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 (RelDistribution.Type c : RelDistribution.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RelDistribution.Type valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null