Package org.apache.druid.query.filter
Class InDimFilter.ValuesSet
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingSet<E>
-
- com.google.common.collect.ForwardingSortedSet<String>
-
- org.apache.druid.query.filter.InDimFilter.ValuesSet
-
- Enclosing class:
- InDimFilter
public static class InDimFilter.ValuesSet extends com.google.common.collect.ForwardingSortedSet<String>
-
-
Constructor Summary
Constructors Constructor Description ValuesSet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(String s)booleanaddAll(Collection<? extends String> other)static InDimFilter.ValuesSetcopyOf(Collection<String> values)Creates a ValuesSet copying the provided collection.static InDimFilter.ValuesSetcopyOf(Iterator<String> values)Creates a ValuesSet copying the provided iterator, withNullHandling.emptyToNullIfNeeded(String)applied.static InDimFilter.ValuesSetcreate()Creates an empty ValuesSet.protected SortedSet<String>delegate()static InDimFilter.ValuesSetof(String value)Creates a ValuesSet wrapping the provided single value, withNullHandling.emptyToNullIfNeeded(String)applied.List<ByteBuffer>toUtf8()-
Methods inherited from class com.google.common.collect.ForwardingSortedSet
comparator, first, headSet, last, standardContains, standardRemove, standardSubSet, subSet, tailSet
-
Methods inherited from class com.google.common.collect.ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
-
Methods inherited from class com.google.common.collect.ForwardingCollection
clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
spliterator
-
-
-
-
Method Detail
-
create
public static InDimFilter.ValuesSet create()
Creates an empty ValuesSet.
-
of
public static InDimFilter.ValuesSet of(@Nullable String value)
Creates a ValuesSet wrapping the provided single value, withNullHandling.emptyToNullIfNeeded(String)applied.- Throws:
IllegalStateException- if the provided collection cannot be wrapped since it has the wrong comparator
-
copyOf
public static InDimFilter.ValuesSet copyOf(Iterator<String> values)
Creates a ValuesSet copying the provided iterator, withNullHandling.emptyToNullIfNeeded(String)applied.
-
copyOf
public static InDimFilter.ValuesSet copyOf(Collection<String> values)
Creates a ValuesSet copying the provided collection.
-
toUtf8
public List<ByteBuffer> toUtf8()
-
add
public boolean add(String s)
-
addAll
public boolean addAll(Collection<? extends String> other)
-
-