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

How to use
newTreeSet
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.newTreeSet (Showing top 8 results out of 315)

origin: apache/drill

Set<FieldPath> scannedFieldsSet = Sets.newTreeSet();
Set<FieldPath> projectedFieldsSet = null;
origin: org.apache.drill.exec/drill-java-exec

public Collection<DrillbitInfo> getDrillbits() {
 return Sets.newTreeSet(drillbits);
}
origin: org.apache.drill.exec/drill-java-exec

public Collection<String> getMismatchedVersions() {
 return Sets.newTreeSet(mismatchedVersions);
}
origin: org.apache.drill.exec/drill-java-exec

@JsonCreator
public ClusterInfo(Collection<DrillbitInfo> drillbits,
          String currentVersion,
          Collection<String> mismatchedVersions,
          boolean userEncryption,
          boolean bitEncryption,
          boolean shouldShowAdminInfo,
          QueueInfo queueInfo,
          boolean authEnabled) {
 this.drillbits = Sets.newTreeSet(drillbits);
 this.currentVersion = currentVersion;
 this.mismatchedVersions = Sets.newTreeSet(mismatchedVersions);
 this.userEncryptionEnabled = userEncryption;
 this.bitEncryptionEnabled = bitEncryption;
 this.shouldShowAdminInfo = shouldShowAdminInfo;
 this.queueInfo = queueInfo;
 this.authEnabled = authEnabled;
}
origin: org.apache.drill.exec/drill-java-exec

@GET
@Path("/logs.json")
@Produces(MediaType.APPLICATION_JSON)
public Set<Log> getLogsJSON() {
 Set<Log> logs = Sets.newTreeSet();
 File[] files = getLogFolder().listFiles(file_filter);
 for (File file : files) {
  logs.add(new Log(file.getName(), file.length(), file.lastModified()));
 }
 return logs;
}
origin: org.apache.drill/drill-shaded-guava

/**
 * Creates a <i>mutable</i> {@code TreeSet} instance containing the given elements sorted by their
 * natural ordering.
 *
 * <p><b>Note:</b> if mutability is not required, use {@link ImmutableSortedSet#copyOf(Iterable)}
 * instead.
 *
 * <p><b>Note:</b> If {@code elements} is a {@code SortedSet} with an explicit comparator, this
 * method has different behavior than {@link TreeSet#TreeSet(SortedSet)}, which returns a {@code
 * TreeSet} with that comparator.
 *
 * <p><b>Note for Java 7 and later:</b> this method is now unnecessary and should be treated as
 * deprecated. Instead, use the {@code TreeSet} constructor directly, taking advantage of the new
 * <a href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
 *
 * <p>This method is just a small convenience for creating an empty set and then calling {@link
 * Iterables#addAll}. This method is not very useful and will likely be deprecated in the future.
 *
 * @param elements the elements that the set should contain
 * @return a new {@code TreeSet} containing those elements (minus duplicates)
 */
public static <E extends Comparable> TreeSet<E> newTreeSet(Iterable<? extends E> elements) {
 TreeSet<E> set = newTreeSet();
 Iterables.addAll(set, elements);
 return set;
}
origin: org.apache.drill.contrib/drill-format-mapr

Set<FieldPath> scannedFieldsSet = Sets.newTreeSet();
Set<FieldPath> projectedFieldsSet = null;
origin: org.apache.drill.exec/drill-java-exec

@Produces(MediaType.APPLICATION_JSON)
public ClusterInfo getClusterInfoJSON() {
 final Collection<DrillbitInfo> drillbits = Sets.newTreeSet();
 final Collection<String> mismatchedVersions = Sets.newTreeSet();
org.apache.drill.shaded.guava.com.google.common.collectSetsnewTreeSet

Javadoc

Creates a mutable, empty TreeSet instance sorted by the natural sort ordering of its elements.

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

Note for Java 7 and later: this method is now unnecessary and should be treated as deprecated. Instead, use the TreeSet 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
  • newLinkedHashSet
    Creates a mutable LinkedHashSet instance containing the given elements in order. Note: if mutability
  • 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

  • Start an intent from android
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Permission (java.security)
    Legacy security code; do not use.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Option (scala)
  • Best IntelliJ plugins
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