Package io.revealbi.core.data
Class RVSchemaColumn
java.lang.Object
io.revealbi.core.data.RVSchemaColumn
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 Summary
ConstructorsConstructorDescriptionRVSchemaColumn(String name, String label, RVSchemaColumnType type) Creates a new schema column with the desired field name, optional label and data type. -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Returns the display label for the column shown in Reveal.getName()Returns the desired field name.getType()Returns the desired data type.Sets the display label for the column shown in Reveal.Sets the desired field name.setType(RVSchemaColumnType value) Sets the desired data type.
-
Constructor Details
-
RVSchemaColumn
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- TheRVSchemaColumnTypecontaining the desired data type.
-
-
Method Details
-
setName
Sets the desired field name.- Parameters:
value- The string containing the desired field name.- Returns:
- The value that was set.
-
getName
Returns the desired field name.- Returns:
- Returns the desired field name.
-
setLabel
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
Returns the display label for the column shown in Reveal. This member is available only in Java.- Returns:
- The display label, or
nullif not set.
-
setType
Sets the desired data type.- Parameters:
value- TheRVSchemaColumnTypevalue representing the desired data type.- Returns:
- The
RVSchemaColumnTypevalue that was set.
-
getType
Returns the desired data type.- Returns:
- Returns the desired data type.
-