Interface ShardDao
- All Known Subinterfaces:
H2ShardDao,MySqlShardDao
public interface ShardDao
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidabortOldTransactions(Timestamp maxStartTime) voiddeleteCleanedShards(Iterable<UUID> shardUuids) voiddeleteCreatedShards(long transactionId) voiddeleteCreatedShards(Iterable<UUID> shardUuids) default intdeleteOldCompletedTransactions(Timestamp maxEndTime) voiddeleteShardNodes(UUID shardUuid, Iterable<Integer> nodeIds) voiddropShardNodes(long tableId) voiddropShards(long tableId) booleanexternalBatchExists(String externalBatchId) intfinalizeTransaction(long transactionId, boolean successful) getBucketNodes(long distributionId) getCleanableShardsBatch(Timestamp maxDeleteTime) longgetDistributionSizeBytes(long distributionId) getNodeIdentifier(int nodeId) getNodes()getNodeShards(String nodeIdentifier, Long tableId) voidinsertBuckets(long distributionId, List<Integer> bucketNumbers, List<Integer> nodeIds) voidinsertCreatedShard(UUID shardUuid, long transactionId) voidinsertDeletedShards(long tableId) default voidinsertDeletedShards(Iterable<UUID> shardUuids) voidinsertExternalBatch(String externalBatchId) intinsertNode(String nodeIdentifier) voidinsertShardNode(UUID shardUuid, int nodeId) longtransactionSuccessful(long transactionId) voidupdateBucketNode(long distributionId, int bucketNumber, int nodeId)
-
Field Details
-
CLEANABLE_SHARDS_BATCH_SIZE
static final int CLEANABLE_SHARDS_BATCH_SIZE- See Also:
-
CLEANUP_TRANSACTIONS_BATCH_SIZE
static final int CLEANUP_TRANSACTIONS_BATCH_SIZE- See Also:
-
SHARD_METADATA_COLUMNS
- See Also:
-
-
Method Details
-
insertNode
-
insertShardNode
-
deleteShardNodes
-
getNodeId
-
getNodeIdentifier
-
getNodes
List<RaptorNode> getNodes() -
getShard
-
getNodeShards
-
getNodeSizes
-
dropShardNodes
void dropShardNodes(long tableId) -
dropShards
void dropShards(long tableId) -
insertExternalBatch
-
externalBatchExists
-
insertTransaction
long insertTransaction() -
finalizeTransaction
int finalizeTransaction(long transactionId, boolean successful) -
transactionSuccessful
-
abortOldTransactions
-
insertCreatedShard
-
deleteCreatedShards
void deleteCreatedShards(long transactionId) -
deleteCreatedShards
-
insertDeletedShards
-
insertDeletedShards
void insertDeletedShards(long tableId) -
getOldCreatedShardsBatch
-
getCleanableShardsBatch
-
deleteCleanedShards
-
insertBuckets
-
getBucketNodes
-
listActiveDistributions
List<Distribution> listActiveDistributions() -
getDistributionSizeBytes
long getDistributionSizeBytes(long distributionId) -
updateBucketNode
void updateBucketNode(long distributionId, int bucketNumber, int nodeId) -
deleteOldCompletedTransactions
-