org.apache.lens.cube.parse
Class AbridgedTimeRangeWriter

java.lang.Object
  extended by org.apache.lens.cube.parse.AbridgedTimeRangeWriter
All Implemented Interfaces:
TimeRangeWriter

public class AbridgedTimeRangeWriter
extends Object
implements TimeRangeWriter

Collapses the time range filters using IN operators


Constructor Summary
AbridgedTimeRangeWriter()
           
 
Method Summary
 String getTimeRangeWhereClause(CubeQueryContext cubeQueryContext, String tableName, Set<FactPartition> parts)
          Return IN clause for the partitions selected in the cube query
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbridgedTimeRangeWriter

public AbridgedTimeRangeWriter()
Method Detail

getTimeRangeWhereClause

public String getTimeRangeWhereClause(CubeQueryContext cubeQueryContext,
                                      String tableName,
                                      Set<FactPartition> parts)
                               throws org.apache.hadoop.hive.ql.parse.SemanticException
Return IN clause for the partitions selected in the cube query

Specified by:
getTimeRangeWhereClause in interface TimeRangeWriter
Parameters:
cubeQueryContext -
tableName -
parts -
Returns:
Throws:
org.apache.hadoop.hive.ql.parse.SemanticException


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