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>
public class StringSetImpl extends Object implements StringSet, Serializable
The StringSet implementation used by column sources.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStringSetImpl.ReversibleLookup<DATA_TYPE> -
Field Summary
Fields Modifier and Type Field Description static com.fishlib.base.hash.KeyedLongObjectKey<StringSetImpl>CACHE_KEYstatic com.fishlib.base.hash.KeyedLongObjectHash.ValueFactoryT<StringSetImpl,ReverseLookupColumnSource<String,?>>VALUE_FACTORY -
Constructor Summary
Constructors Constructor Description StringSetImpl(StringSetImpl.ReversibleLookup<String> reversibleLookup, long valueBitSet) -
Method Summary
Modifier and Type Method Description booleancontains(String value)booleancontainsAll(String... values)booleancontainsAny(String... values)booleanequals(Object other)longgetEncoding(SymbolManager<String> symbolManager)inthashCode()booleanisEmpty()Iterator<String>iterator()intsize()String[]sortedValues()Get a sorted array of the values in this StringSet.StringtoString()String[]values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.tables.libs.StringSet
defaultEquals, defaultHashCode, defaultToString
-
Field Details
-
CACHE_KEY
-
VALUE_FACTORY
public static final com.fishlib.base.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:
containsAnyin interfaceStringSet
-
containsAll
- Specified by:
containsAllin interfaceStringSet
-
size
public final int size() -
values
-
sortedValues
Description copied from interface:StringSetGet a sorted array of the values in this StringSet. May or may not match the value returned byStringSet.values().- Specified by:
sortedValuesin interfaceStringSet- Returns:
- A sorted array of this StringSet's values
-
isEmpty
public final boolean isEmpty() -
getEncoding
- Specified by:
getEncodingin interfaceStringSet
-
toString
-
hashCode
public int hashCode() -
equals
-
iterator
-