public BaseIndexInfo(T table, final List<? extends Expression> projectedCols, final Criteria condition, OrderBy orderBy, boolean primary) { this.table = table; if (primary || this.table.getColumnMap().keySet().containsAll(projectedCols)) { covering = true; } if (table.getPkLength() > 0) { processCriteria(condition, primary); if (orderBy != null) { ordering = useIndexForOrderBy(orderBy); } } }
public BaseIndexInfo(T table, final List<? extends Expression> projectedCols, final Criteria condition, OrderBy orderBy, boolean primary) { this.table = table; if (primary || this.table.getColumnMap().keySet().containsAll(projectedCols)) { covering = true; } if (table.getPkLength() > 0) { processCriteria(condition, primary); if (orderBy != null) { ordering = useIndexForOrderBy(orderBy); } } }
public BaseIndexInfo(T table, final List<? extends Expression> projectedCols, final Criteria condition, OrderBy orderBy, boolean primary) { this.table = table; if (primary || this.table.getColumnMap().keySet().containsAll(projectedCols)) { covering = true; } if (table.getPkLength() > 0) { processCriteria(condition, primary); if (orderBy != null) { ordering = useIndexForOrderBy(orderBy); } } }