congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.drill.shaded.guava.com.google.common.collect
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.drill.shaded.guava.com.google.common.collect

Best Java code snippets using org.apache.drill.shaded.guava.com.google.common.collect (Showing top 20 results out of 315)

origin: apache/drill

public FunctionHolderExpression(String nameUsed, ExpressionPosition pos, List<LogicalExpression> args) {
 super(pos);
 if (args == null) {
  args = Lists.newArrayList();
 }
 if (!(args instanceof ImmutableList)) {
  args = ImmutableList.copyOf(args);
 }
 this.args = (ImmutableList<LogicalExpression>) args;
 this.nameUsed = nameUsed;
}
origin: apache/drill

public static boolean isCompareFunction(String functionName) {
 return COMPARE_FUNCTIONS_TRANSPOSE_MAP.keySet().contains(functionName);
}
origin: apache/drill

public LogicalPlanBuilder addStorageEngine(String name, StoragePluginConfig config) {
 this.storageEngines.put(name, config);
 return this;
}
public LogicalPlanBuilder addLogicalOperator(LogicalOperator operator) {
origin: apache/drill

@Override
public Iterator<PhysicalOperator> iterator() {
 return ImmutableSet.<PhysicalOperator>of().iterator();
}
origin: apache/drill

 @Override
 public Iterator<LogicalExpression> iterator() {
  return ImmutableList.<LogicalExpression>of().iterator();
 }
}
origin: apache/drill

 @Override
 public Set<Entry<K, V>> entrySet() {
  return Sets.newHashSet(Iterables.transform(primary.entrySet(), new Function<Entry<K, Entry<Integer, V>>, Entry<K, V>>() {
   @Override
   public Entry<K, V> apply(Entry<K, Entry<Integer, V>> entry) {
    return new AbstractMap.SimpleImmutableEntry<>(entry.getKey(), entry.getValue().getValue());
   }
  }));
 }
};
origin: apache/drill

 public LogicalPlan build() {
  return new LogicalPlan(this.planProperties, this.storageEngines.build(), this.operators.build());
 }
}
origin: apache/drill

/**
 * Returns a sequence of field names in the order that they show up in the schema.
 */
protected Collection<String> getChildFieldNames() {
 return Sets.newLinkedHashSet(Iterables.transform(field.getChildren(), new Function<MaterializedField, String>() {
  @Nullable
  @Override
  public String apply(MaterializedField field) {
   return Preconditions.checkNotNull(field).getName();
  }
 }));
}
origin: apache/drill

@Override
public Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) {
 return ImmutableSet.of(HBasePushFilterIntoScan.FILTER_ON_SCAN, HBasePushFilterIntoScan.FILTER_ON_PROJECT);
}
origin: apache/drill

public HivePartitionLocation(final List<String> partitionValues, final String partitionLocation) {
 this.partitionValues = ImmutableList.copyOf(partitionValues);
 this.partitionLocation = partitionLocation;
}
@Override
origin: apache/drill

private static String likeString(FunctionCall call) {
 return ((QuotedString) call.args.get(1)).value;
}
origin: apache/drill

public LogicalPlanBuilder addLogicalOperator(LogicalOperator operator) {
 this.operators.add(operator);
 return this;
}
public LogicalPlan build() {
origin: apache/drill

@Override
public Iterator<LogicalExpression> iterator() {
 return args.iterator();
}
origin: apache/drill

void clearVisited() {
 for (Edge<Node> e : adjacencies.values()) {
  e.from.visited = false;
  e.to.visited = false;
 }
}
origin: apache/drill

public Set<Node> getNodeSet() {
 return adjacencies.keySet();
}
origin: apache/drill

public FunctionCall(String name, List<LogicalExpression> args, ExpressionPosition pos) {
 super(pos);
 this.name = name;
 if (args == null) {
  args = Lists.newArrayList();
 }
 if (!(args instanceof ImmutableList)) {
  args = ImmutableList.copyOf(args);
 }
 this.args = (ImmutableList<LogicalExpression>) args;
 this.pos = pos;
}
origin: apache/drill

public static boolean isCompareFunction(String functionName) {
 return COMPARE_FUNCTIONS_TRANSPOSE_MAP.keySet().contains(functionName);
}
origin: apache/drill

@Override
public Iterator<PhysicalOperator> iterator() {
 return ImmutableSet.<PhysicalOperator>of().iterator();
}
origin: apache/drill

@Override
public Iterator<LogicalExpression> iterator() {
 return args.iterator();
}
origin: apache/drill

public static boolean isPushdownFunction(String functionName) {
 return COMPARE_FUNCTIONS_TRANSPOSE_MAP.keySet().contains(functionName);
}
org.apache.drill.shaded.guava.com.google.common.collect

Most used classes

  • Lists
  • ImmutableList
    A List whose contents will never change, with many other important properties detailed at ImmutableC
  • ImmutableSet
    A Set whose contents will never change, with many other important properties detailed at ImmutableCo
  • ImmutableMap
  • Maps
    Static utility methods pertaining to Map instances (including instances of SortedMap, BiMap, etc.).
  • ImmutableSet$Builder,
  • ImmutableList$Builder,
  • Iterables,
  • ImmutableMap$Builder,
  • ListMultimap,
  • Iterators,
  • Multimap,
  • Ordering,
  • ArrayListMultimap,
  • Collections2,
  • ComparisonChain,
  • Queues,
  • HashMultimap,
  • ImmutableRangeMap$Builder
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now