public class DoubleExtractor extends SimpleFieldExtractor<Double>
Returns an empty optional if the value failed to parse.
fieldName, metadataName
Constructor and Description |
---|
DoubleExtractor(String fieldName)
Extracts a double value from the supplied field name.
|
DoubleExtractor(String fieldName,
String metadataName)
Extracts a double value from the supplied field name.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<Double> |
extractField(String value)
Extracts the field value, or returns
Optional.empty() if it failed to parse. |
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
Class<Double> |
getValueType()
Gets the class of the value produced by this extractor.
|
extract, getFieldName, getMetadataName, postConfig, toString
public DoubleExtractor(String fieldName)
fieldName
- The field name to inspect.public Class<Double> getValueType()
FieldExtractor
protected Optional<Double> extractField(String value)
SimpleFieldExtractor
Optional.empty()
if it failed to parse.extractField
in class SimpleFieldExtractor<Double>
value
- The field value to read.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.