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 without size constraints.
|
VectorTypeInformation(Class<? super V> cls,
ByteBufferSerializer<? super V> serializer)
Constructor without size constraints.
|
VectorTypeInformation(Class<? super V> cls,
ByteBufferSerializer<? super V> serializer,
int mindim,
int maxdim)
Constructor.
|
VectorTypeInformation(Class<? super V> cls,
int mindim,
int maxdim)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <T extends FeatureVector<?,?>> |
get(Class<T> cls)
Pseudo constructor that is often convenient to use when T is not completely known.
|
static <T extends FeatureVector<?,?>> |
get(Class<T> cls,
int mindim,
int maxdim)
Pseudo constructor that is often convenient to use when T is not completely known.
|
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
protected 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, ByteBufferSerializer<? super V> serializer)
cls
- base classserializer
- Serializerpublic VectorTypeInformation(Class<? super V> cls, int mindim, int maxdim)
cls
- base classmindim
- Minimum dimensionalitymaxdim
- Maximum dimensionalitypublic boolean isAssignableFromType(TypeInformation type)
TypeInformation
isAssignableFromType
in interface TypeInformation
isAssignableFromType
in class SimpleTypeInformation<V extends FeatureVector<?,?>>
type
- Other typepublic boolean isAssignableFrom(Object other)
TypeInformation
isAssignableFrom
in interface TypeInformation
isAssignableFrom
in class SimpleTypeInformation<V extends FeatureVector<?,?>>
other
- Other objectpublic int mindim()
public int maxdim()
public static <T extends FeatureVector<?,?>> VectorTypeInformation<T> get(Class<T> cls, int mindim, int maxdim)
T
- Typecls
- Class restrictionmindim
- Minimum dimensionalitymaxdim
- Maximum dimensionalitypublic static <T extends FeatureVector<?,?>> VectorTypeInformation<T> get(Class<T> cls)
T
- Typecls
- Class restrictionpublic String toString()
toString
in class SimpleTypeInformation<V extends FeatureVector<?,?>>