@Experimental public abstract class HCatalogTable extends java.lang.Object implements BeamSqlTable
HCatalogIO
.
Reads HCatRecords
and converts them to Rows
.
Constructor and Description |
---|
HCatalogTable() |
Modifier and Type | Method and Description |
---|---|
PCollection<Row> |
buildIOReader(PBegin begin)
create a
PCollection<Row> from source. |
POutput |
buildIOWriter(PCollection<Row> input)
create a
IO.write() instance to write to target. |
abstract java.util.Map<java.lang.String,java.lang.String> |
config() |
abstract java.lang.String |
database() |
Schema |
getSchema()
Get the schema info of the table.
|
BeamTableStatistics |
getTableStatistics(PipelineOptions options)
Estimates the number of rows or the rate for unbounded Tables.
|
PCollection.IsBounded |
isBounded()
Whether this table is bounded (known to be finite) or unbounded (may or may not be finite).
|
abstract Schema |
schema() |
abstract java.lang.String |
table() |
public abstract Schema schema()
public abstract java.util.Map<java.lang.String,java.lang.String> config()
public abstract java.lang.String database()
public abstract java.lang.String table()
public PCollection<Row> buildIOReader(PBegin begin)
BeamSqlTable
PCollection<Row>
from source.buildIOReader
in interface BeamSqlTable
public POutput buildIOWriter(PCollection<Row> input)
BeamSqlTable
IO.write()
instance to write to target.buildIOWriter
in interface BeamSqlTable
public PCollection.IsBounded isBounded()
BeamSqlTable
isBounded
in interface BeamSqlTable
public BeamTableStatistics getTableStatistics(PipelineOptions options)
BeamSqlTable
getTableStatistics
in interface BeamSqlTable
public Schema getSchema()
BeamSqlTable
getSchema
in interface BeamSqlTable