Enum DataDistributionMode

  • All Implemented Interfaces:
    Serializable, Comparable<DataDistributionMode>

    public enum DataDistributionMode
    extends Enum<DataDistributionMode>
    The existing data distribution modes are the following:
    • Readable mode that is used to store the data in an understandable way for a human being, corresponding to DataDistributionMode.READABLE.
    • Optimized mode that is used when we don't need to be able to understand how it is stored, we only want to have the best possible performances, corresponding to DataDistributionMode.OPTIMIZED.
    • None mode that is used when we just want to store the node as it is without using any distribution algorithm. This is mostly interesting as helper to create a hierarchy of nodes in a reliable way when we already know that we have only few nodes to store, corresponding to DataDistributionMode.NONE.
    Version:
    $Id$
    Author:
    Nicolas Filotto
    • Method Detail

      • values

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

        public static DataDistributionMode 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