public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static LOForEach |
addForEachAfter(LogicalPlan plan,
LogicalRelationalOperator op,
int branch,
java.util.Set<java.lang.Integer> columnsToDrop) |
static Schema |
fixSchemaAddTupleInBag(Schema sch)
If schema argument has fields where a bag does not contain a tuple schema,
it inserts a tuple schema.
|
static <C extends LogicalRelationalOperator> |
getLogicalRelationalOperators(LogicalPlan plan,
java.lang.Class<C> opClass)
Returns a LinkedList of operators contained within the physical plan
which implement the supplied class, in dependency order.
|
static Schema.FieldSchema |
translateFieldSchema(LogicalSchema.LogicalFieldSchema fs) |
static LogicalSchema.LogicalFieldSchema |
translateFieldSchema(Schema.FieldSchema fs) |
static Schema |
translateSchema(LogicalSchema schema)
This function translates the new LogicalSchema into old Schema format required
by PhysicalOperators
|
static LogicalSchema |
translateSchema(Schema schema) |
public static LogicalSchema translateSchema(Schema schema)
public static LogicalSchema.LogicalFieldSchema translateFieldSchema(Schema.FieldSchema fs)
public static Schema translateSchema(LogicalSchema schema)
schema
- LogicalSchema to be converted to SchemaFrontendException
public static Schema fixSchemaAddTupleInBag(Schema sch) throws FrontendException
sch
- FrontendException
public static Schema.FieldSchema translateFieldSchema(LogicalSchema.LogicalFieldSchema fs)
public static LOForEach addForEachAfter(LogicalPlan plan, LogicalRelationalOperator op, int branch, java.util.Set<java.lang.Integer> columnsToDrop) throws FrontendException
FrontendException
public static <C extends LogicalRelationalOperator> java.util.LinkedList<C> getLogicalRelationalOperators(LogicalPlan plan, java.lang.Class<C> opClass) throws FrontendException
plan
- opClass
- FrontendException
Copyright © 2007-2017 The Apache Software Foundation