Class PivotOptions
java.lang.Object
com.illumon.iris.console.utils.pivot.PivotOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LivePivotWidget.Options
@InternalUseOnly public class PivotOptions extends Object implements Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PivotOptions.OverrideFormatOption
-
Field Summary
Fields Modifier and Type Field Description boolean
aggregateAcross
boolean
aggregateDown
boolean
colorRowColumns
Map<String,Integer>
filterFetchSizes
boolean
fixedTotalColumn
boolean
heatMap
Color
heatMapMaxColor
Color
heatMapMinColor
int
sortColumns
LivePivotWidget.ColumnSortType
sortColumnsBy
int
sortRows
LivePivotWidget.RowSortType
sortRowsBy
String
sortRowsByName
LivePivotWidget.Aggregation
totalsAggregation
boolean
useColorFormat
boolean
useColumnNameTransform
-
Constructor Summary
Constructors Constructor Description PivotOptions()
-
Method Summary
Modifier and Type Method Description Format
getDecimalFormat(PivotRole role, String valueColumnName)
Get the decimal format for the specified value column and role.Format
getIntegerFormat(PivotRole role, String valueColumnName)
Get the integer format for the specified value column and role.protected Format
maybeGetLegacyFormat(PivotRole role, boolean isDecimal)
Get any legacy formats.void
overrideDecimalFormat(PivotRole role, String valueColumnName, Format format)
void
overrideIntegerFormat(PivotRole role, String valueColumnName, Format format)
void
setDecimalFormat(PivotRole role, String valueColumnName, String format)
void
setDefaultDecimalFormat(PivotRole role, String format)
void
setDefaultIntegerFormat(PivotRole role, String format)
void
setIntegerFormat(PivotRole role, String valueColumnName, String format)
-
Field Details
-
aggregateAcross
public boolean aggregateAcross -
aggregateDown
public boolean aggregateDown -
totalsAggregation
-
sortColumnsBy
-
sortColumns
public int sortColumns -
fixedTotalColumn
public boolean fixedTotalColumn -
sortRows
public int sortRows -
sortRowsBy
-
sortRowsByName
-
heatMap
public boolean heatMap -
useColorFormat
public boolean useColorFormat -
colorRowColumns
public boolean colorRowColumns -
useColumnNameTransform
public boolean useColumnNameTransform -
heatMapMinColor
-
heatMapMaxColor
-
filterFetchSizes
-
-
Constructor Details
-
PivotOptions
public PivotOptions()
-
-
Method Details
-
getIntegerFormat
Get the integer format for the specified value column and role. If none was specified via header menus or builder then the default one is used.- Parameters:
role
- the role to get the integer format forvalueColumnName
- the value column being rendered- Returns:
- the format
-
getDecimalFormat
Get the decimal format for the specified value column and role. If none was specified via header menus or builder then the default one is used.- Parameters:
role
- the role to get the integer format forvalueColumnName
- the value column being rendered- Returns:
- the format
-
setDefaultIntegerFormat
-
setDefaultDecimalFormat
-
setIntegerFormat
-
setDecimalFormat
-
overrideIntegerFormat
-
overrideDecimalFormat
-
maybeGetLegacyFormat
@Nullable protected Format maybeGetLegacyFormat(@NotNull PivotRole role, @NotNull boolean isDecimal)Get any legacy formats. This method should be deleted whenLivePivotWidget.Options
is deleted.- Parameters:
role
- the pivot roleisDecimal
- is it a decimal format?- Returns:
- the format, or null.
-