public class BigintEnumType extends AbstractLongType implements EnumType<Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
BigintEnumType.LongEnumMap |
| Constructor and Description |
|---|
BigintEnumType(BigintEnumType.LongEnumMap enumMap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDisplayName()
Returns the name of this type that should be displayed to end-users.
|
Optional<String> |
getEnumKeyForValue(Long value) |
Map<String,Long> |
getEnumMap() |
Object |
getObjectValue(SqlFunctionProperties properties,
Block block,
int position)
Gets an object representation of the type value in the
block
position. |
Type |
getValueType() |
int |
hashCode() |
appendTo, compareTo, createBlockBuilder, createBlockBuilder, createFixedSizeBlockBuilder, equalTo, getFixedSize, getLong, getLongUnchecked, getSlice, hash, hash, isComparable, isOrderable, writeLonggetTypeSignaturegetBlockUnchecked, getBoolean, getBooleanUnchecked, getDouble, getDoubleUnchecked, getJavaType, getObject, getSliceUnchecked, getTypeParameters, toString, writeBoolean, writeDouble, writeObject, writeSlice, writeSliceclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendTo, compareTo, createBlockBuilder, createBlockBuilder, equalTo, getBlockUnchecked, getBoolean, getBooleanUnchecked, getDouble, getDoubleUnchecked, getJavaType, getLong, getLongUnchecked, getObject, getSlice, getSliceUnchecked, getTypeParameters, getTypeSignature, hash, isComparable, isOrderable, writeBoolean, writeDouble, writeLong, writeObject, writeSlice, writeSlicepublic BigintEnumType(BigintEnumType.LongEnumMap enumMap)
public Map<String,Long> getEnumMap()
getEnumMap in interface EnumType<Long>public Optional<String> getEnumKeyForValue(Long value)
getEnumKeyForValue in interface EnumType<Long>public Object getObjectValue(SqlFunctionProperties properties, Block block, int position)
Typeblock
position. This is the value returned to the user via the
REST endpoint and therefore must be JSON serializable.getObjectValue in interface Typepublic Type getValueType()
getValueType in interface EnumType<Long>public String getDisplayName()
TypegetDisplayName in interface TypegetDisplayName in class AbstractTypepublic int hashCode()
hashCode in class AbstractTypepublic boolean equals(Object o)
equals in class AbstractTypeCopyright © 2012–2022. All rights reserved.