Package com.illumon.iris.db.v2.sources
Class StringSetImpl
java.lang.Object
com.illumon.iris.db.v2.sources.StringSetImpl
- All Implemented Interfaces:
StringSet
,Serializable
,Iterable<String>
The StringSet implementation used by column sources.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.deephaven.hash.KeyedLongObjectKey<StringSetImpl>
static final io.deephaven.hash.KeyedLongObjectHash.ValueFactoryT<StringSetImpl,
ReverseLookupColumnSource<String, ?>> -
Constructor Summary
ConstructorsConstructorDescriptionStringSetImpl
(StringSetImpl.ReversibleLookup<String> reversibleLookup, long valueBitSet) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final boolean
containsAll
(String... values) final boolean
containsAny
(String... values) boolean
long
getEncoding
(SymbolManager<String> symbolManager) int
hashCode()
final boolean
isEmpty()
iterator()
final int
size()
final String[]
Get a sorted array of the values in this StringSet.final String
toString()
final String[]
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.illumon.iris.db.tables.libs.StringSet
defaultEquals, defaultHashCode, defaultToString
-
Field Details
-
CACHE_KEY
-
VALUE_FACTORY
public static final io.deephaven.hash.KeyedLongObjectHash.ValueFactoryT<StringSetImpl,ReverseLookupColumnSource<String, VALUE_FACTORY?>>
-
-
Constructor Details
-
StringSetImpl
public StringSetImpl(@NotNull StringSetImpl.ReversibleLookup<String> reversibleLookup, long valueBitSet)
-
-
Method Details
-
contains
-
containsAny
- Specified by:
containsAny
in interfaceStringSet
-
containsAll
- Specified by:
containsAll
in interfaceStringSet
-
size
public final int size() -
values
-
sortedValues
Description copied from interface:StringSet
Get a sorted array of the values in this StringSet. May or may not match the value returned byStringSet.values()
.- Specified by:
sortedValues
in interfaceStringSet
- Returns:
- A sorted array of this StringSet's values
-
isEmpty
public final boolean isEmpty() -
getEncoding
- Specified by:
getEncoding
in interfaceStringSet
-
toString
-
hashCode
public int hashCode() -
equals
-
iterator
-