public class Projection extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
source_table_vcolumn_name |
| Constructor and Description |
|---|
Projection(Schema s)
ctor for full projection
|
Projection(Schema s,
String projection)
ctor for partial projection
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final String source_table_vcolumn_name
public Projection(Schema s)
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 int getNumColumns()
public static int getNumColumns(String projection)
public static String getProjectionStr(String[] names)
public static Schema toSchema(String projection) throws ParseException
ParseExceptionCopyright © 2007-2012 The Apache Software Foundation