public class Column extends java.lang.Object implements java.io.Serializable, DeepCloneable
The Column
bean contains information necessary to retrieve a
column of data from the backend and display it properly. The main components of
a Column
are the expression
field which defines the
value to be returned for the Column
, the
formatToken
which defines how the value is displayed, and the
drillPath
field which defines how the data links to more
information (if any).
Results in a Column
can be grouped together using the
group
field. When at least one Column
is grouped,
then the data in any ungrouped Column
must be aggregated.
Column
s can be aggregated based on several functions, each
of which is represented as one of the COL_AGGREGATION_XXX
constants
in this class. If no aggregation function is set, COL_AGGREGATION_COUNT
will be used. The aggregation functions are only used for ungrouped columns in reports
that contain grouping.
DrillPath
,
ReportData
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
COL_AGGREGATION_AVG
A constant indicating that the column aggregation function is AVG (Average).
|
static int |
COL_AGGREGATION_AVG_EXCLUDE_NULL
Deprecated.
use COL_AGGREGATION_AVG
|
static int |
COL_AGGREGATION_CONCATENATE
A constant indicating that the column aggregation function is CONCATENATE.
|
static int |
COL_AGGREGATION_CONCATENATE_WO_REPEAT
A constant indicating that the column aggregation function is
CONCATENATE_WO_REPEAT.
|
static int |
COL_AGGREGATION_COUNT
A constant indicating that the column aggregation function is COUNT (Count).
|
static int |
COL_AGGREGATION_GEOMEAN
A constant indicating that the column aggregation function is GEOMEAN
(Geometric Mean).
|
static int |
COL_AGGREGATION_MAX
A constant indicating that the column aggregation function is MAX
(Maximum).
|
static int |
COL_AGGREGATION_MEDIAN
Deprecated.
no longer used
|
static int |
COL_AGGREGATION_MIN
A constant indicating that the column aggregation function is MIN
(Minimum).
|
static int |
COL_AGGREGATION_MODE
Deprecated.
no longer used
|
static int |
COL_AGGREGATION_PERCENT_FALSE
A constant indicating that the column aggregation function is PERCENT_FALSE
(The percent of all values which are false).
|
static int |
COL_AGGREGATION_PERCENT_TRUE
A constant indicating that the column aggregation function is PERCENT_TRUE
(The percent of all values which are true).
|
static int |
COL_AGGREGATION_STDDEV
A constant indicating that the column aggregation function is STDDEV
(Standard Deviation).
|
static int |
COL_AGGREGATION_SUM
A constant indicating that the column aggregation function is SUM (Sum).
|
static int |
COL_AGGREGATION_SUM_EXCLUDE_NULL
Deprecated.
use COL_AGGREGATION_SUM
|
static java.util.List<java.lang.Integer> |
COL_AGGREGATION_TYPES |
static int |
COL_AGGREGATION_VAR
A constant indicating that the column aggregation function is VAR
(Variance).
|
protected static Logger |
LOG |
Constructor and Description |
---|
Column() |
Column(java.lang.Integer localId,
java.lang.String name,
java.lang.String expression,
boolean show,
java.lang.String formatToken) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this object using deep-copy semantics.
|
boolean |
equals(java.lang.Object obj_)
Is this DrillPath equal to the given object?
|
java.lang.Integer |
getColumnAggregationFunction()
Gets the column aggregation function which will be applied to this
Column . |
DrillPath |
getDrillPath()
Gets the DrillPath bean which defines how the column data links to
further information (if any).
|
java.lang.String |
getDrillPathExpression()
Gets the expression which defines the value that the
DrillPath
uses to navigate to the proper destination. |
java.lang.String |
getExpression()
Get the expression which defines the value of this
Column . |
java.lang.String |
getFormatToken()
Gets the token which determines how the data returned for this
Column is formatted and displayed in the report results. |
boolean |
getGroup()
Gets whether or not the report is grouped by this
Column . |
java.lang.String |
getIcon()
Returns icon value.
|
java.lang.String |
getLastAggregateToken()
Gets the previously set Column Aggregation token.
|
java.lang.String |
getLastFormatToken()
Gets the previously set format token.
|
java.lang.Integer |
getLocalId()
Gets the
localId of this Column , which uniquely
identifies it in this report. |
java.lang.String |
getName()
Gets the display name of this
Column . |
boolean |
getShow()
Gets whether or not this
Column is displayed in the report
results. |
java.lang.String |
getStringId()
Gets the string ID of this
Column , which is simply the
String "c" concatenated with the localId . |
static java.lang.String |
getStringId(int colId) |
int |
hashCode() |
void |
setColumnAggregationFunction(java.lang.Integer columnAggregationFunction_)
Applies a column aggregation function to this
Column . |
void |
setDrillPath(DrillPath drillPath_)
Sets the DrillPath bean which defines how the column data links to
further information (if any).
|
void |
setExpression(java.lang.String expression_)
Sets the expression which defines the value of this
Column . |
void |
setFormatToken(java.lang.String formatToken_)
Sets the token which determines how the data returned for this
Column is formatted and displayed in the report results. |
void |
setGroup(boolean group_)
Sets whether or not the report is grouped by this
Column . |
void |
setIcon(java.lang.String icon)
Specifies the icon value.
|
void |
setLastAggregateToken(java.lang.String lastAggregateToken_)
Sets the previously set Column Aggregation token.
|
void |
setLastFormatToken(java.lang.String lastFormatToken_)
Sets the previously set format token.
|
void |
setLocalId(java.lang.Integer localId_)
Sets the
localId of this Column , which uniquely
identifies it in this report. |
void |
setName(java.lang.String name_)
Sets the display name of this
Column . |
void |
setShow(boolean show_)
Sets whether or not this
Column is displayed in the report
results. |
java.lang.String |
toString() |
protected static final Logger LOG
public static final int COL_AGGREGATION_SUM
public static final int COL_AGGREGATION_AVG
public static final int COL_AGGREGATION_COUNT
@Deprecated public static final int COL_AGGREGATION_SUM_EXCLUDE_NULL
@Deprecated public static final int COL_AGGREGATION_AVG_EXCLUDE_NULL
public static final int COL_AGGREGATION_GEOMEAN
public static final int COL_AGGREGATION_MAX
public static final int COL_AGGREGATION_MIN
@Deprecated public static final int COL_AGGREGATION_MEDIAN
@Deprecated public static final int COL_AGGREGATION_MODE
public static final int COL_AGGREGATION_STDDEV
public static final int COL_AGGREGATION_VAR
public static final int COL_AGGREGATION_PERCENT_TRUE
public static final int COL_AGGREGATION_PERCENT_FALSE
public static final int COL_AGGREGATION_CONCATENATE
public static final int COL_AGGREGATION_CONCATENATE_WO_REPEAT
public static final java.util.List<java.lang.Integer> COL_AGGREGATION_TYPES
public Column()
public Column(java.lang.Integer localId, java.lang.String name, java.lang.String expression, boolean show, java.lang.String formatToken)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
DeepCloneable
clone
in interface DeepCloneable
clone
in class java.lang.Object
public java.lang.Integer getColumnAggregationFunction()
Column
.setColumnAggregationFunction(java.lang.Integer)
public void setColumnAggregationFunction(java.lang.Integer columnAggregationFunction_)
Column
.columnAggregationFunction_
- An Integer representing the column
aggregation function to be applied. This will be one of the
COL_AGGREGATION_XXX constants in this class.getColumnAggregationFunction()
public java.lang.String getExpression()
Column
.String
setExpression(java.lang.String)
public void setExpression(java.lang.String expression_)
Column
.expression_
- The expressiong String
to set.getExpression()
public boolean getGroup()
Column
. If
any Column
in the report is set to group by, then all other
Column
s that are not also grouped must have a Column
Aggregation set.boolean
value which is true
if the
report is grouped by this column.setGroup(boolean)
public void setGroup(boolean group_)
Column
.group_
- Set to true
if the report is to be grouped by
this column.getGroup()
,
getGroup()
public java.lang.String getName()
Column
.Column
.setName(java.lang.String)
public void setName(java.lang.String name_)
Column
.name_
- The name of this Column
to set.getName()
public boolean getShow()
Column
is displayed in the report
results.true
indicates that this
Column
is displayed in the report.setShow(boolean)
public void setShow(boolean show_)
Column
is displayed in the report
results.show_
- A value of true
indicates that this
Column
should be displayed in the report.getShow()
public java.lang.String getStringId()
Column
, which is simply the
String
"c" concatenated with the localId
.Column
.public static java.lang.String getStringId(int colId)
public java.lang.Integer getLocalId()
localId
of this Column
, which uniquely
identifies it in this report.localId
of this Column
.setLocalId(java.lang.Integer)
public void setLocalId(java.lang.Integer localId_)
localId
of this Column
, which uniquely
identifies it in this report.localId_
- The localId
of this Column
to
set.getLocalId()
public java.lang.String getFormatToken()
Column
is formatted and displayed in the report results. The
value returned is a token name, which corresponds to a Java class. This
mapping is handled by the TokenDisplay
component.Column
.setFormatToken(java.lang.String)
public void setFormatToken(java.lang.String formatToken_)
Column
is formatted and displayed in the report results.formatToken_
- The format token to set for this Column
.getFormatToken()
,
getFormatToken()
public DrillPath getDrillPath()
DrillPath
bean defining the link to further
information.DrillPath
,
setDrillPath(com.appiancorp.suiteapi.process.analytics2.DrillPath)
public void setDrillPath(DrillPath drillPath_)
drillPath_
- The DrillPath
bean which will define the
link to further information.DrillPath
,
getDrillPath()
public java.lang.String getDrillPathExpression()
DrillPath
uses to navigate to the proper destination. For example, if drilling to
Task Details the expression will define the task ID. This value is
retrieved from the DrillPath
object itself.DrillPath
expression.public java.lang.String getLastFormatToken()
Column
is given
a Column Aggregation the format token is automatically changed to support
the new return type. If the Column Aggregation is removed, then the
previous format token is used. This field is ignored by the back-end and
will not affect API calls.setLastFormatToken(java.lang.String)
public void setLastFormatToken(java.lang.String lastFormatToken_)
lastFormatToken_
- The previous format token to set.getLastFormatToken()
,
getLastFormatToken()
public java.lang.String getLastAggregateToken()
Column
is unaggregated, the format token is automatically
changed back to _lastFormatToken. However, the aggregation is enabled
again, then the previous aggregation token will be used. This field is
ignored by the back-end and will not affect API calls.setLastAggregateToken(java.lang.String)
public void setLastAggregateToken(java.lang.String lastAggregateToken_)
lastAggregateToken_
- The last Column Aggregation token to set.getLastAggregateToken()
public java.lang.String getIcon()
setIcon(String)
public void setIcon(java.lang.String icon)
icon
- the icon valuegetIcon()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.