public final class StorageUtil extends Object
Modifier and Type | Method and Description |
---|---|
static TimeRange |
getFallbackRange(TimeRange range,
String factName,
CubeQueryContext cubeql)
Get fallback range
|
static String |
getNotLatestClauseForDimensions(String alias,
Set<String> timedDimensions,
String partCol) |
static String |
getWhereClause(CandidateDim dim,
String alias) |
static String |
getWhereClause(String clause,
String alias) |
static String |
getWherePartClause(String timeDimName,
String tableName,
Collection<String> parts) |
static String |
getWherePartClauseWithIn(String timeDimName,
String tableName,
List<String> parts) |
static boolean |
processCubeColForDataCompleteness(CubeQueryContext cubeql,
String cubeCol,
String alias,
Set<String> measureTag,
Map<String,String> tagToMeasureOrExprMap)
Checks how much data is completed for a column.
|
static void |
processExpressionsForCompleteness(CubeQueryContext cubeql,
Set<String> measureTag,
Map<String,String> tagToMeasureOrExprMap)
This method extracts all the columns used in expressions (used in query) and evaluates each
column separately for completeness
|
public static String getWherePartClause(String timeDimName, String tableName, Collection<String> parts)
public static String getWherePartClauseWithIn(String timeDimName, String tableName, List<String> parts)
public static String getNotLatestClauseForDimensions(String alias, Set<String> timedDimensions, String partCol)
public static String getWhereClause(CandidateDim dim, String alias)
public static TimeRange getFallbackRange(TimeRange range, String factName, CubeQueryContext cubeql) throws LensException
range
- factName
- cubeql
- LensException
public static boolean processCubeColForDataCompleteness(CubeQueryContext cubeql, String cubeCol, String alias, Set<String> measureTag, Map<String,String> tagToMeasureOrExprMap)
DataCompletenessChecker
cubeql
- cubeCol
- alias
- measureTag
- tagToMeasureOrExprMap
- public static void processExpressionsForCompleteness(CubeQueryContext cubeql, Set<String> measureTag, Map<String,String> tagToMeasureOrExprMap)
cubeql
- measureTag
- tagToMeasureOrExprMap
- Copyright © 2014–2018 Apache Software Foundation. All rights reserved.