public class IdentityProcessor extends Object implements FieldProcessor
FieldProcessor
which converts the field name and value into a feature with a value of FEATURE_VALUE
.FieldProcessor.GeneratedFeatureType
Modifier and Type | Field and Description |
---|---|
static double |
FEATURE_VALUE
The value of the emitted features.
|
NAMESPACE
Constructor and Description |
---|
IdentityProcessor(String fieldName)
Constructs a field processor which emits a single feature with a specific value
and uses the field name and field value as the feature name.
|
Modifier and Type | Method and Description |
---|---|
IdentityProcessor |
copy(String newFieldName)
Returns a copy of this FieldProcessor bound to the supplied newFieldName.
|
FieldProcessor.GeneratedFeatureType |
getFeatureType()
Returns the feature type this FieldProcessor generates.
|
String |
getFieldName()
Gets the field name this FieldProcessor uses.
|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
List<ColumnarFeature> |
process(String value)
Processes the field value and generates a (possibly empty) list of
ColumnarFeature s. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNumNamespaces
public static final double FEATURE_VALUE
public IdentityProcessor(String fieldName)
fieldName
- The field name to read.public String getFieldName()
FieldProcessor
getFieldName
in interface FieldProcessor
public List<ColumnarFeature> process(String value)
FieldProcessor
ColumnarFeature
s.process
in interface FieldProcessor
value
- The field value to process.ColumnarFeature
s.public FieldProcessor.GeneratedFeatureType getFeatureType()
FieldProcessor
getFeatureType
in interface FieldProcessor
public IdentityProcessor copy(String newFieldName)
FieldProcessor
copy
in interface FieldProcessor
newFieldName
- The new field name for the copy.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.