This project has retired. For details please refer to its Attic page.
CubeQueryConfUtil (Lens 2.0.1-beta-incubating API)

org.apache.lens.cube.parse
Class CubeQueryConfUtil

java.lang.Object
  extended by org.apache.lens.cube.parse.CubeQueryConfUtil

public class CubeQueryConfUtil
extends Object

Contains all configurations of cube query rewriting.


Field Summary
static String ADD_NON_EXISTING_PARTITIONS
           
static boolean DEFAULT_ADD_NON_EXISTING_PARTITIONS
           
static boolean DEFAULT_ATTR_FIELDS_ADD_DISTINCT
           
static boolean DEFAULT_DISABLE_AGGREGATE_RESOLVER
           
static boolean DEFAULT_DISABLE_AUTO_JOINS
           
static boolean DEFAULT_ENABLE_GROUP_BY_TO_SELECT
           
static boolean DEFAULT_ENABLE_SELECT_TO_GROUPBY
           
static boolean DEFAULT_LIGHTEST_FACT_FIRST
           
static int DEFAULT_LOOK_AHEAD_PT_PARTS
           
static boolean DEFAULT_MULTI_TABLE_SELECT
           
static boolean DEFAULT_REPLACE_TIMEDIM_WITH_PART_COL
           
static Class<? extends org.apache.lens.cube.parse.TimeRangeWriter> DEFAULT_TIME_RANGE_WRITER
           
static String DISABLE_AGGREGATE_RESOLVER
           
static String DISABLE_AUTO_JOINS
           
static String DRIVER_SUPPORTED_STORAGES
           
static String ENABLE_ATTRFIELDS_ADD_DISTINCT
           
static String ENABLE_GROUP_BY_TO_SELECT
           
static String ENABLE_MULTI_TABLE_SELECT
           
static String ENABLE_SELECT_TO_GROUPBY
           
static String FACT_TABLES_SFX
           
static String FAIL_QUERY_ON_PARTIAL_DATA
           
static String JOIN_TYPE_KEY
           
static String LIGHTEST_FACT_FIRST
           
static String LOOK_AHEAD_PT_PARTS_PFX
           
static String NON_EXISTING_PARTITIONS
           
static String PART_WHERE_CLAUSE_DATE_FORMAT
           
static String PROCESS_TIME_PART_COL
           
static String QUERY_MAX_INTERVAL
           
static String REPLACE_TIMEDIM_WITH_PART_COL
           
static String STORAGE_KEY_PFX
           
static String STORAGE_TABLES_SFX
           
static String TIME_RANGE_WRITER_CLASS
           
static String UPDATE_PERIODS_SFX
           
static String VALID_FACT_PFX
           
static String VALID_PFX
           
static String VALID_STORAGE_DIM_TABLES
           
 
Constructor Summary
CubeQueryConfUtil()
           
 
Method Summary
static String getLookAheadPTPartsKey(UpdatePeriod interval)
           
static List<String> getStringList(org.apache.hadoop.conf.Configuration conf, String keyName)
           
static String getValidFactTablesKey(String cubeName)
           
static String getValidStorageTablesKey(String factName)
           
static String getValidUpdatePeriodsKey(String fact, String storage)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STORAGE_TABLES_SFX

public static final String STORAGE_TABLES_SFX
See Also:
Constant Field Values

UPDATE_PERIODS_SFX

public static final String UPDATE_PERIODS_SFX
See Also:
Constant Field Values

FACT_TABLES_SFX

public static final String FACT_TABLES_SFX
See Also:
Constant Field Values

STORAGE_KEY_PFX

public static final String STORAGE_KEY_PFX
See Also:
Constant Field Values

VALID_PFX

public static final String VALID_PFX
See Also:
Constant Field Values

VALID_FACT_PFX

public static final String VALID_FACT_PFX
See Also:
Constant Field Values

VALID_STORAGE_DIM_TABLES

public static final String VALID_STORAGE_DIM_TABLES
See Also:
Constant Field Values

DRIVER_SUPPORTED_STORAGES

public static final String DRIVER_SUPPORTED_STORAGES
See Also:
Constant Field Values

FAIL_QUERY_ON_PARTIAL_DATA

public static final String FAIL_QUERY_ON_PARTIAL_DATA
See Also:
Constant Field Values

NON_EXISTING_PARTITIONS

public static final String NON_EXISTING_PARTITIONS
See Also:
Constant Field Values

ADD_NON_EXISTING_PARTITIONS

public static final String ADD_NON_EXISTING_PARTITIONS
See Also:
Constant Field Values

ENABLE_MULTI_TABLE_SELECT

