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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TensorDataTypeany()Returns the tensor data type representing any tensor.clone()Creates a new, empty FieldValue of this typebooleancom.yahoo.tensor.TensorTypeReturns the type of the tensor this field can holdClass<? extends TensorFieldValue>inthashCode()booleanisValueCompatible(FieldValue value) Methods inherited from class com.yahoo.document.DataType
buildFieldPath, compareTo, createByReflection, createFieldValue, getArray, getCode, getId, getMap, getName, getNestedType, getPrimitiveType, getTensor, getWeightedSet, getWeightedSet, isAssignableFrom, isAssignableTo, isMultivalue, isRegistered, lastPredefinedDataTypeId, register, register, setId, setName, toString, visitMembersMethods 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, serializeWithIdMethods 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:DataTypeCreates a new, empty FieldValue of this type- Specified by:
createFieldValuein classDataType
-
getValueClass
- Specified by:
getValueClassin classDataType
-
isValueCompatible
- Specified by:
isValueCompatiblein classDataType
-
getTensorType
public com.yahoo.tensor.TensorType getTensorType()Returns the type of the tensor this field can hold -
equals
-
hashCode
public int hashCode() -
any
Returns the tensor data type representing any tensor.
-