public class TimePartitionRange extends Object implements Iterable<TimePartition>, Named
Constructor and Description |
---|
TimePartitionRange(TimePartition begin,
TimePartition end) |
Modifier and Type | Method and Description |
---|---|
static TimePartitionRange |
between(Date from,
Date to,
UpdatePeriod period) |
boolean |
contains(TimePartition partition) |
boolean |
equals(Object o) |
TimePartition |
getBegin() |
TimePartition |
getEnd() |
String |
getName() |
int |
hashCode() |
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) |
void |
setBegin(TimePartition begin) |
void |
setEnd(TimePartition end) |
long |
size() |
String |
toString() |
forEach, spliterator
public TimePartitionRange(TimePartition begin, TimePartition end) throws LensException
LensException
public static TimePartitionRange between(Date from, Date to, UpdatePeriod period) 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()
@Generated(value="lombok") public TimePartition getBegin()
@Generated(value="lombok") public TimePartition getEnd()
@Generated(value="lombok") public void setBegin(TimePartition begin)
@Generated(value="lombok") public void setEnd(TimePartition end)
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.