Package | Description |
---|---|
org.apache.pig.data |
This package contains implementations of Pig specific data types as well as
support functions for reading, writing, and using all Pig data types.
|
org.apache.pig.impl.logicalLayer.schema |
Modifier and Type | Method and Description |
---|---|
static Schema.FieldSchema |
DataType.determineFieldSchema(Object o)
Determine the field schema of an object
|
static Schema.FieldSchema |
DataType.determineFieldSchema(ResourceSchema.ResourceFieldSchema rcFieldSchema)
Determine the field schema of an ResourceFieldSchema
|
Modifier and Type | Method and Description |
---|---|
Schema.FieldSchema |
Schema.FieldSchema.mergePrefixFieldSchema(Schema.FieldSchema otherFs)
Recursively prefix merge two schemas
|
Schema.FieldSchema |
Schema.FieldSchema.mergePrefixFieldSchema(Schema.FieldSchema otherFs,
boolean otherTakesAliasPrecedence)
Recursively prefix merge two schemas
|
Schema.FieldSchema |
Schema.FieldSchema.mergePrefixFieldSchema(Schema.FieldSchema otherFs,
boolean otherTakesAliasPrecedence,
boolean allowMergeableTypes)
Recursively prefix merge two schemas
|
Schema |
Schema.mergePrefixSchema(Schema other,
boolean otherTakesAliasPrecedence)
Recursively prefix merge two schemas
|
Schema |
Schema.mergePrefixSchema(Schema other,
boolean otherTakesAliasPrecedence,
boolean allowMergeableTypes)
Recursively prefix merge two schemas
|
static Schema |
Schema.mergeSchema(Schema schema,
Schema other,
boolean otherTakesAliasPrecedence,
boolean allowDifferentSizeMerge,
boolean allowIncompatibleTypes)
Recursively merge two schemas
|
static Schema |
Schema.mergeSchemaByAlias(Schema schema1,
Schema schema2)
Merges two schemas using their column aliases
(unlike mergeSchema(..) functions which merge using positions)
Schema will not be merged if types are incompatible,
as per DataType.mergeType(..)
For Tuples and Bags, SubSchemas have to be equal be considered compatible
|
static Schema |
Schema.mergeSchemasByAlias(Collection<Schema> schemas)
Merges collection of schemas using their column aliases
(unlike mergeSchema(..) functions which merge using positions)
Schema will not be merged if types are incompatible,
as per DataType.mergeType(..)
For Tuples and Bags, SubSchemas have to be equal be considered compatible
|
Copyright © 2007-2012 The Apache Software Foundation