public class FloatExtractor extends SimpleFieldExtractor<Float>
Returns an empty optional if the value failed to parse.
fieldName, metadataName
Constructor and Description |
---|
FloatExtractor(String fieldName)
Extracts a float value from the supplied field name.
|
FloatExtractor(String fieldName,
String metadataName)
Extracts a float value from the supplied field name.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<Float> |
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<Float> |
getValueType()
Gets the class of the value produced by this extractor.
|
extract, getFieldName, getMetadataName, postConfig, toString
public FloatExtractor(String fieldName)
fieldName
- The field name to inspect.public Class<Float> getValueType()
FieldExtractor
protected Optional<Float> extractField(String value)
SimpleFieldExtractor
Optional.empty()
if it failed to parse.extractField
in class SimpleFieldExtractor<Float>
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.