public interface FieldExtractor<T>
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Example
's metadata field.
Principally used to pull out Strings and floats for example names and weights respectively.Modifier and Type | Method and Description |
---|---|
Optional<T> |
extract(ColumnarIterator.Row row)
Returns Optional which is filled if extraction succeeded.
|
String |
getMetadataName()
Gets the metadata key name.
|
Class<T> |
getValueType()
Gets the class of the value produced by this extractor.
|
String getMetadataName()
Example
if it is given to RowProcessor
.Class<T> getValueType()
Optional<T> extract(ColumnarIterator.Row row)
row
- The raw row from which to extract a valueCopyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.