|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.zebra.types.Projection
public class Projection
Projection for Table and Column Group
| Field Summary | |
|---|---|
static String |
source_table_vcolumn_name
|
| Constructor Summary | |
|---|---|
Projection(Schema s)
ctor for full projection |
|
Projection(Schema s,
String projection)
ctor for partial projection |
|
| Method Summary | |
|---|---|
static int |
getColumnIndex(String projection,
String colname)
Get a column's index in a projection. |
Schema.ColumnSchema |
getColumnSchema(int i)
Get a particular projected column's schema |
int |
getNumColumns()
Get number of columns in the projection |
static int |
getNumColumns(String projection)
Get number of columns from a projection string |
Schema |
getProjectionSchema()
|
static String |
getProjectionStr(String[] names)
Get a projection string from a series of column names |
Schema |
getSchema()
accessor to the projected schema including invalid columns |
static Integer[] |
getVirtualColumnIndices(String projection)
Get the indices of all virtual columns |
static boolean |
isVirtualColumn(String name)
if a column name is on a virtual column |
static Schema |
toSchema(String projection)
Get schema from a projection string: all map keys are lost |
String |
toString()
Get the string representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String source_table_vcolumn_name
| Constructor Detail |
|---|
public Projection(Schema s)
public Projection(Schema s,
String projection)
throws org.apache.hadoop.zebra.parser.ParseException
org.apache.hadoop.zebra.parser.ParseException| Method Detail |
|---|
public static boolean isVirtualColumn(String name)
public static Integer[] getVirtualColumnIndices(String projection)
public Schema getSchema()
public Schema getProjectionSchema()
public Schema.ColumnSchema getColumnSchema(int i)
public String toString()
toString in class Objectpublic int getNumColumns()
public static int getNumColumns(String projection)
public static String getProjectionStr(String[] names)
public static Schema toSchema(String projection)
throws org.apache.hadoop.zebra.parser.ParseException
org.apache.hadoop.zebra.parser.ParseException
public static int getColumnIndex(String projection,
String colname)
projection - colname -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||