Class IndexExtractor

java.lang.Object
org.tribuo.data.columnar.extractors.IndexExtractor
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<Long>

public class IndexExtractor extends Object implements FieldExtractor<Long>
An Extractor with special casing for loading the index from a Row. The index is written out as a Long.

This is the row wise count, i.e., the number of examples that the data source has processed, rather than anything extracted from the data.

  • Constructor Details

    • IndexExtractor

      public IndexExtractor(String metadataName)
      Extracts the index, writing to the supplied metadata field name.
      Parameters:
      metadataName - The metadata field to write to.
    • IndexExtractor

      public IndexExtractor()
      Extracts the index writing to the default metadata field name Example.NAME.
  • Method Details