public class PigTable extends AbstractTable implements TranslatableTable
LOAD statement.
Only the default load function is supported at this point (PigStorage()).
Only VARCHAR (CHARARRAY in Pig) type supported at this point.
PigTableFactory| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
fieldNames |
private java.lang.String |
filePath |
| Constructor and Description |
|---|
PigTable(java.lang.String filePath,
java.lang.String[] fieldNames)
Creates a PigTable.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFilePath() |
RelDataType |
getRowType(RelDataTypeFactory typeFactory) |
RelNode |
toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable) |
getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAggprivate final java.lang.String filePath
private final java.lang.String[] fieldNames
public PigTable(java.lang.String filePath,
java.lang.String[] fieldNames)
public RelDataType getRowType(RelDataTypeFactory typeFactory)
getRowType in interface Tablepublic java.lang.String getFilePath()
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable)
toRel in interface TranslatableTableCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.