Package io.pravega.client.tables.impl
Class KeyValueTableSegments
- java.lang.Object
-
- io.pravega.client.control.impl.SegmentCollection
-
- io.pravega.client.tables.impl.KeyValueTableSegments
-
public class KeyValueTableSegments extends SegmentCollection
The Segments within a KeyValueTable.
-
-
Field Summary
-
Fields inherited from class io.pravega.client.control.impl.SegmentCollection
segments
-
-
Constructor Summary
Constructors Constructor Description KeyValueTableSegments(java.util.NavigableMap<java.lang.Double,SegmentWithRange> segments)
Creates a new instance of the KeyValueTableSegments class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
int
hashCode()
protected double
hashToRange(java.lang.String key)
-
Methods inherited from class io.pravega.client.control.impl.SegmentCollection
getSegmentForKey, getSegmentForKey, getSegments, toString
-
-
-
-
Constructor Detail
-
KeyValueTableSegments
public KeyValueTableSegments(java.util.NavigableMap<java.lang.Double,SegmentWithRange> segments)
Creates a new instance of the KeyValueTableSegments class.- Parameters:
segments
- Segments keyed by the largest key in their key range. i.e. If there are two segments split evenly, the first should have a value of 0.5 and the second 1.0.
-
-
Method Detail
-
hashToRange
protected double hashToRange(java.lang.String key)
- Specified by:
hashToRange
in classSegmentCollection
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classSegmentCollection
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqual
in classSegmentCollection
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSegmentCollection
-
-