Interface ShardDao

All Known Subinterfaces:
H2ShardDao, MySqlShardDao

public interface ShardDao
  • Field Details

  • Method Details

    • insertNode

      int insertNode(String nodeIdentifier)
    • insertShardNode

      void insertShardNode(UUID shardUuid, int nodeId)
    • deleteShardNodes

      void deleteShardNodes(UUID shardUuid, Iterable<Integer> nodeIds)
    • getNodeId

      Integer getNodeId(String nodeIdentifier)
    • getNodeIdentifier

      String getNodeIdentifier(int nodeId)
    • getNodes

      List<RaptorNode> getNodes()
    • getShard

      ShardMetadata getShard(UUID shardUuid)
    • getNodeShards

      Set<ShardMetadata> getNodeShards(String nodeIdentifier, Long tableId)
    • getNodeSizes

      Set<NodeSize> getNodeSizes()
    • dropShardNodes

      void dropShardNodes(long tableId)
    • dropShards

      void dropShards(long tableId)
    • insertExternalBatch

      void insertExternalBatch(String externalBatchId)
    • externalBatchExists

      boolean externalBatchExists(String externalBatchId)
    • insertTransaction

      long insertTransaction()
    • finalizeTransaction

      int finalizeTransaction(long transactionId, boolean successful)
    • transactionSuccessful

      Boolean transactionSuccessful(long transactionId)
    • abortOldTransactions

      void abortOldTransactions(Timestamp maxStartTime)
    • insertCreatedShard

      void insertCreatedShard(UUID shardUuid, long transactionId)
    • deleteCreatedShards

      void deleteCreatedShards(long transactionId)
    • deleteCreatedShards

      void deleteCreatedShards(Iterable<UUID> shardUuids)
    • insertDeletedShards

      default void insertDeletedShards(Iterable<UUID> shardUuids)
    • insertDeletedShards

      void insertDeletedShards(long tableId)
    • getOldCreatedShardsBatch

      List<UUID> getOldCreatedShardsBatch()
    • getCleanableShardsBatch

      Set<UUID> getCleanableShardsBatch(Timestamp maxDeleteTime)
    • deleteCleanedShards

      void deleteCleanedShards(Iterable<UUID> shardUuids)
    • insertBuckets

      void insertBuckets(long distributionId, List<Integer> bucketNumbers, List<Integer> nodeIds)
    • getBucketNodes

      List<BucketNode> getBucketNodes(long distributionId)
    • listActiveDistributions

      List<Distribution> listActiveDistributions()
    • getDistributionSizeBytes

      long getDistributionSizeBytes(long distributionId)
    • updateBucketNode

      void updateBucketNode(long distributionId, int bucketNumber, int nodeId)
    • deleteOldCompletedTransactions

      default int deleteOldCompletedTransactions(Timestamp maxEndTime)