Package elki.datasource.filter
Class FilterUtil
- java.lang.Object
-
- elki.datasource.filter.FilterUtil
-
public final class FilterUtil extends java.lang.Object
Utilities for implementing filters.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FilterUtil()
Fake constructor: do not instantiate.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
findLabelColumn(BundleMeta meta)
Find the first "label-like" column (matchingTypeUtil.GUESSED_LABEL
) in a type information.static int
findLabelColumn(MultipleObjectsBundle bundle)
Find the first "label-like" column (matchingTypeUtil.GUESSED_LABEL
) in a bundle.static <V extends NumberVector>
NumberVector.Factory<V>guessFactory(SimpleTypeInformation<V> in)
Try to guess the appropriate factory.
-
-
-
Method Detail
-
guessFactory
public static <V extends NumberVector> NumberVector.Factory<V> guessFactory(SimpleTypeInformation<V> in)
Try to guess the appropriate factory.- Type Parameters:
V
- Vector type- Parameters:
in
- Input type- Returns:
- Factory
-
findLabelColumn
public static int findLabelColumn(MultipleObjectsBundle bundle)
Find the first "label-like" column (matchingTypeUtil.GUESSED_LABEL
) in a bundle.- Parameters:
bundle
- Bundle- Returns:
- Column number, or
-1
.
-
findLabelColumn
public static int findLabelColumn(BundleMeta meta)
Find the first "label-like" column (matchingTypeUtil.GUESSED_LABEL
) in a type information.- Parameters:
meta
- Meta data- Returns:
- Column number, or
-1
.
-
-