|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.ResourceSchema.ResourceFieldSchema
public static class ResourceSchema.ResourceFieldSchema
Constructor Summary | |
---|---|
ResourceSchema.ResourceFieldSchema()
Construct an empty field schema. |
|
ResourceSchema.ResourceFieldSchema(LogicalSchema.LogicalFieldSchema fieldSchema)
Construct using a LogicalSchema.LogicalFieldSchema as the template. |
|
ResourceSchema.ResourceFieldSchema(Schema.FieldSchema fieldSchema)
Construct using a Schema.FieldSchema as the template. |
Method Summary | |
---|---|
String |
calcCastString()
|
String |
getDescription()
Get a free form text description of this field. |
String |
getName()
Get the name of this field. |
ResourceSchema |
getSchema()
Get the schema for this field. |
byte |
getType()
Get the type of this field. |
ResourceSchema.ResourceFieldSchema |
setDescription(String description)
Set the description |
ResourceSchema.ResourceFieldSchema |
setName(String name)
Set the name of this filed. |
ResourceSchema.ResourceFieldSchema |
setSchema(ResourceSchema schema)
Set the schema for this field. |
ResourceSchema.ResourceFieldSchema |
setType(byte type)
Set the type of this field |
static void |
throwInvalidSchemaException()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceSchema.ResourceFieldSchema()
public ResourceSchema.ResourceFieldSchema(Schema.FieldSchema fieldSchema)
Schema.FieldSchema
as the template.
fieldSchema
- fieldSchema to copy frompublic ResourceSchema.ResourceFieldSchema(LogicalSchema.LogicalFieldSchema fieldSchema)
LogicalSchema.LogicalFieldSchema
as the template.
fieldSchema
- fieldSchema to copy fromMethod Detail |
---|
public String getName()
public ResourceSchema.ResourceFieldSchema setName(String name)
name
- new name
public byte getType()
DataType
static final bytepublic ResourceSchema.ResourceFieldSchema setType(byte type)
type
- new type
public String getDescription()
public ResourceSchema.ResourceFieldSchema setDescription(String description)
description
- new description
public ResourceSchema getSchema()
public ResourceSchema.ResourceFieldSchema setSchema(ResourceSchema schema) throws IOException
schema
- new schema
IOException
public static void throwInvalidSchemaException() throws FrontendException
FrontendException
public String toString()
toString
in class Object
public String calcCastString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |