Class RVSchemaColumn

java.lang.Object
io.revealbi.core.data.RVSchemaColumn

public class RVSchemaColumn extends Object
Describes a column in an in-memory dataset, specifying its field name, display label, and data type. Used when implementing IRVInMemoryData.getSchema() to define the schema for in-memory data.
  • Constructor Details

    • RVSchemaColumn

      public RVSchemaColumn(String name, String label, RVSchemaColumnType type)
      Creates a new schema column with the desired field name, optional label and data type.
      Parameters:
      name - The string containing the desired field name.
      label - The label of the column that will be displayed in Reveal. If missing, the name of the column will be used.
      type - The RVSchemaColumnType containing the desired data type.
  • Method Details

    • setName

      public String setName(String value)
      Sets the desired field name.
      Parameters:
      value - The string containing the desired field name.
      Returns:
      The value that was set.
    • getName

      public String getName()
      Returns the desired field name.
      Returns:
      Returns the desired field name.
    • setLabel

      public String setLabel(String value)
      Sets the display label for the column shown in Reveal. This member is available only in Java.
      Parameters:
      value - The display label.
      Returns:
      The value that was set.
    • getLabel

      public String getLabel()
      Returns the display label for the column shown in Reveal. This member is available only in Java.
      Returns:
      The display label, or null if not set.
    • setType

      public RVSchemaColumnType setType(RVSchemaColumnType value)
      Sets the desired data type.
      Parameters:
      value - The RVSchemaColumnType value representing the desired data type.
      Returns:
      The RVSchemaColumnType value that was set.
    • getType

      public RVSchemaColumnType getType()
      Returns the desired data type.
      Returns:
      Returns the desired data type.