public class HCatToRow
extends java.lang.Object
HCatRecords
to Rows
.Constructor and Description |
---|
HCatToRow() |
Modifier and Type | Method and Description |
---|---|
static PTransform<PCollection<? extends org.apache.hive.hcatalog.data.HCatRecord>,PCollection<Row>> |
forSchema(Schema schema)
|
static PTransform<PBegin,PCollection<Row>> |
fromSpec(HCatalogIO.Read readSpec)
|
public static PTransform<PCollection<? extends org.apache.hive.hcatalog.data.HCatRecord>,PCollection<Row>> forSchema(Schema schema)
PTransform
that converts incoming HCatRecords
to Rows
using specified schema.
If there is a mismatch between the schema specified here and actual record schema, or internal representation and schema, then runtime errors will happen.
public static PTransform<PBegin,PCollection<Row>> fromSpec(HCatalogIO.Read readSpec)
HCatalogIO.read()
to convert HCatRecords
to Rows
.
Eventually this should become part of the IO, e.g. HCatalogIO.readRows()
.