Class PushdownSqlParser


  • public final class PushdownSqlParser
    extends Object
    Parser for the JSON query AST.
    • Method Detail

      • parseExpression

        public SqlNode parseExpression​(jakarta.json.JsonObject expression)
        Parse an expression.
        Parameters:
        expression - JSON object of the SQL expression
        Returns:
        parsed expression
      • createWithTablesMetadata

        public static PushdownSqlParser createWithTablesMetadata​(List<TableMetadata> involvedTableMetadata)
        Create an instance of a PushdownSqlParser
        Parameters:
        involvedTableMetadata - metadata for all tables that are referred to in the push-down request
        Returns:
        new instance
      • createJsonReader

        protected jakarta.json.JsonReader createJsonReader​(String rawRequest)
        Create a JSON reader for raw request data.

        The data stream fed into this reader must be UTF-8 encoded.

        Parameters:
        rawRequest - raw JSON string representing an adapter request or part thereof
        Returns:
        JSON reader
      • parseProperties

        protected Map<String,​String> parseProperties​(jakarta.json.JsonObject jsonSchemaMetadataInfo)
        Read the properties from the schema metadata.
        Parameters:
        jsonSchemaMetadataInfo - json schema metadata info
        Returns:
        parsed Properties.