public class PrimitiveFieldType extends FieldType
Modifier and Type | Field and Description |
---|---|
private Class |
primitiveClass |
booleanType, doubleType, floatType, genericQueryProfileType, integerType, longType, queryType, stringType
Constructor and Description |
---|
PrimitiveFieldType(Class primitiveClass) |
Modifier and Type | Method and Description |
---|---|
Object |
convertFrom(Object object,
CompiledQueryProfileRegistry registry)
Converts the given type to an instance of this type, if possible.
|
Object |
convertFrom(Object object,
QueryProfileRegistry registry)
Converts the given type to an instance of this type, if possible.
|
private Object |
convertFromNumber(Number number) |
private Object |
convertFromString(String string) |
boolean |
equals(Object o) |
Class |
getValueClass()
Returns the class of instance values of this field type
|
int |
hashCode() |
String |
stringValue()
Returns a string representation of this type which can be converted back to a type class by
FieldType.fromString(java.lang.String, com.yahoo.search.query.profile.types.QueryProfileTypeRegistry) |
String |
toInstanceDescription()
Returns a string describing possible instances of this type, suitable for user error messages
|
String |
toString() |
asTensorType, fromString, isLegalFieldValue
private Class primitiveClass
PrimitiveFieldType(Class primitiveClass)
public Class getValueClass()
FieldType
getValueClass
in class FieldType
public String stringValue()
FieldType
FieldType.fromString(java.lang.String, com.yahoo.search.query.profile.types.QueryProfileTypeRegistry)
stringValue
in class FieldType
public String toInstanceDescription()
FieldType
toInstanceDescription
in class FieldType
public Object convertFrom(Object object, CompiledQueryProfileRegistry registry)
FieldType
convertFrom
in class FieldType
public Object convertFrom(Object object, QueryProfileRegistry registry)
FieldType
convertFrom
in class FieldType
Copyright © 2018. All rights reserved.