Enum Class JsDataHandler

java.lang.Object
java.lang.Enum<JsDataHandler>
io.deephaven.web.client.api.parse.JsDataHandler
All Implemented Interfaces:
Serializable, Comparable<JsDataHandler>, java.lang.constant.Constable

public enum JsDataHandler extends Enum<JsDataHandler>
Given the expected type of a column, ensure consistency in the data array
  • Enum Constant Details

  • Method Details

    • values

      public static JsDataHandler[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JsDataHandler valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getHandler

      public static JsDataHandler getHandler(String deephavenType)
    • process

      public Object[] process(Object[] data, JsDataHandler.ParseContext context)
      Normalizes data of the given type to be wrapped in chunks and sent to the server, performing any required type coercion from JS types to what will be expected on the server. Primitive values must not be boxed,but instead should be passed as Double or wrapped as Any (at runtime, these will result in the same thing).
      Parameters:
      data - the data to parse and normalize
      context - added detail about how the user directs the values to be parsed
      Returns:
      the new array, or the existing one if no values were changed