Interface QueryPassthroughSignature

    • Method Detail

      • getFunctionSchema

        String getFunctionSchema()
        Returns:
        QPT Function's Schema (also known as a domain or namepsace)
      • getFunctionName

        String getFunctionName()
        Returns:
        QPT Function's name
      • getFunctionSignature

        default String getFunctionSignature()
        Returns the full function schema and name
        Returns:
      • getFunctionArguments

        List<String> getFunctionArguments()
        Returns:
        Query Passthrough Function's Arguments
      • getLogger

        org.slf4j.Logger getLogger()
        note: due to needing to stay compatible with JDK8; we can't use JDK9 private method
        Returns:
        a logger
      • customConnectorVerifications

        default void customConnectorVerifications​(Map<String,​String> engineQptArguments)
        Provides a mechanism to perform custom connector verification logic.
      • verifyFunctionSignature

        default boolean verifyFunctionSignature​(Map<String,​String> argumentValues)
        Verifying that the query passthrough function signature is the one expected by the connector
        Parameters:
        argumentValues -
        Returns:
        true if the signature matches, otherwise false
      • getQueryPassthroughCapabilities

        default List<OptimizationSubType> getQueryPassthroughCapabilities()
        Creates a list of Optimization that includes the query passthrough definition
        Returns:
        list of capability describes of the signature of the current implementation
      • addQueryPassthroughCapabilityIfEnabled

        default void addQueryPassthroughCapabilityIfEnabled​(com.google.common.collect.ImmutableMap.Builder<String,​List<OptimizationSubType>> capabilities,
                                                            Map<String,​String> configOptions)
        Adds the query passthrough implementation, if user has not disabled it, to the connector's capabilities
        Parameters:
        capabilities -
        configOptions -
      • allowQueryPassthrough

        default boolean allowQueryPassthrough​(Map<String,​String> configOptions)
        A method that checks the Lambda's environment variables to see if QPT is disabled/enabled
        Parameters:
        configOptions -
        Returns:
        true if enabled; otherwise false