|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cube.metadata.TimePartition
public class TimePartition
stores a partition's update period, date and string representation. Provides some utility methods around it
Method Summary | |
---|---|
boolean |
after(TimePartition when)
|
boolean |
before(TimePartition when)
|
int |
compareTo(TimePartition o)
|
String |
getName()
|
TimePartition |
next()
|
static TimePartition |
of(UpdatePeriod updatePeriod,
Date date)
|
static TimePartition |
of(UpdatePeriod updatePeriod,
String dateString)
|
TimePartition |
partitionAtDiff(int increment)
|
TimePartition |
previous()
|
TimePartitionRange |
rangeFrom(TimePartition from)
|
TimePartitionRange |
rangeUpto(TimePartition to)
|
TimePartitionRange |
singletonRange()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static TimePartition of(UpdatePeriod updatePeriod, Date date) throws LensException
LensException
public static TimePartition of(UpdatePeriod updatePeriod, String dateString) throws LensException
LensException
public String toString()
toString
in class Object
public int compareTo(TimePartition o)
compareTo
in interface Comparable<TimePartition>
public TimePartition partitionAtDiff(int increment)
public TimePartition previous()
public TimePartition next()
public boolean before(TimePartition when)
public boolean after(TimePartition when)
public TimePartitionRange rangeUpto(TimePartition to) throws LensException
LensException
public TimePartitionRange rangeFrom(TimePartition from) throws LensException
LensException
public TimePartitionRange singletonRange() throws LensException
LensException
public String getName()
getName
in interface Named
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |