Interface HintShadowAlgorithm<T extends Comparable<?>>

  • Type Parameters:
    T - class type of hint value
    All Superinterfaces:
    ShadowAlgorithm, org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm, org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

    public interface HintShadowAlgorithm<T extends Comparable<?>>
    extends ShadowAlgorithm
    Precise hint of shadow in SQL comment.
    • Method Detail

      • isShadow

        boolean isShadow​(Collection<String> relatedShadowTables,
                         PreciseHintShadowValue<T> hintShadowValue)
        Is need shadow.
        Parameters:
        relatedShadowTables - related shadow tables
        hintShadowValue - hint value of shadow
        Returns:
        is need shadow or not