|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cube.metadata.timeline.PartitionTimeline org.apache.lens.cube.metadata.timeline.StoreAllPartitionTimeline
public class StoreAllPartitionTimeline
Implementation of PartitionTimeline that stores all partitions as a tree set. Created for instrumentation purposes. Helps in test cases. In real life scenarios, this would be almost always end up causing out of memory error.
Constructor Summary | |
---|---|
StoreAllPartitionTimeline(String storageTableName,
UpdatePeriod updatePeriod,
String partCol)
|
Method Summary | |
---|---|
boolean |
add(Collection<TimePartition> partitions)
Add multiple partitions to timeline |
boolean |
add(TimePartition partition)
Add partition to timeline |
boolean |
drop(TimePartition toDrop)
drop partition. |
boolean |
exists(TimePartition partition)
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 |
---|
addForBatchAddition, commitBatchAdditions, getLatestDate, init, updateTableParams |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreAllPartitionTimeline(String storageTableName, UpdatePeriod updatePeriod, String partCol)
Method Detail |
---|
public boolean add(@NonNull TimePartition partition) throws LensException
PartitionTimeline
add
in class PartitionTimeline
LensException
public boolean add(@NonNull Collection<TimePartition> partitions) throws LensException
PartitionTimeline
add
in class PartitionTimeline
LensException
public boolean drop(@NonNull TimePartition toDrop) throws LensException
PartitionTimeline
drop
in class PartitionTimeline
LensException
public TimePartition latest()
PartitionTimeline
latest
in class PartitionTimeline
public Map<String,String> toProperties()
PartitionTimeline
toProperties
in class PartitionTimeline
public boolean initFromProperties(Map<String,String> properties) throws LensException
PartitionTimeline
initFromProperties
in class PartitionTimeline
LensException
PartitionTimeline.isConsistent()
public boolean isEmpty()
PartitionTimeline
isEmpty
in class PartitionTimeline
public boolean isConsistent()
PartitionTimeline
isConsistent
in class PartitionTimeline
public boolean exists(TimePartition partition)
PartitionTimeline
exists
in class PartitionTimeline
public Iterator<TimePartition> iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |