Class IdentityExtractor
java.lang.Object
org.tribuo.data.columnar.extractors.SimpleFieldExtractor<String>
org.tribuo.data.columnar.extractors.IdentityExtractor
- All Implemented Interfaces:
- com.oracle.labs.mlrg.olcut.config.Configurable,- com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,- FieldExtractor<String>
Extracts the field value and emits it as a String.
- 
Field SummaryFields inherited from class org.tribuo.data.columnar.extractors.SimpleFieldExtractorfieldName, metadataName
- 
Constructor SummaryConstructorsConstructorDescriptionIdentityExtractor(String fieldName) Extracts the String value from the supplied field.IdentityExtractor(String fieldName, String metadataName) Extracts the String value from the supplied field.
- 
Method SummaryModifier and TypeMethodDescriptionextractField(String value) Extracts the field value, or returnsOptional.empty()if it failed to parse.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenanceGets the class of the value produced by this extractor.Methods inherited from class org.tribuo.data.columnar.extractors.SimpleFieldExtractorextract, getFieldName, getMetadataName, postConfig, toString
- 
Constructor Details- 
IdentityExtractorExtracts the String value from the supplied field. Writes the metadata out using the field name as the key.- Parameters:
- fieldName- The field name to inspect.
 
- 
IdentityExtractorExtracts the String value from the supplied field. Writes the metadata out using the metadataName as the key.- Parameters:
- fieldName- The field name to inspect.
- metadataName- The metadata name to emit.
 
 
- 
- 
Method Details- 
getValueTypeDescription copied from interface:FieldExtractorGets the class of the value produced by this extractor.- Returns:
- The class of the value.
 
- 
extractFieldDescription copied from class:SimpleFieldExtractorExtracts the field value, or returnsOptional.empty()if it failed to parse.- Specified by:
- extractFieldin class- SimpleFieldExtractor<String>
- Parameters:
- value- The field value to read.
- Returns:
- The extracted value.
 
- 
getProvenance
 
-