Class RecordWithMetadata
- java.lang.Object
-
- org.apache.beam.sdk.io.contextualtextio.RecordWithMetadata
-
public class RecordWithMetadata extends java.lang.ObjectHelper Class based onRow, it provides Metadata associated with each Record when reading from file(s) usingContextualTextIO.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_NUMRecordWithMetadata.ResourceIdRowfor 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
- recordValue: The value / contents of the record
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRANGE_OFFSETstatic java.lang.StringRECORD_NUMstatic java.lang.StringRECORD_NUM_IN_OFFSETstatic java.lang.StringRECORD_OFFSETstatic java.lang.StringRESOURCE_IDstatic java.lang.StringVALUE
-
Constructor Summary
Constructors Constructor Description RecordWithMetadata()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.beam.sdk.schemas.SchemagetSchema()
-
-
-
Field Detail
-
VALUE
public static final java.lang.String VALUE
- See Also:
- Constant Field Values
-
RESOURCE_ID
public static final java.lang.String RESOURCE_ID
- See Also:
- Constant Field Values
-
RECORD_NUM
public static final java.lang.String RECORD_NUM
- See Also:
- Constant Field Values
-
RANGE_OFFSET
public static final java.lang.String RANGE_OFFSET
- See Also:
- Constant Field Values
-
RECORD_NUM_IN_OFFSET
public static final java.lang.String RECORD_NUM_IN_OFFSET
- See Also:
- Constant Field Values
-
RECORD_OFFSET
public static final java.lang.String RECORD_OFFSET
- See Also:
- Constant Field Values
-
-