com.splout.db.common
Class PartitionEntry
java.lang.Object
com.splout.db.common.BaseBean
com.splout.db.common.PartitionEntry
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PartitionEntry>
public class PartitionEntry
- extends BaseBean
- implements java.io.Serializable, java.lang.Comparable<PartitionEntry>
An entry in a PartitionMap. It consists of a min value and a max value, as well as a shard id.
[min, max). Min included, max excluded.
- See Also:
PartitionMap,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PartitionEntry
public PartitionEntry()
toString
public java.lang.String toString()
- Overrides:
toString in class BaseBean
getMin
public java.lang.String getMin()
setMin
public void setMin(java.lang.String min)
getMax
public java.lang.String getMax()
setMax
public void setMax(java.lang.String max)
getShard
public java.lang.Integer getShard()
setShard
public void setShard(java.lang.Integer shard)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
compareTo
public int compareTo(PartitionEntry pEntry)
- Specified by:
compareTo in interface java.lang.Comparable<PartitionEntry>
Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.