public class DoubleFieldProcessor extends Object implements FieldProcessor
Returns an empty list if the value failed to parse or was empty.
FieldProcessor.GeneratedFeatureType
NAMESPACE
Constructor and Description |
---|
DoubleFieldProcessor(String fieldName)
Constructs a field processor which extracts a single double valued feature from the specified field name.
|
Modifier and Type | Method and Description |
---|---|
DoubleFieldProcessor |
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 DoubleFieldProcessor(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 DoubleFieldProcessor 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.