Class AbstractStreamingDataConsistencyCalculateAlgorithm
java.lang.Object
org.apache.shardingsphere.data.pipeline.core.check.consistency.algorithm.AbstractStreamingDataConsistencyCalculateAlgorithm
- All Implemented Interfaces:
DataConsistencyCalculateAlgorithm,ShardingSphereAlgorithm,org.apache.shardingsphere.spi.aware.SPIMetadataAware,org.apache.shardingsphere.spi.lifecycle.SPIPostProcessor,org.apache.shardingsphere.spi.type.typed.TypedSPI
- Direct Known Subclasses:
DataMatchDataConsistencyCalculateAlgorithm
public abstract class AbstractStreamingDataConsistencyCalculateAlgorithm
extends Object
implements DataConsistencyCalculateAlgorithm
Streaming data consistency calculate algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculate(DataConsistencyCalculateParameter parameter) calculateChunk(DataConsistencyCalculateParameter parameter) Calculate chunked records at one time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithm
getPropsMethods inherited from interface org.apache.shardingsphere.spi.aware.SPIMetadataAware
getDescription, getSupportedDatabaseTypesMethods inherited from interface org.apache.shardingsphere.spi.lifecycle.SPIPostProcessor
initMethods inherited from interface org.apache.shardingsphere.spi.type.typed.TypedSPI
getType, getTypeAliases
-
Constructor Details
-
AbstractStreamingDataConsistencyCalculateAlgorithm
public AbstractStreamingDataConsistencyCalculateAlgorithm()
-
-
Method Details
-
calculate
- Specified by:
calculatein interfaceDataConsistencyCalculateAlgorithm
-
calculateChunk
Calculate chunked records at one time.- Parameters:
parameter- data consistency calculate parameter- Returns:
- optional calculated result, empty means there's no more result
-