public static final String ENABLE_MULTI_TABLE_SELECT
See Also:
Constant Field Values

QUERY_MAX_INTERVAL

public static final String QUERY_MAX_INTERVAL
See Also:
Constant Field Values

PROCESS_TIME_PART_COL

public static final String PROCESS_TIME_PART_COL
See Also:
Constant Field Values

LOOK_AHEAD_PT_PARTS_PFX

public static final String LOOK_AHEAD_PT_PARTS_PFX
See Also:
Constant Field Values

ENABLE_GROUP_BY_TO_SELECT

public static final String ENABLE_GROUP_BY_TO_SELECT
See Also:
Constant Field Values

ENABLE_SELECT_TO_GROUPBY

public static final String ENABLE_SELECT_TO_GROUPBY
See Also:
Constant Field Values

ENABLE_ATTRFIELDS_ADD_DISTINCT

public static final String ENABLE_ATTRFIELDS_ADD_DISTINCT
See Also:
Constant Field Values

DEFAULT_ATTR_FIELDS_ADD_DISTINCT

public static final boolean DEFAULT_ATTR_FIELDS_ADD_DISTINCT
See Also:
Constant Field Values

REPLACE_TIMEDIM_WITH_PART_COL

public static final String REPLACE_TIMEDIM_WITH_PART_COL
See Also:
Constant Field Values

DEFAULT_MULTI_TABLE_SELECT

public static final boolean DEFAULT_MULTI_TABLE_SELECT
See Also:
Constant Field Values

DEFAULT_LOOK_AHEAD_PT_PARTS

public static final int DEFAULT_LOOK_AHEAD_PT_PARTS
See Also:
Constant Field Values

DEFAULT_ENABLE_GROUP_BY_TO_SELECT

public static final boolean DEFAULT_ENABLE_GROUP_BY_TO_SELECT
See Also:
Constant Field Values

DEFAULT_ENABLE_SELECT_TO_GROUPBY

public static final boolean DEFAULT_ENABLE_SELECT_TO_GROUPBY
See Also:
Constant Field Values

DEFAULT_ADD_NON_EXISTING_PARTITIONS

public static final boolean DEFAULT_ADD_NON_EXISTING_PARTITIONS
See Also:
Constant Field Values

DEFAULT_REPLACE_TIMEDIM_WITH_PART_COL

public static final boolean DEFAULT_REPLACE_TIMEDIM_WITH_PART_COL
See Also:
Constant Field Values

DISABLE_AUTO_JOINS

public static final String DISABLE_AUTO_JOINS
See Also:
Constant Field Values

DEFAULT_DISABLE_AUTO_JOINS

public static final boolean DEFAULT_DISABLE_AUTO_JOINS
See Also:
Constant Field Values

JOIN_TYPE_KEY

public static final String JOIN_TYPE_KEY
See Also:
Constant Field Values

DISABLE_AGGREGATE_RESOLVER

public static final String DISABLE_AGGREGATE_RESOLVER
See Also:
Constant Field Values

DEFAULT_DISABLE_AGGREGATE_RESOLVER

public static final boolean DEFAULT_DISABLE_AGGREGATE_RESOLVER
See Also:
Constant Field Values

LIGHTEST_FACT_FIRST

public static final String LIGHTEST_FACT_FIRST
See Also:
Constant Field Values

DEFAULT_LIGHTEST_FACT_FIRST

public static final boolean DEFAULT_LIGHTEST_FACT_FIRST
See Also:
Constant Field Values

TIME_RANGE_WRITER_CLASS

public static final String TIME_RANGE_WRITER_CLASS
See Also:
Constant Field Values

DEFAULT_TIME_RANGE_WRITER

public static final Class<? extends org.apache.lens.cube.parse.TimeRangeWriter> DEFAULT_TIME_RANGE_WRITER

PART_WHERE_CLAUSE_DATE_FORMAT

public static final String PART_WHERE_CLAUSE_DATE_FORMAT
See Also:
Constant Field Values
Constructor Detail

CubeQueryConfUtil

public CubeQueryConfUtil()
Method Detail

getLookAheadPTPartsKey

public static String getLookAheadPTPartsKey(UpdatePeriod interval)

getValidFactTablesKey

public static String getValidFactTablesKey(String cubeName)

getValidStorageTablesKey

public static String getValidStorageTablesKey(String factName)

getValidUpdatePeriodsKey

public static String getValidUpdatePeriodsKey(String fact,
                                              String storage)

getStringList

public static List<String> getStringList(org.apache.hadoop.conf.Configuration conf,
                                         String keyName)


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.