public class TimePartitionRange extends Object implements Iterable<TimePartition>, Named
Constructor and Description |
---|
TimePartitionRange(TimePartition begin,
TimePartition end) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(TimePartition partition) |
String |
getName() |
boolean |
isEmpty() |
boolean |
isValidAndNonEmpty() |
Iterator<TimePartition> |
iterator()
returns TimePartition objects starting from begin and upto(excluding) end.
|
static TimePartitionRange |
parseFrom(UpdatePeriod updatePeriod,
String from,
String to) |
long |
size() |
String |
toString() |
public TimePartitionRange(TimePartition begin, TimePartition end) throws LensException
LensException
public Iterator<TimePartition> iterator()
iterator
in interface Iterable<TimePartition>
public boolean contains(TimePartition partition)
partition
- public boolean isEmpty()
public static TimePartitionRange parseFrom(UpdatePeriod updatePeriod, String from, String to) throws LensException
LensException
public long size()
public boolean isValidAndNonEmpty()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.