Class ArrayFeatureBuilder
- java.lang.Object
-
- com.c12e.cortex.profiles.featurecatalog.featurebuilder.BaseFeatureBuilder
-
- com.c12e.cortex.profiles.featurecatalog.featurebuilder.ArrayFeatureBuilder
-
- All Implemented Interfaces:
FeatureBuilder
public class ArrayFeatureBuilder extends BaseFeatureBuilder
Implementation of aBaseFeatureBuilder
for handling general Array types by wrapping an existing FeatureBuilder.
-
-
Field Summary
-
Fields inherited from class com.c12e.cortex.profiles.featurecatalog.featurebuilder.BaseFeatureBuilder
DEFAULT_PROFILE_GROUP
-
-
Constructor Summary
Constructors Constructor Description ArrayFeatureBuilder(FeatureBuilder elementType)
Creates the ArrayFeatureBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDataType()
String representation of the SparkDataType
for the feature.java.lang.String
getFeatureType()
String representation of the feature type in Cortex (e.g.-
Methods inherited from class com.c12e.cortex.profiles.featurecatalog.featurebuilder.BaseFeatureBuilder
build, getRecordCount, inferFromSample, setDescription, setFieldName, setMaxValue, setMeanValue, setMinValue, setNotes, setObservations, setPctDom, setPctNull, setProfileGroup, setProject, setRecordCount, setSourceName, setStdDev, setUniqueCount
-
-
-
-
Constructor Detail
-
ArrayFeatureBuilder
public ArrayFeatureBuilder(FeatureBuilder elementType)
Creates the ArrayFeatureBuilder.- Parameters:
elementType
- feature information for elements in the Array
-
-
Method Detail
-
getDataType
public java.lang.String getDataType()
Description copied from interface:FeatureBuilder
String representation of the SparkDataType
for the feature.- Returns:
- String data type
-
getFeatureType
public java.lang.String getFeatureType()
Description copied from interface:FeatureBuilder
String representation of the feature type in Cortex (e.g. "numeric", "categorical").- Returns:
- String feature type
-
-