
V - Vector typepublic class VectorTypeInformation<V extends FeatureVector<?>> extends SimpleTypeInformation<V>
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxdim
Maximum dimensionality.
|
protected int |
mindim
Minimum dimensionality.
|
| Constructor and Description |
|---|
VectorTypeInformation(Class<? super V> cls)
Constructor for a type request without dimensionality constraints.
|
VectorTypeInformation(Class<? super V> cls,
ByteBufferSerializer<? super V> serializer,
int mindim,
int maxdim)
Constructor for an actual type.
|
VectorTypeInformation(Class<? super V> cls,
int mindim,
int maxdim)
Constructor for a type request.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAssignableFrom(Object other)
Test whether this type is assignable from a given object instance.
|
boolean |
isAssignableFromType(TypeInformation type)
Test whether this type is assignable from another type.
|
int |
maxdim()
Get the maximum dimensionality of the occurring vectors.
|
int |
mindim()
Get the minimum dimensionality of the occurring vectors.
|
String |
toString() |
cast, getLabel, getRestrictionClass, getSerializer, setSerializerprotected final int mindim
protected final int maxdim
public VectorTypeInformation(Class<? super V> cls, ByteBufferSerializer<? super V> serializer, int mindim, int maxdim)
cls - base classserializer - Serializermindim - Minimum dimensionalitymaxdim - Maximum dimensionalitypublic VectorTypeInformation(Class<? super V> cls, int mindim, int maxdim)
cls - base classmindim - Minimum dimensionalitymaxdim - Maximum dimensionalitypublic boolean isAssignableFromType(TypeInformation type)
TypeInformationisAssignableFromType in interface TypeInformationisAssignableFromType in class SimpleTypeInformation<V extends FeatureVector<?>>type - Other typepublic boolean isAssignableFrom(Object other)
TypeInformationisAssignableFrom in interface TypeInformationisAssignableFrom in class SimpleTypeInformation<V extends FeatureVector<?>>other - Other objectpublic int mindim()
public int maxdim()
public String toString()
toString in class SimpleTypeInformation<V extends FeatureVector<?>>