Class RecordWithMetadata


  • public class RecordWithMetadata
    extends java.lang.Object
    Helper Class based on Row, it provides Metadata associated with each Record when reading from file(s) using ContextualTextIO.

    Fields:

    • recordValue: The value / contents of the record VALUE
    • resourceId: A resource descriptor representing which resource the record belongs to. See
    • recordNum: The ordinal number of the record in its file. RECORD_NUM RecordWithMetadata.ResourceIdRow for details.
    • rangeOffset: The starting offset of the range (split), which contained the record, when the record was read. RANGE_OFFSET
    • recordNumInOffset: The record number relative to the Range. (line number within the range) RECORD_NUM_IN_OFFSET
    • recordOffset: The offset of a record (the byte at which the record begins) in a file. This information can be useful if you wish to reconstruct the file. RANGE_OFFSET
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.beam.sdk.schemas.Schema getSchema()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecordWithMetadata

        public RecordWithMetadata()
    • Method Detail

      • getSchema

        public static org.apache.beam.sdk.schemas.Schema getSchema()