Package org.teiid.translator.ExecutionFactory

Examples of org.teiid.translator.ExecutionFactory.NullOrder


            //TODO: this check shouldn't be necessary, since the order by is not introducing new expressions
            if(! canPushSymbol(symbol.getSymbol(), true, modelID, metadata, capFinder, record)) {
                return false;
            }
            boolean supportsNullOrdering = CapabilitiesUtil.supports(Capability.QUERY_ORDERBY_NULL_ORDERING, modelID, metadata, capFinder);
            NullOrder defaultNullOrder = CapabilitiesUtil.getDefaultNullOrder(modelID, metadata, capFinder);
            if (symbol.getNullOrdering() != null) {
            if (!supportsNullOrdering) {
              if (symbol.getNullOrdering() == NullOrdering.FIRST) {
                if (defaultNullOrder != NullOrder.FIRST && !(symbol.isAscending() && defaultNullOrder == NullOrder.LOW)
                    && !(!symbol.isAscending() && defaultNullOrder == NullOrder.HIGH)) {
View Full Code Here


    public static NullOrder getDefaultNullOrder(Object modelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder) throws QueryMetadataException, TeiidComponentException {
        if (metadata.isVirtualModel(modelID)){
            return NullOrder.UNKNOWN;
        }
        SourceCapabilities caps = getCapabilities(modelID, metadata, capFinder);
        NullOrder order = (NullOrder)caps.getSourceProperty(Capability.QUERY_ORDERBY_DEFAULT_NULL_ORDER);
        if (order == null) {
          return NullOrder.UNKNOWN;
        }
        return order;
    }
View Full Code Here

TOP

Related Classes of org.teiid.translator.ExecutionFactory.NullOrder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.