|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.Split
public class Split
Describes a "split" of keys for a batch operation that are spanned by the same index partition.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
equals(Split o)
|
int |
hashCode()
Hash code is based on the IPartitionMetadata hash code. |
String |
toString()
Human friendly representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final IPartitionMetadata pmd
public final int fromIndex
public final int toIndex
public final int ntuples
| Constructor Detail |
|---|
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.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).IPartitionMetadata fully specify
the split so the fromIndex,toIndex here are really redundent.
Perhaps the help when building an IndexSegment from the
Split?| Method Detail |
|---|
public int hashCode()
IPartitionMetadata hash code.
hashCode in class Objectpublic boolean equals(Split o)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||