Package io.deephaven.web.client.api
Class Column
java.lang.Object
io.deephaven.web.client.api.Column
Describes the structure of the column, and if desired can be used to get access to the data to be rendered in this
column.
-
Constructor Summary
ConstructorsConstructorDescriptionColumn(int jsIndex, int index, Integer styleColumnIndex, String type, String name, boolean isPartitionColumn, Integer formatStringColumnIndex, String description, boolean inputTableKeyColumn, boolean inputTableValueColumn, boolean isSortable, elemental2.core.JsArray<ColumnRestriction> columnRestrictions) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomColumncreateCustomColumn(String name, String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.booleanfilter()Creates a new value for use in filters based on this column.formatColor(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.formatDate(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.formatNumber(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.static CustomColumnformatRowColor(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) Format entire rows colors using the expression specified.jsinterop.base.Anyget(TableData.Row row) The value for this column in the given row.elemental2.core.JsArray<ColumnRestriction> Returns the column restrictions for input table columns, or an empty array if this is not an input table column or if no restrictions are defined.@JsNullable StringIf this column is part of a roll-up tree table, represents the type of the row data that can be found in this column for leaf nodes ifincludeConstituentsis enabled.@JsNullable StringgetFormat(TableData.Row row) intgetIndex()booleantrueif this column is a partition column.booleanintDeprecated.Do not use.getName()Label for this column.getType()Type of the row data that can be found in this column.inthashCode()booleanbooleanvoidsetConstituentType(String constituentType) sort()Creates a sort builder object, to be used when sorting by this column.toString()withFormatStringColumnIndex(int formatStringColumnIndex) withStyleColumnIndex(int styleColumnIndex)
-
Constructor Details
-
Column
public Column(int jsIndex, int index, Integer styleColumnIndex, String type, String name, boolean isPartitionColumn, Integer formatStringColumnIndex, String description, boolean inputTableKeyColumn, boolean inputTableValueColumn, boolean isSortable, elemental2.core.JsArray<ColumnRestriction> columnRestrictions)
-
-
Method Details
-
formatRowColor
@JsMethod(namespace="dh.Column") public static CustomColumn formatRowColor(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) Format entire rows colors using the expression specified. Returns aCustomColumnobject to apply to a table usingapplyCustomColumnswith the parameters specified.- Parameters:
expression-options-- Returns:
CustomColumn
-
createCustomColumn
@JsMethod(namespace="dh.Column") public static CustomColumn createCustomColumn(String name, String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.- Parameters:
name-expression-options-- Returns:
CustomColumn
-
get
The value for this column in the given row. Type will be consistent with the type of the Column.- Parameters:
row-- Returns:
- Any
-
getFormat
-
getJsIndex
Deprecated.Do not use. Internal index of the column in the table, to be used as a key on the Row.- Returns:
- int
-
getIndex
public int getIndex() -
getType
Type of the row data that can be found in this column.- Returns:
- String
-
getName
Label for this column.- Returns:
- String
-
getDescription
-
getRequiredColumns
-
getConstituentType
If this column is part of a roll-up tree table, represents the type of the row data that can be found in this column for leaf nodes ifincludeConstituentsis enabled. Otherwise, it isnull.- Returns:
- String
-
setConstituentType
-
getFormatStringColumnIndex
-
getStyleColumnIndex
-
getIsPartitionColumn
@JsProperty public boolean getIsPartitionColumn()trueif this column is a partition column. Partition columns are used for filtering uncoalesced tables - seeJsTable.isUncoalesced().- Returns:
trueif the column is a partition column.
-
isInputTableKeyColumn
public boolean isInputTableKeyColumn() -
isInputTableValueColumn
public boolean isInputTableValueColumn() -
sort
Creates a sort builder object, to be used when sorting by this column.- Returns:
Sort
-
getIsSortable
@JsProperty public boolean getIsSortable() -
getColumnRestrictions
Returns the column restrictions for input table columns, or an empty array if this is not an input table column or if no restrictions are defined. The restrictions are implementation-specific constraints that the server enforces on column values. The returned array is a copy and may be safely modified by the caller.- Returns:
- Array of column restrictions, empty if none are defined
-
filter
Creates a new value for use in filters based on this column. Used either as a parameter to another filter operation, or as a builder to create a filter operation.- Returns:
FilterValue
-
formatColor
@JsMethod public CustomColumn formatColor(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.- Parameters:
expression-- Returns:
CustomColumn
-
formatNumber
@JsMethod public CustomColumn formatNumber(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.- Parameters:
expression-- Returns:
CustomColumn
-
formatDate
@JsMethod public CustomColumn formatDate(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) ACustomColumnobject to apply usingapplyCustomColumnswith the expression specified.- Parameters:
expression-- Returns:
CustomColumn
-
toString
-
equals
-
hashCode
public int hashCode() -
withFormatStringColumnIndex
-
withStyleColumnIndex
-