|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.newplan.logical.relational.LogicalSchema.LogicalFieldSchema
public static class LogicalSchema.LogicalFieldSchema
| Field Summary | |
|---|---|
String |
alias
|
LogicalSchema |
schema
|
byte |
type
|
long |
uid
|
| Constructor Summary | |
|---|---|
LogicalSchema.LogicalFieldSchema(LogicalSchema.LogicalFieldSchema fs)
|
|
LogicalSchema.LogicalFieldSchema(String alias,
LogicalSchema schema,
byte type)
|
|
LogicalSchema.LogicalFieldSchema(String alias,
LogicalSchema schema,
byte type,
long uid)
|
|
| Method Summary | |
|---|---|
static boolean |
castable(LogicalSchema.LogicalFieldSchema inFs,
LogicalSchema.LogicalFieldSchema outFs)
Check if FieldSchema inFs is castable to outFs |
LogicalSchema.LogicalFieldSchema |
cloneUid()
|
LogicalSchema.LogicalFieldSchema |
deepCopy()
|
static boolean |
equals(LogicalSchema.LogicalFieldSchema fschema,
LogicalSchema.LogicalFieldSchema fother,
boolean relaxInner,
boolean relaxAlias)
Compare two field schema for equality |
boolean |
isEqual(Object other)
Equality is defined as having the same type and either the same schema or both null schema. |
boolean |
isEqual(Object other,
boolean compareAlias)
Equality is defined as having the same type and either the same schema or both null schema. |
static LogicalSchema.LogicalFieldSchema |
merge(LogicalSchema.LogicalFieldSchema fs1,
LogicalSchema.LogicalFieldSchema fs2,
LogicalSchema.MergeMode mode)
Merge two LogicalFieldSchema, the behavior of merge depends on mode. |
LogicalSchema.LogicalFieldSchema |
mergeUid(LogicalSchema.LogicalFieldSchema uidOnlyFieldSchema)
Adds the uid from FieldSchema argument to this FieldSchema If the argument is null, it stamps this FieldSchema with uid |
void |
normalize()
Old Pig field schema does not require a tuple schema inside a bag; Now it is required to have that; this method is to fill the gap |
void |
resetUid()
Rest uid of this fieldschema and inner schema |
void |
stampFieldSchema()
Give new value for uid if uid of field schema or those in fields schema of inner schema are -1. |
String |
toString()
|
String |
toString(boolean verbose)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String alias
public byte type
public long uid
public LogicalSchema schema
| Constructor Detail |
|---|
public LogicalSchema.LogicalFieldSchema(String alias,
LogicalSchema schema,
byte type)
public LogicalSchema.LogicalFieldSchema(LogicalSchema.LogicalFieldSchema fs)
public LogicalSchema.LogicalFieldSchema(String alias,
LogicalSchema schema,
byte type,
long uid)
| Method Detail |
|---|
public boolean isEqual(Object other)
public boolean isEqual(Object other,
boolean compareAlias)
other - compareAlias -
public String toString(boolean verbose)
public String toString()
toString in class Objectpublic void stampFieldSchema()
public LogicalSchema.LogicalFieldSchema mergeUid(LogicalSchema.LogicalFieldSchema uidOnlyFieldSchema)
throws FrontendException
uidOnlyFieldSchema -
FrontendExceptionpublic void resetUid()
public LogicalSchema.LogicalFieldSchema cloneUid()
public LogicalSchema.LogicalFieldSchema deepCopy()
public static boolean equals(LogicalSchema.LogicalFieldSchema fschema,
LogicalSchema.LogicalFieldSchema fother,
boolean relaxInner,
boolean relaxAlias)
relaxInner - If true, we don't check inner tuple schemasrelaxAlias - If true, we don't check aliases
public static boolean castable(LogicalSchema.LogicalFieldSchema inFs,
LogicalSchema.LogicalFieldSchema outFs)
inFs - outFs -
public static LogicalSchema.LogicalFieldSchema merge(LogicalSchema.LogicalFieldSchema fs1,
LogicalSchema.LogicalFieldSchema fs2,
LogicalSchema.MergeMode mode)
throws FrontendException
fs1 - In Load/Foreach, fs1 is user declared schema; in Union, fs1 is left sidefs2 - In Load/Foreach, fs1 is inferred schema; in Union, fs1 is left sidemode - merge mode
FrontendExceptionpublic void normalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||