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 |
---|---|
static TimeRange.TimeRangeBuilder |
getBuilder() |
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() |
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 org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
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)
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.