public static class TemporalIndex.TemporalPartition extends java.lang.Object implements TextSerializable, java.lang.Comparable<TemporalIndex.TemporalPartition>
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
dirName
Name of the directory that contains data of this partition
|
long |
end
End time for this partition
|
long |
start
Start time for this partition
|
| Constructor and Description |
|---|
TemporalIndex.TemporalPartition() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TemporalIndex.TemporalPartition o) |
boolean |
contains(long time)
Returns true if and only if the given time is inside the range of this
partition.
|
void |
fromText(Text text)
Retrieve information from the given text.
|
java.lang.String |
toString() |
Text |
toText(Text text)
Store current object as string in the given text appending text already there.
|
public long start
public long end
public java.lang.String dirName
public Text toText(Text text)
TextSerializabletoText in interface TextSerializablepublic void fromText(Text text)
TextSerializablefromText in interface TextSerializablepublic int compareTo(TemporalIndex.TemporalPartition o)
compareTo in interface java.lang.Comparable<TemporalIndex.TemporalPartition>public boolean contains(long time)
time - public java.lang.String toString()
toString in class java.lang.Object