public static TensorDataType getTensor(TensorType type) {
        return new TensorDataType(type);
    }
Returns the given tensor type as a DataType
document/src/main/java/com/yahoo/document/DataType.java