Class TensorFieldType
java.lang.Object
com.yahoo.search.query.profile.types.FieldType
com.yahoo.search.query.profile.types.TensorFieldType
A tensor field type in a 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
ConstructorsConstructorDescriptionTensorFieldType(com.yahoo.tensor.TensorType type) Creates a tensor field type with information about the kind of tensor this will hold -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.tensor.TensorTypeReturns information about the type of tensor this will holdconvertFrom(Object o, QueryProfileRegistry registry) Converts the given type to an instance of this type, if possible.convertFrom(Object o, ConversionContext context) Converts the given type to an instance of this type, if possible.static TensorFieldTypeReturns the class of instance values of this field typeReturns 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
fromString, isLegalFieldValue
-
Constructor Details
-
TensorFieldType
public TensorFieldType(com.yahoo.tensor.TensorType type) Creates a tensor field type with information about the kind of tensor this will hold
-
-
Method Details
-
asTensorType
public com.yahoo.tensor.TensorType asTensorType()Returns information about the type of tensor this will hold- Overrides:
asTensorTypein classFieldType
-
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
-
fromTypeString
-