Class RollupViewBuilderImpl
java.lang.Object
io.deephaven.multiviewwidget.impl.RollupViewBuilderImpl
- All Implemented Interfaces:
RollupViewBuilder,ViewFactory
-
Constructor Summary
ConstructorsConstructorDescriptionRollupViewBuilderImpl(WidgetBuilder widgetBuilder, String name, Table table, Color tabColor) -
Method Summary
Modifier and TypeMethodDescription@NotNull RollupViewBuilderSet the default aggregation to apply for the specified type if the user does not choose a different one.@NotNull RollupViewBuilderagg(@NotNull String column, @NotNull Collection<AggType> aggs) Set the default aggregations to apply for a specific column.@NotNull RollupViewBuildercollapseSideView(boolean startCollapsed) Identifies if the side-panel for this view should start collapsed@NotNull RollupViewBuildercolumnOrder(@NotNull Collection<String> columnOrder) @NotNull RollupViewBuilderdefaultRollup(@NotNull RollupDefinition rollup) Set the default rollup that will be applied when the widget is opened.@NotNull RollupViewBuilderformatColumns(@NotNull Collection<String> formatCols) Defines a number of column-level formats which will be applied to the resultant table.@NotNull RollupViewBuilderformatColumnWhere(@NotNull String formatCol, @NotNull String formatCondition, @Nullable String formatColor) Defines a conditional columnar format.@NotNull WidgetBuilderGet the parent builder in its current state.@NotNull RollupViewBuildergroupingColumns(@NotNull Collection<String> groupingCols) Set the allowable set of grouping columns.@NotNull RollupViewBuilderlinkFilterColumn(@NotNull Collection<String> linkColumns) Identifies column(s) used to filter on the linked view.@NotNull RollupViewBuilderDefines a directional link to another view-tab.@NotNull RollupViewBuildersortAscending(@NotNull String col, @NotNull Collection<AggType> aggs) Identifies columns used for sort-ordering of the resultant table@NotNull RollupViewBuildersortDescending(@NotNull String col, @NotNull Collection<AggType> aggs) Identifies columns used for sort-ordering of the resultant tableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.multiviewwidget.builder.RollupViewBuilder
agg, collapseSideView, columnOrder, formatColumns, groupingColumns, linkFilterColumn, sortAscending, sortDescendingMethods inherited from interface io.deephaven.multiviewwidget.builder.ViewFactory
addAggView, addAggView, addGlobalFilter, addGlobalFilter, addLeafView, addLeafView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPlotView, addPlotView, addPlotView, addPlotView, addRollupView, addRollupView, addStaticFilter, build, collapseGlobalFilter, collapseGlobalFilter, globalFilterBucket, globalFilterBucket
-
Constructor Details
-
RollupViewBuilderImpl
-
-
Method Details
-
groupingColumns
@NotNull public @NotNull RollupViewBuilder groupingColumns(@NotNull @NotNull Collection<String> groupingCols) Description copied from interface:RollupViewBuilderSet the allowable set of grouping columns. These will be displayed to the user for customization.- Specified by:
groupingColumnsin interfaceRollupViewBuilder- Parameters:
groupingCols- the allowable grouping columns.- Returns:
- this
RollupViewBuilder
-
defaultRollup
Description copied from interface:RollupViewBuilderSet the default rollup that will be applied when the widget is opened.- Specified by:
defaultRollupin interfaceRollupViewBuilder- Parameters:
rollup- the rollup- Returns:
- this
RollupViewBuilder
-
agg
@NotNull public @NotNull RollupViewBuilder agg(@NotNull @NotNull Class<?> type, @NotNull @NotNull AggType agg) Description copied from interface:RollupViewBuilderSet the default aggregation to apply for the specified type if the user does not choose a different one.- Specified by:
aggin interfaceRollupViewBuilder- Parameters:
type- the typeagg- the default agg for this type- Returns:
- this
RollupViewBuilder
-
agg
@NotNull public @NotNull RollupViewBuilder agg(@NotNull @NotNull String column, @NotNull @NotNull Collection<AggType> aggs) Description copied from interface:RollupViewBuilderSet the default aggregations to apply for a specific column. This takes precedence overdefault type aggs.- Specified by:
aggin interfaceRollupViewBuilder- Parameters:
column- the column nameaggs- the default aggs for this column.- Returns:
- this
RollupViewBuilder
-
sortAscending
@NotNull public @NotNull RollupViewBuilder sortAscending(@NotNull @NotNull String col, @NotNull @NotNull Collection<AggType> aggs) Description copied from interface:RollupViewBuilderIdentifies columns used for sort-ordering of the resultant table- Specified by:
sortAscendingin interfaceRollupViewBuilder- Parameters:
col- column name which will identify the resultant sorting * @param aggs the aggregation to be sorted. No parameter indicates sort the grouping column if available.- Returns:
- this
RollupViewBuilder
-
sortDescending
@NotNull public @NotNull RollupViewBuilder sortDescending(@NotNull @NotNull String col, @NotNull @NotNull Collection<AggType> aggs) Description copied from interface:RollupViewBuilderIdentifies columns used for sort-ordering of the resultant table- Specified by:
sortDescendingin interfaceRollupViewBuilder- Parameters:
col- column name which will identify the resultant sortingaggs- the aggregation to be sorted. No parameter indicates sort the grouping column if available.- Returns:
- this
RollupViewBuilder
-
columnOrder
@NotNull public @NotNull RollupViewBuilder columnOrder(@NotNull @NotNull Collection<String> columnOrder) - Specified by:
columnOrderin interfaceRollupViewBuilder
-
formatColumns
@NotNull public @NotNull RollupViewBuilder formatColumns(@NotNull @NotNull Collection<String> formatCols) Description copied from interface:RollupViewBuilderDefines a number of column-level formats which will be applied to the resultant table. The formatting is identical to that defined byTable.formatColumns(String...)- Specified by:
formatColumnsin interfaceRollupViewBuilder- Parameters:
formatCols- Columnar formatting to be applied to the resultant table- Returns:
- this
RollupViewBuilder
-
formatColumnWhere
@NotNull public @NotNull RollupViewBuilder formatColumnWhere(@NotNull @NotNull String formatCol, @NotNull @NotNull String formatCondition, @Nullable @Nullable String formatColor) Description copied from interface:RollupViewBuilderDefines a conditional columnar format. SeeTable.formatColumnWhere(String, String, String)- Specified by:
formatColumnWherein interfaceRollupViewBuilder- Parameters:
formatCol- the columns which will have conditional formatting appliedformatCondition- the condition used to identify if the color should be appliedformatColor- the color to conditionally apply- Returns:
- this
RollupViewBuilder
-
collapseSideView
Description copied from interface:RollupViewBuilderIdentifies if the side-panel for this view should start collapsed- Specified by:
collapseSideViewin interfaceRollupViewBuilder- Returns:
- this
RollupViewBuilder
-
linkTo
Description copied from interface:RollupViewBuilderDefines a directional link to another view-tab. By default, current "Group-By" column(s) on the current view will be used as filters on the linked view- Specified by:
linkToin interfaceRollupViewBuilder- Parameters:
linkTarget- a view-tab to which this table is linked- Returns:
- this
RollupViewBuilder
-
linkFilterColumn
@NotNull public @NotNull RollupViewBuilder linkFilterColumn(@NotNull @NotNull Collection<String> linkColumns) Description copied from interface:RollupViewBuilderIdentifies column(s) used to filter on the linked view. When following a link from the specified column(s), then the default "Group-By" column(s) will not be used as filters on the linked view- Specified by:
linkFilterColumnin interfaceRollupViewBuilder- Parameters:
linkColumns- a column in the existing view, which will be used as a filter on the linked view- Returns:
- this
RollupViewBuilder
-
getBuilder
Description copied from interface:ViewFactoryGet the parent builder in its current state. May be used to store intermediary states of the builder in order to separate widget-creation into multiple distinct sections- Specified by:
getBuilderin interfaceViewFactory- Returns:
- the parent builder
-