Class DefaultSelectTranslator

    • Field Detail

      • UNSUPPORTED_DISTINCT_TYPES

        protected static final int[] UNSUPPORTED_DISTINCT_TYPES
    • Method Detail

      • isUnsupportedForDistinct

        protected static boolean isUnsupportedForDistinct​(int type)
      • getJoinStack

        protected JoinStack getJoinStack()
      • createJoinStack

        protected JoinStack createJoinStack()
      • buildDistinctStatement

        protected String buildDistinctStatement()
        Allows subclasses to insert their own dialect of DISTINCT statement to improve performance.
        Returns:
        string representing the DISTINCT statement
        Since:
        4.0
      • appendSelectColumns

        protected void appendSelectColumns​(StringBuilder buffer,
                                           List<String> selectColumnExpList)
        Since:
        3.1
      • appendLimitAndOffsetClauses

        protected void appendLimitAndOffsetClauses​(StringBuilder buffer)
        Handles appending optional limit and offset clauses. This implementation does nothing, deferring to subclasses to define the LIMIT/OFFSET clause syntax.
        Since:
        3.0
      • getAttributeOverrides

        public Map<ObjAttribute,​ColumnDescriptor> getAttributeOverrides()
        Returns a map of ColumnDescriptors keyed by ObjAttribute for columns that may need to be reprocessed manually due to incompatible mappings along the inheritance hierarchy.
        Specified by:
        getAttributeOverrides in interface SelectTranslator
        Since:
        1.2
      • isSuppressingDistinct

        public boolean isSuppressingDistinct()
        Returns true if SelectTranslator determined that a query requiring DISTINCT can't be run with DISTINCT keyword for internal reasons. If this method returns true, DataNode may need to do in-memory distinct filtering.
        Specified by:
        isSuppressingDistinct in interface SelectTranslator
        Since:
        1.1
      • resetJoinStack

        public void resetJoinStack()
        Description copied from class: QueryAssembler
        A callback invoked by a child qualifier or ordering processor allowing query assembler to reset its join stack.
        Specified by:
        resetJoinStack in class QueryAssembler
        Since:
        3.0
      • hasJoins

        public boolean hasJoins()
        Specified by:
        hasJoins in interface SelectTranslator
        Returns:
        do query has at least one join
        Since:
        4.0