public class Split extends Object
Modifier and Type | Field and Description |
---|---|
int |
fromIndex
Index of the first key in this split.
|
int |
ntuples
The #of keys in this split (toIndex - fromIndex).
|
IPartitionMetadata |
pmd
The index partition that spans the keys in this split.
|
int |
toIndex
Index of the first key NOT included in this split.
|
Constructor and Description |
---|
Split(IPartitionMetadata pmd)
Create a representation of a split point without specifying the from/to
tuple index.
|
Split(IPartitionMetadata pmd,
int fromIndex,
int toIndex)
Create a representation of a split point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
equals(Split o) |
int |
hashCode()
Hash code is based on the
IPartitionMetadata hash code if given
(if is always present for scale-out client requests) and otherwise
fromIndex (for example, when parallelizing operations within a
single index per BLGZ-1537). |
String |
toString()
Human friendly representation.
|
public final IPartitionMetadata pmd
public final int fromIndex
public final int toIndex
public final int ntuples
public Split(IPartitionMetadata pmd)
pmd
- The metadata for the index partition within which the keys in
this split lie.public Split(IPartitionMetadata pmd, int fromIndex, int toIndex)
pmd
- The metadata for the index partition within which the keys in
this split lie (optional and used only in scale-out).fromIndex
- The index of the first key that will enter that index
partition (inclusive lower bound).toIndex
- The index of the first key that will NOT enter that index
partition (exclusive upper bound).public int hashCode()
IPartitionMetadata
hash code if given
(if is always present for scale-out client requests) and otherwise
fromIndex
(for example, when parallelizing operations within a
single index per BLGZ-1537).
Note: The historical hash code was just based on the
IPartitionMetadata
and would thrown out an NPE if there was no
IPartitionMetadata
. This was changed as part of BLZG-1537 to
support cases where the IPartitionMetadata
was not given (for
index local parallelism).
public boolean equals(Split o)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.