Tabnine Logo
Sets.newLinkedHashSet
Code IndexAdd Tabnine to your IDE (free)

How to use
newLinkedHashSet
method
in
org.apache.drill.shaded.guava.com.google.common.collect.Sets

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

origin: apache/drill

@Override
protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> projectedColumns) {
 Set<SchemaPath> transformed = Sets.newLinkedHashSet();
 if (!isStarQuery()) {
  for (SchemaPath column : projectedColumns) {
   transformed.add(column);
  }
 } else {
  transformed.add(SchemaPath.STAR_COLUMN);
 }
 return transformed;
}
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

Set<Entry<TabletFragmentInfo, String>> regionsToAssignSet = Sets.newLinkedHashSet(regionsToScan.entrySet());
origin: apache/drill

public MapRDBFunctionalIndexInfo(IndexDescriptor indexDesc) {
 this.indexDesc = indexDesc;
 columnToConvert = Maps.newHashMap();
 exprToConvert = Maps.newHashMap();
 pathsInExpr = Maps.newHashMap();
 // keep the order of new paths, it may be related to the naming policy
 newPathsForIndexedFunction = Sets.newLinkedHashSet();
 allPathsInFunction = Sets.newHashSet();
 init();
}
origin: apache/drill

@Override
protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> columns) {
 Set<SchemaPath> transformed = Sets.newLinkedHashSet();
 Set<SchemaPath> encodedSchemaPathSet = Sets.newLinkedHashSet();
origin: apache/drill

Set<SchemaPath> transformed = Sets.newLinkedHashSet();
completeFamilies = Sets.newHashSet();
origin: org.apache.drill.exec/vector

/**
 * 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: org.apache.drill.exec/drill-java-exec

/**
 * Get a single IndexConditionInfo in which indexCondition has field  on all indexes in this.indexes
 * @return
 */
public IndexConditionInfo getCollectiveInfo(IndexLogicalPlanCallContext indexContext) {
 Set<LogicalExpression> paths = Sets.newLinkedHashSet();
 for (IndexDescriptor index : indexes ) {
  paths.addAll(index.getIndexColumns());
  //paths.addAll(index.getNonIndexColumns());
 }
 return indexConditionRelatedToFields(Lists.newArrayList(paths), condition);
}
origin: org.apache.drill/drill-shaded-guava

/**
 * Creates a <i>mutable</i> {@code LinkedHashSet} instance containing the given elements in order.
 *
 * <p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
 * ImmutableSet#copyOf(Iterable)} instead.
 *
 * <p><b>Note for Java 7 and later:</b> if {@code elements} is a {@link Collection}, you don't
 * need this method. Instead, use the {@code LinkedHashSet} constructor directly, taking advantage
 * of the new <a href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
 *
 * <p>Overall, this method is not very useful and will likely be deprecated in the future.
 *
 * @param elements the elements that the set should contain, in order
 * @return a new {@code LinkedHashSet} containing those elements (minus duplicates)
 */
public static <E> LinkedHashSet<E> newLinkedHashSet(Iterable<? extends E> elements) {
 if (elements instanceof Collection) {
  return new LinkedHashSet<E>(Collections2.cast(elements));
 }
 LinkedHashSet<E> set = newLinkedHashSet();
 Iterables.addAll(set, elements);
 return set;
}
origin: org.apache.drill.exec/drill-java-exec

public static VectorContainer getTransferClone(VectorAccessible incoming, VectorWrapper<?>[] ignoreWrappers, OperatorContext oContext) {
 Iterable<VectorWrapper<?>> wrappers = incoming;
 if (ignoreWrappers != null) {
  final List<VectorWrapper<?>> ignored = Lists.newArrayList(ignoreWrappers);
  final Set<VectorWrapper<?>> resultant = Sets.newLinkedHashSet(incoming);
  resultant.removeAll(ignored);
  wrappers = resultant;
 }
 final VectorContainer vc = new VectorContainer(oContext);
 for (VectorWrapper<?> w : wrappers) {
  vc.cloneAndTransfer(w);
 }
 return vc;
}
origin: org.apache.drill.contrib/drill-format-mapr

Set<Entry<TabletFragmentInfo, String>> regionsToAssignSet = Sets.newLinkedHashSet(regionsToScan.entrySet());
origin: org.apache.drill/drill-shaded-guava

Set<K> keysToLoad = Sets.newLinkedHashSet();
for (K key : keys) {
 V value = get(key);
origin: org.apache.drill.contrib/drill-format-mapr

public MapRDBFunctionalIndexInfo(IndexDescriptor indexDesc) {
 this.indexDesc = indexDesc;
 columnToConvert = Maps.newHashMap();
 exprToConvert = Maps.newHashMap();
 pathsInExpr = Maps.newHashMap();
 // keep the order of new paths, it may be related to the naming policy
 newPathsForIndexedFunction = Sets.newLinkedHashSet();
 allPathsInFunction = Sets.newHashSet();
 init();
}
origin: org.apache.drill.contrib/drill-format-mapr

@Override
protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> columns) {
 Set<SchemaPath> transformed = Sets.newLinkedHashSet();
 Set<SchemaPath> encodedSchemaPathSet = Sets.newLinkedHashSet();
origin: org.apache.drill.exec/drill-java-exec

Set<RelDataTypeField> rowfields = Sets.newLinkedHashSet();
final List<SchemaPath> columns = Lists.newArrayList();
for (RelDataTypeField f : fields) {
origin: org.apache.drill.contrib/drill-storage-hbase

Set<SchemaPath> transformed = Sets.newLinkedHashSet();
completeFamilies = Sets.newHashSet();
origin: org.apache.drill.exec/drill-java-exec

Set<SchemaPath> selectedSchemaPaths = Sets.newLinkedHashSet();
org.apache.drill.shaded.guava.com.google.common.collectSetsnewLinkedHashSet

Javadoc

Creates a mutable, empty LinkedHashSet instance.

Note: if mutability is not required, use ImmutableSet#of() instead.

Note for Java 7 and later: this method is now unnecessary and should be treated as deprecated. Instead, use the LinkedHashSet constructor directly, taking advantage of the new "diamond" syntax.

Popular methods of Sets

  • newHashSet
    Creates a mutable HashSet instance initially containing the given elements.Note: if elements are non
  • newTreeSet
    Creates a mutable, empty TreeSet instance with the given comparator.Note: if mutability is not requi
  • union
    Returns an unmodifiable view of the union of two sets. The returned set contains all elements that a
  • filter
    Returns the elements of a SortedSet, unfiltered, that satisfy a predicate. The returned set is a liv
  • intersection
    Returns an unmodifiable view of the intersection of two sets. The returned set contains all elements
  • newHashSetWithExpectedSize
    Returns a new hash set using the smallest initial table size that can hold expectedSizeelements with
  • newIdentityHashSet
    Creates an empty Set that uses identity to determine equality. It compares object references, instea
  • cartesianProduct
    Returns every possible list that can be formed by choosing one element from each of the given sets i
  • difference
    Returns an unmodifiable view of the difference of two sets. The returned set contains all elements t
  • equalsImpl
    An implementation for Set#equals(Object).
  • hashCodeImpl
    An implementation for Set#hashCode().
  • immutableEnumSet
    Returns an immutable set instance containing the given enum elements. Internally, the returned set w
  • hashCodeImpl,
  • immutableEnumSet,
  • makeComplementByHand,
  • newConcurrentHashSet,
  • newLinkedHashSetWithExpectedSize,
  • removeAllImpl,
  • unmodifiableNavigableSet

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
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