|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cube.parse.TimeRange
public class TimeRange
Timerange data structure
Nested Class Summary | |
---|---|
class |
TimeRange.Iterable
Iterable so that foreach is supported |
static class |
TimeRange.TimeRangeBuilder
|
Method Summary | |
---|---|
org.apache.hadoop.hive.ql.parse.ASTNode |
getASTNode()
|
static TimeRange.TimeRangeBuilder |
getBuilder()
|
int |
getChildIndex()
|
Date |
getFromDate()
|
org.apache.hadoop.hive.ql.parse.ASTNode |
getParent()
|
String |
getPartitionColumn()
|
Date |
getToDate()
|
boolean |
isCoverableBy(TreeSet<UpdatePeriod> updatePeriods)
|
static TimeRange.Iterable |
iterable(Date fromDate,
Date toDate,
UpdatePeriod updatePeriod,
int increment)
iterable from fromDate(including) to toDate(excluding) incrementing increment units of updatePeriod |
static TimeRange.Iterable |
iterable(Date fromDate,
int numIters,
UpdatePeriod updatePeriod,
int increment)
iterable from fromDate(including) incrementing increment units of updatePeriod. |
TimeRange.Iterable |
iterable(UpdatePeriod updatePeriod,
int increment)
|
String |
toString()
|
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isCoverableBy(TreeSet<UpdatePeriod> updatePeriods)
public static TimeRange.TimeRangeBuilder getBuilder()
public String getPartitionColumn()
public Date getFromDate()
public Date getToDate()
public org.apache.hadoop.hive.ql.parse.ASTNode getASTNode()
public org.apache.hadoop.hive.ql.parse.ASTNode getParent()
public int getChildIndex()
public void validate() throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
public String toString()
toString
in class Object
public static TimeRange.Iterable iterable(Date fromDate, Date toDate, UpdatePeriod updatePeriod, int increment)
public static TimeRange.Iterable iterable(Date fromDate, int numIters, UpdatePeriod updatePeriod, int increment)
public TimeRange.Iterable iterable(UpdatePeriod updatePeriod, int increment)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |