Class StructField

java.lang.Object
smile.data.type.StructField
All Implemented Interfaces:
Serializable

public class StructField extends Object implements Serializable
A field in a Struct data type.
See Also:
  • Field Details

    • name

      public final String name
      Field name.
    • type

      public final DataType type
      Field data type.
    • measure

      public final Measure measure
      Optional levels of measurements.
  • Constructor Details

    • StructField

      public StructField(String name, DataType type)
      Constructor.
      Parameters:
      name - the field name.
      type - the field data type.
    • StructField

      public StructField(String name, DataType type, Measure measure)
      Constructor.
      Parameters:
      name - the field name.
      type - the field data type.
      measure - the level of measurement.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(Object o)
      Returns the string representation of the field object.
      Parameters:
      o - the object.
      Returns:
      the string representation.
    • valueOf

      public Object valueOf(String s)
      Returns the object value of string.
      Parameters:
      s - the string.
      Returns:
      the object value.
    • isNumeric

      public boolean isNumeric()
      Returns true if the field is of integer or floating but not nominal scale.
      Returns:
      true if the field is of integer or floating but not nominal scale.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object