public class QueryProfileFieldType extends FieldType
booleanType, doubleType, floatType, genericQueryProfileType, integerType, longType, queryType, stringType
Constructor and Description |
---|
QueryProfileFieldType() |
QueryProfileFieldType(QueryProfileType type) |
Modifier and Type | Method and Description |
---|---|
CompiledQueryProfile |
convertFrom(Object object,
CompiledQueryProfileRegistry registry)
Converts the given type to an instance of this type, if possible.
|
QueryProfile |
convertFrom(Object object,
QueryProfileRegistry registry)
Converts the given type to an instance of this type, if possible.
|
boolean |
equals(Object o) |
static QueryProfileFieldType |
fromString(String queryProfileName,
QueryProfileTypeRegistry registry) |
QueryProfileType |
getQueryProfileType()
Returns the query profile type of this, or null if any type works
|
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, isLegalFieldValue
public QueryProfileFieldType()
public QueryProfileFieldType(QueryProfileType type)
public static QueryProfileFieldType fromString(String queryProfileName, QueryProfileTypeRegistry registry)
public QueryProfileType getQueryProfileType()
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 CompiledQueryProfile convertFrom(Object object, CompiledQueryProfileRegistry registry)
FieldType
convertFrom
in class FieldType
public QueryProfile convertFrom(Object object, QueryProfileRegistry registry)
FieldType
convertFrom
in class FieldType
Copyright © 2018. All rights reserved.