Package com.yahoo.document
Class TensorDataType
- java.lang.Object
-
- com.yahoo.vespa.objects.Selectable
-
- com.yahoo.vespa.objects.Identifiable
-
- com.yahoo.document.DataType
-
- com.yahoo.document.TensorDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<DataType>
public class TensorDataType extends DataType
A DataType containing a tensor type- Author:
- bratseth
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TensorDataType(com.yahoo.tensor.TensorType tensorType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorDataType
clone()
FieldValue
createFieldValue()
Creates a new, empty FieldValue of this typecom.yahoo.tensor.TensorType
getTensorType()
Returns the type of the tensor this field can holdjava.lang.Class<? extends TensorFieldValue>
getValueClass()
boolean
isValueCompatible(FieldValue value)
-
Methods inherited from class com.yahoo.document.DataType
buildFieldPath, compareTo, createByReflection, createFieldValue, equals, getArray, getCode, getId, getMap, getName, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, hashCode, isAssignableFrom, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, toString, visitMembers
-
-
-
-
Method Detail
-
clone
public TensorDataType clone()
-
createFieldValue
public FieldValue createFieldValue()
Description copied from class:DataType
Creates a new, empty FieldValue of this type- Specified by:
createFieldValue
in classDataType
-
getValueClass
public java.lang.Class<? extends TensorFieldValue> getValueClass()
- Specified by:
getValueClass
in classDataType
-
isValueCompatible
public boolean isValueCompatible(FieldValue value)
- Specified by:
isValueCompatible
in classDataType
-
getTensorType
public com.yahoo.tensor.TensorType getTensorType()
Returns the type of the tensor this field can hold
-
-