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 interface
StringSetImpl.ReversibleLookup<DATA_TYPE>
-
Field Summary
Fields Modifier and Type Field Description static com.fishlib.base.hash.KeyedLongObjectKey<StringSetImpl>
CACHE_KEY
static 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 boolean
contains(String value)
boolean
containsAll(String... values)
boolean
containsAny(String... values)
boolean
equals(Object other)
long
getEncoding(SymbolManager<String> symbolManager)
int
hashCode()
boolean
isEmpty()
Iterator<String>
iterator()
int
size()
String[]
sortedValues()
Get a sorted array of the values in this StringSet.String
toString()
String[]
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
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
-