public class ChartUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HISTOGRAM_ADJUST_BUCKET_NUM |
static java.lang.String |
HISTOGRAM_GRANULARITY |
static java.lang.String |
MAX_VALUE |
static java.lang.String |
MIN_VALUE |
static java.lang.String |
NO_VALUE |
static java.lang.String |
ORIGINAL_MAX |
static java.lang.String |
ORIGINAL_MIN |
static java.lang.String |
RECORD_COUNT |
static java.lang.String |
TOTAL |
Constructor and Description |
---|
ChartUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fetchSourceKey(SemanticView sView,
java.lang.String xMetricKey,
com.endeca.mdex.eql_parser.types.Query query)
Return a source key for statement reference
If the xMetricKey is single-assigned, then return the view key.
|
static java.util.Map<java.lang.String,java.lang.String> |
getAdjustRangeAndPrecision(javax.portlet.PortletRequest request,
java.lang.String viewkey,
java.lang.String attributeKey,
int bucketNum)
Return adjusted bin number for dynamic binning for histogram chart.
|
static com.endeca.mdex.eql_parser.types.Statement |
getStatementFlattenedXMetric(java.lang.String xMetricKey,
SemanticView sView)
Returns EQL Statement for selecting a flattened multi-assign attribute:
RETURN FLATTENED AS SELECT xMetric AS xMetric FROM viewKey GROUP By Members xMetricKey;
|
static com.endeca.mdex.eql_parser.types.Statement |
getStatementMaxMin(java.lang.String xMetricKey,
SemanticView sView,
java.lang.String sourceKey)
Returns EQL Statement with following query:
RETURN MAXMIN AS SELECT MAX(xMetric) AS MAX_xMetric, MIN(xMetric) AS MIN_xMetric FROM viewKey GROUP;
|
public static final java.lang.String ORIGINAL_MIN
public static final java.lang.String ORIGINAL_MAX
public static final java.lang.String HISTOGRAM_GRANULARITY
public static final java.lang.String HISTOGRAM_ADJUST_BUCKET_NUM
public static final java.lang.String MAX_VALUE
public static final java.lang.String MIN_VALUE
public static final java.lang.String NO_VALUE
public static final java.lang.String TOTAL
public static final java.lang.String RECORD_COUNT
public static java.util.Map<java.lang.String,java.lang.String> getAdjustRangeAndPrecision(javax.portlet.PortletRequest request, java.lang.String viewkey, java.lang.String attributeKey, int bucketNum) throws java.io.IOException, javax.portlet.PortletException, java.text.ParseException, DataSourceException, ModelException, KeyNotFoundException
request
- viewkey
- attributeKey
- bucketNum
- -- this is the initial number of bins available (e.g., (pixels avaiable)/(minimal pixels per bin))java.io.IOException
javax.portlet.PortletException
java.text.ParseException
DataSourceException
ModelException
KeyNotFoundException
public static java.lang.String fetchSourceKey(SemanticView sView, java.lang.String xMetricKey, com.endeca.mdex.eql_parser.types.Query query)
sView
- xMetricKey
- query
- public static com.endeca.mdex.eql_parser.types.Statement getStatementMaxMin(java.lang.String xMetricKey, SemanticView sView, java.lang.String sourceKey)
xMetricKey
- sView
- sourceKey
- public static com.endeca.mdex.eql_parser.types.Statement getStatementFlattenedXMetric(java.lang.String xMetricKey, SemanticView sView)
xMetricKey
- sView
- Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.