public class QueryFieldType extends FieldType
booleanType, doubleType, floatType, genericQueryProfileType, integerType, longType, queryType, stringType
Constructor and Description |
---|
QueryFieldType() |
Modifier and Type | Method and Description |
---|---|
Object |
convertFrom(Object o,
CompiledQueryProfileRegistry registry)
Converts the given type to an instance of this type, if possible.
|
Object |
convertFrom(Object o,
QueryProfileRegistry registry)
Converts the given type to an instance of this type, if possible.
|
Class |
getValueClass()
Returns the class of instance values of this field type
|
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
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 o, QueryProfileRegistry registry)
FieldType
convertFrom
in class FieldType
public Object convertFrom(Object o, CompiledQueryProfileRegistry registry)
FieldType
convertFrom
in class FieldType
Copyright © 2018. All rights reserved.