Class TransparentResultDecorator

  • All Implemented Interfaces:
    ResultDecorator<org.apache.shardingsphere.infra.rule.ShardingSphereRule>

    public final class TransparentResultDecorator
    extends Object
    implements ResultDecorator<org.apache.shardingsphere.infra.rule.ShardingSphereRule>
    Transparent result decorator.
    • Constructor Detail

      • TransparentResultDecorator

        public TransparentResultDecorator()
    • Method Detail

      • decorate

        public MergedResult decorate​(QueryResult queryResult,
                                     SQLStatementContext sqlStatementContext,
                                     org.apache.shardingsphere.infra.rule.ShardingSphereRule rule)
        Description copied from interface: ResultDecorator
        Decorate query result.
        Specified by:
        decorate in interface ResultDecorator<org.apache.shardingsphere.infra.rule.ShardingSphereRule>
        Parameters:
        queryResult - query result
        sqlStatementContext - SQL statement context
        rule - ShardingSphere rule
        Returns:
        merged result
      • decorate

        public MergedResult decorate​(MergedResult mergedResult,
                                     SQLStatementContext sqlStatementContext,
                                     org.apache.shardingsphere.infra.rule.ShardingSphereRule rule)
        Description copied from interface: ResultDecorator
        Decorate merged result.
        Specified by:
        decorate in interface ResultDecorator<org.apache.shardingsphere.infra.rule.ShardingSphereRule>
        Parameters:
        mergedResult - merged result
        sqlStatementContext - SQL statement context
        rule - ShardingSphere rule
        Returns:
        merged result