Class QueryProfileFieldType
java.lang.Object
com.yahoo.search.query.profile.types.FieldType
com.yahoo.search.query.profile.types.QueryProfileFieldType
Represents a query profile field type which is a reference to a query profile.
The reference may optionally specify the type of the referred query profile.
- Author:
- bratseth
-
Field Summary
Fields inherited from class com.yahoo.search.query.profile.types.FieldType
booleanType, doubleType, floatType, genericQueryProfileType, integerType, longType, queryType, stringType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertFrom(Object object, QueryProfileRegistry registry) Converts the given type to an instance of this type, if possible.convertFrom(Object object, ConversionContext context) Converts the given type to an instance of this type, if possible.booleanstatic QueryProfileFieldTypefromString(String queryProfileName, QueryProfileTypeRegistry registry) Returns the query profile type of this, or null if any type worksClass<?>Returns the class of instance values of this field typeinthashCode()Returns a string representation of this type which can be converted back to a type class byFieldType.fromString(java.lang.String, com.yahoo.search.query.profile.types.QueryProfileTypeRegistry)Returns a string describing possible instances of this type, suitable for user error messagestoString()Methods inherited from class com.yahoo.search.query.profile.types.FieldType
asTensorType, isLegalFieldValue
-
Constructor Details
-
QueryProfileFieldType
public QueryProfileFieldType() -
QueryProfileFieldType
-
-
Method Details
-
fromString
public static QueryProfileFieldType fromString(String queryProfileName, QueryProfileTypeRegistry registry) -
getQueryProfileType
Returns the query profile type of this, or null if any type works -
getValueClass
Description copied from class:FieldTypeReturns the class of instance values of this field type- Specified by:
getValueClassin classFieldType
-
stringValue
Description copied from class:FieldTypeReturns a string representation of this type which can be converted back to a type class byFieldType.fromString(java.lang.String, com.yahoo.search.query.profile.types.QueryProfileTypeRegistry)- Specified by:
stringValuein classFieldType
-
toString
-
toInstanceDescription
Description copied from class:FieldTypeReturns a string describing possible instances of this type, suitable for user error messages- Specified by:
toInstanceDescriptionin classFieldType
-
convertFrom
Description copied from class:FieldTypeConverts the given type to an instance of this type, if possible. Returns null if not possible.- Specified by:
convertFromin classFieldType
-
convertFrom
Description copied from class:FieldTypeConverts the given type to an instance of this type, if possible. Returns null if not possible.- Specified by:
convertFromin classFieldType
-
hashCode
public int hashCode() -
equals
-