Class ClusterTableRecordMapping
java.lang.Object
org.nustaq.reallive.server.storage.ClusterTableRecordMapping
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuckets(int[] buckets) static voidcheckBucket(ClusterTableRecordMapping[] mappings, int num) static ClusterTableRecordMappingintgetBucket(int hashKey) int[]static voidbooleanmatches(int hashKey) voidremove(int[] hashShards2Move) voidsetBucket(int index, boolean b) toString()
-
Field Details
-
NUM_BUCKET
public static int NUM_BUCKET
-
-
Constructor Details
-
ClusterTableRecordMapping
public ClusterTableRecordMapping()
-
-
Method Details
-
Copy
-
matches
public boolean matches(int hashKey) -
getBucket
public int getBucket(int hashKey) -
addBuckets
public void addBuckets(int[] buckets) -
getBucketsAsIA
public int[] getBucketsAsIA() -
setBucket
public void setBucket(int index, boolean b) -
checkBucket
-
main
-
toString
-
getBitset
-
remove
public void remove(int[] hashShards2Move)
-