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