public class DatasetUtils extends Object
| Constructor and Description |
|---|
DatasetUtils() |
| Modifier and Type | Method and Description |
|---|---|
static uno.informatics.data.Feature |
copyFeature(uno.informatics.data.Feature feature)
Copies a feature and its properties, validating at the same time.
|
static ColumnFeature |
createDefaultColumnFeature(String id,
String name,
int possibleDataTypes)
Creates a default column feature from a name and a bit mask of possible
data types
|
static uno.informatics.data.Feature |
createDefaultFeature(String id,
String name,
uno.informatics.data.DataType dataType,
uno.informatics.data.ScaleType scaleType)
Creates a default feature from a name and a bit mask of possible data
types
|
static uno.informatics.data.Feature |
createFeature(ColumnFeature columnFeature)
Converts a column feature to simple feature
|
static List<uno.informatics.data.Feature> |
createFeatures(List<ColumnFeature> columnFeatures)
Converts column features to simple features
|
static int |
getConversionType(uno.informatics.data.Feature scale) |
static int |
getConversionType(uno.informatics.data.Scale scale) |
static int |
getConversionTypes(uno.informatics.data.DataType... dataTypes) |
static int[] |
getConversionTypes(uno.informatics.data.Feature rowHeaderFeature,
List<? extends uno.informatics.data.Feature> features) |
static int[] |
getConversionTypes(List<? extends uno.informatics.data.Feature> features) |
static List<uno.informatics.data.DataType> |
getDataTypes(int conversionTypes) |
static List<uno.informatics.data.ScaleType> |
getScaleTypes(uno.informatics.data.DataType dataType) |
public static ColumnFeature createDefaultColumnFeature(String id, String name, int possibleDataTypes)
id - the id of the column featurename - the name of the column featurepossibleDataTypes - a bit mask of possible data typespublic static uno.informatics.data.Feature createDefaultFeature(String id, String name, uno.informatics.data.DataType dataType, uno.informatics.data.ScaleType scaleType)
name - the name of the featuredataType - the data type of the featurescaleType - the scale type of the featurepublic static List<uno.informatics.data.Feature> createFeatures(List<ColumnFeature> columnFeatures)
columnFeatures - list of column featurespublic static uno.informatics.data.Feature createFeature(ColumnFeature columnFeature)
columnFeature - a column feature to be convertedpublic static final int getConversionType(uno.informatics.data.Feature scale)
public static final int getConversionType(uno.informatics.data.Scale scale)
public static final int getConversionTypes(uno.informatics.data.DataType... dataTypes)
public static final int[] getConversionTypes(List<? extends uno.informatics.data.Feature> features)
public static final int[] getConversionTypes(uno.informatics.data.Feature rowHeaderFeature,
List<? extends uno.informatics.data.Feature> features)
public static final List<uno.informatics.data.DataType> getDataTypes(int conversionTypes)
public static final List<uno.informatics.data.ScaleType> getScaleTypes(uno.informatics.data.DataType dataType)
public static final uno.informatics.data.Feature copyFeature(uno.informatics.data.Feature feature)
throws uno.informatics.data.dataset.DatasetException
feature - feature to copyuno.informatics.data.dataset.DatasetException - if the feature is invalidCopyright © 2016. All rights reserved.