public class TimeRange extends Object
Modifier and Type | Class and Description |
---|---|
class |
TimeRange.Iterable
Iterable so that foreach is supported
|
static class |
TimeRange.TimeRangeBuilder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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() |
int |
hashCode() |
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) |
void |
setAstNode(org.apache.hadoop.hive.ql.parse.ASTNode astNode) |
void |
setChildIndex(int childIndex) |
void |
setFromDate(Date fromDate) |
void |
setParent(org.apache.hadoop.hive.ql.parse.ASTNode parent) |
void |
setPartitionColumn(String partitionColumn) |
void |
setToDate(Date toDate) |
String |
toString() |
String |
toTimeDimWhereClause() |
String |
toTimeDimWhereClause(String prefix,
String column) |
void |
validate() |
public boolean isCoverableBy(TreeSet<UpdatePeriod> updatePeriods)
public static TimeRange.TimeRangeBuilder getBuilder()
public void validate() throws LensException
LensException
public String toTimeDimWhereClause()
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)
@Generated(value="lombok") public String getPartitionColumn()
@Generated(value="lombok") public Date getToDate()
@Generated(value="lombok") public Date getFromDate()
@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getAstNode()
@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getParent()
@Generated(value="lombok") public int getChildIndex()
@Generated(value="lombok") public void setPartitionColumn(String partitionColumn)
@Generated(value="lombok") public void setToDate(Date toDate)
@Generated(value="lombok") public void setFromDate(Date fromDate)
@Generated(value="lombok") public void setAstNode(org.apache.hadoop.hive.ql.parse.ASTNode astNode)
@Generated(value="lombok") public void setParent(org.apache.hadoop.hive.ql.parse.ASTNode parent)
@Generated(value="lombok") public void setChildIndex(int childIndex)
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.