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:
Cloneable
,Comparable<DataType>
A DataType containing a tensor type
- Author:
- bratseth
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a new, empty FieldValue of this typeboolean
com.yahoo.tensor.TensorType
Returns the type of the tensor this field can holdClass<? extends TensorFieldValue>
int
hashCode()
boolean
isValueCompatible
(FieldValue value) Methods inherited from class com.yahoo.document.DataType
buildFieldPath, compareTo, createByReflection, createFieldValue, getArray, getCode, getId, getMap, getName, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, isAssignableFrom, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, toString, visitMembers
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, onDeserialize, onGetClassId, onSerialize, putUtf8, registerClass, registerClass, serialize, serializeOptional, serializeWithId
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static int classId
-
-
Constructor Details
-
TensorDataType
public TensorDataType(com.yahoo.tensor.TensorType tensorType)
-
-
Method Details
-
clone
-
createFieldValue
Description copied from class:DataType
Creates a new, empty FieldValue of this type- Specified by:
createFieldValue
in classDataType
-
getValueClass
- Specified by:
getValueClass
in classDataType
-
isValueCompatible
- Specified by:
isValueCompatible
in classDataType
-
getTensorType
public com.yahoo.tensor.TensorType getTensorType()Returns the type of the tensor this field can hold -
equals
-
hashCode
public int hashCode()
-