@Override public Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) { return ImmutableSet.of(HBasePushFilterIntoScan.FILTER_ON_SCAN, HBasePushFilterIntoScan.FILTER_ON_PROJECT); }
@Override public Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) { return ImmutableSet.of(KafkaPushDownFilterIntoScan.INSTANCE); }
@Override public Set<StoragePluginOptimizerRule> getOptimizerRules() { return ImmutableSet.of(); }
@Override @JsonIgnore public Set<StoragePluginOptimizerRule> getOptimizerRules() { return ImmutableSet.of(MapRDBPushFilterIntoScan.FILTER_ON_SCAN, MapRDBPushFilterIntoScan.FILTER_ON_PROJECT, MapRDBPushProjectIntoScan.PROJECT_ON_SCAN, MapRDBPushLimitIntoScan.LIMIT_ON_PROJECT, MapRDBPushLimitIntoScan.LIMIT_ON_SCAN, MapRDBPushLimitIntoScan.LIMIT_ON_RKJOIN); }
@Override public Iterator<PhysicalOperator> iterator() { return ImmutableSet.<PhysicalOperator>of().iterator(); }
@Override public Iterator<PhysicalOperator> iterator() { return ImmutableSet.<PhysicalOperator>of().iterator(); }
@Override public Iterator<PhysicalOperator> iterator() { return ImmutableSet.<PhysicalOperator>of().iterator(); }
/** * @return * @return * @see http://www.eclipse.org/jetty/documentation/current/embedded-examples.html */ private ConstraintSecurityHandler createSecurityHandler(Config config) { ConstraintSecurityHandler security = new ConstraintSecurityHandler(); Set<String> knownRoles = ImmutableSet.of(ADMIN_ROLE); security.setConstraintMappings(Collections.<ConstraintMapping> emptyList(), knownRoles); security.setAuthenticator(new FormAuthenticator("/login", "/login", true)); security .setLoginService(new AmLoginService(AMSecurityManagerImpl.instance())); return security; }
@Override public Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) { return ImmutableSet.of( InfoSchemaPushFilterIntoRecordGenerator.IS_FILTER_ON_PROJECT, InfoSchemaPushFilterIntoRecordGenerator.IS_FILTER_ON_SCAN); } }
@Override public Set<StoragePluginOptimizerRule> getOptimizerRules() { return ImmutableSet.of(); }
/** * @deprecated Marking for deprecation in next major version release. Use * {@link #getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase)} */ @Deprecated public Set<? extends RelOptRule> getLogicalOptimizerRules(OptimizerRulesContext optimizerContext) { return ImmutableSet.of(); }
@Override @JsonIgnore public Set<StoragePluginOptimizerRule> getOptimizerRules() { return ImmutableSet.of(MapRDBPushFilterIntoScan.FILTER_ON_SCAN, MapRDBPushFilterIntoScan.FILTER_ON_PROJECT, MapRDBPushProjectIntoScan.PROJECT_ON_SCAN, MapRDBPushLimitIntoScan.LIMIT_ON_PROJECT, MapRDBPushLimitIntoScan.LIMIT_ON_SCAN, MapRDBPushLimitIntoScan.LIMIT_ON_RKJOIN); }
/** * @deprecated Marking for deprecation in next major version release. Use * {@link #getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase)} */ @Override @Deprecated public Set<? extends RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext) { return ImmutableSet.of(); }
private static <V> ImmutableSet<V> emptySet(@Nullable Comparator<? super V> valueComparator) { return (valueComparator == null) ? ImmutableSet.<V>of() : ImmutableSortedSet.<V>emptySet(valueComparator); }
Collection<V> unmodifiableEmptyCollection() { if (unfiltered instanceof SetMultimap) { return ImmutableSet.of(); } else { return ImmutableList.of(); } }
@Override public Iterator<LogicalExpression> iterator() { return ImmutableSet.<LogicalExpression>of().iterator(); }
@Override ImmutableSet<Entry<K, V>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<K, V>>of() : new ImmutableMapEntrySet.RegularEntrySet<K, V>(this, entries); }
@Override public Set<E> edgesConnecting(N nodeU, N nodeV) { NetworkConnections<N, E> connectionsU = checkedConnections(nodeU); if (!allowsSelfLoops && nodeU == nodeV) { // just an optimization, only check reference equality return ImmutableSet.of(); } checkArgument(containsNode(nodeV), NODE_NOT_IN_GRAPH, nodeV); return connectionsU.edgesConnecting(nodeV); }
@Override public Set<E> adjacentEdges(E edge) { EndpointPair<N> endpointPair = incidentNodes(edge); // Verifies that edge is in this network. Set<E> endpointPairIncidentEdges = Sets.union(incidentEdges(endpointPair.nodeU()), incidentEdges(endpointPair.nodeV())); return Sets.difference(endpointPairIncidentEdges, ImmutableSet.of(edge)); }