|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.cube.metadata.timeline.PartitionTimeline
org.apache.lens.cube.metadata.timeline.RangesPartitionTimeline
public class RangesPartitionTimeline
One implementation of PartitionTimeline that stores ranges of partition presence, Basically a list of tuples each tuple represents a range of presence. range is of the form [from, end) i.e. including the first element and excluding the second element of the tuple
| Constructor Summary | |
|---|---|
RangesPartitionTimeline(String storageTableName,
UpdatePeriod updatePeriod,
String partCol)
|
|
| Method Summary | |
|---|---|
boolean |
add(TimePartition partition)
Add partition to timeline |
boolean |
drop(TimePartition toDrop)
drop partition. |
boolean |
exists(TimePartition toCheck)
Checks partition existance |
boolean |
initFromProperties(Map<String,String> properties)
deserialize member variables from given map |
boolean |
isConsistent()
whether timeline is in consistent state |
boolean |
isEmpty()
Whether No partitions have been registered |
Iterator<TimePartition> |
iterator()
|
TimePartition |
latest()
latest partition. |
Map<String,String> |
toProperties()
serialize member objects as map |
| Methods inherited from class org.apache.lens.cube.metadata.timeline.PartitionTimeline |
|---|
add, addForBatchAddition, commitBatchAdditions, getLatestDate, init, updateTableParams |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangesPartitionTimeline(String storageTableName,
UpdatePeriod updatePeriod,
String partCol)
| Method Detail |
|---|
public boolean add(TimePartition partition)
throws LensException
PartitionTimeline
add in class PartitionTimelineLensException
public boolean drop(TimePartition toDrop)
throws LensException
PartitionTimeline
drop in class PartitionTimelineLensExceptionpublic TimePartition latest()
PartitionTimeline
latest in class PartitionTimelinepublic Map<String,String> toProperties()
PartitionTimeline
toProperties in class PartitionTimeline
public boolean initFromProperties(Map<String,String> properties)
throws LensException
PartitionTimeline
initFromProperties in class PartitionTimelineLensExceptionPartitionTimeline.isConsistent()public boolean isEmpty()
PartitionTimeline
isEmpty in class PartitionTimelinepublic boolean isConsistent()
PartitionTimeline
isConsistent in class PartitionTimelinepublic boolean exists(TimePartition toCheck)
PartitionTimeline
exists in class PartitionTimelinepublic Iterator<TimePartition> iterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||