Interface NCSqlExtractor

    • Method Detail

      • extractLimit

        NCSqlLimit extractLimit​(NCToken limitTok)
        Extracts limit object from given nlpcraft:limit token.
        Parameters:
        limitTok - Limit token with ID nlpcraft:limit.
        Returns:
        SQL limit object extracted from given token.
        Throws:
        org.apache.nlpcraft.common.NCException - Thrown in case of any errors.
      • extractSort

        List<NCSqlSort> extractSort​(NCToken sortTok)
        Extracts sort object from given nlpcraft:sort token.
        Parameters:
        sortTok - Sort token with ID nlpcraft:sort.
        Returns:
        SQL sort object extracted from given token.
        Throws:
        org.apache.nlpcraft.common.NCException - Thrown in case of any errors.
      • extractTable

        NCSqlTable extractTable​(NCToken tblTok)
        Extract table object from the token.
        Parameters:
        tblTok - A token that belongs to a table group.
        Returns:
        SQL table object extracted from the given token.
        Throws:
        org.apache.nlpcraft.common.NCException - Thrown in case of any errors.
      • extractColumn

        NCSqlColumn extractColumn​(NCToken colTok)
        Extract column object from the token.
        Parameters:
        colTok - A token that belongs to a column group.
        Returns:
        SQL column object extracted from the given token.
        Throws:
        org.apache.nlpcraft.common.NCException - Thrown in case of any errors.
      • extractDateRange

        NCSqlDateRange extractDateRange​(NCToken dateTok)
        Extract date range object from given nlpcraft:date token.
        Parameters:
        dateTok - Date token with ID nlpcraft:date.
        Returns:
        A data range object extracted from given token.
        Throws:
        org.apache.nlpcraft.common.NCException - Thrown in case of any errors.