public static class ResourceSchema.ResourceFieldSchema extends Object implements Serializable
Constructor and Description |
---|
ResourceFieldSchema()
Construct an empty field schema.
|
ResourceFieldSchema(LogicalSchema.LogicalFieldSchema fieldSchema)
Construct using a
LogicalSchema.LogicalFieldSchema as the template. |
ResourceFieldSchema(Schema.FieldSchema fieldSchema)
Construct using a
Schema.FieldSchema as the template. |
Modifier and Type | Method and Description |
---|---|
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() |
public ResourceFieldSchema()
public ResourceFieldSchema(Schema.FieldSchema fieldSchema)
Schema.FieldSchema
as the template.fieldSchema
- fieldSchema to copy frompublic ResourceFieldSchema(LogicalSchema.LogicalFieldSchema fieldSchema)
LogicalSchema.LogicalFieldSchema
as the template.fieldSchema
- fieldSchema to copy frompublic String getName()
public ResourceSchema.ResourceFieldSchema setName(String name)
name
- new namepublic byte getType()
DataType
static final bytepublic ResourceSchema.ResourceFieldSchema setType(byte type)
type
- new typepublic String getDescription()
public ResourceSchema.ResourceFieldSchema setDescription(String description)
description
- new descriptionpublic ResourceSchema getSchema()
public ResourceSchema.ResourceFieldSchema setSchema(ResourceSchema schema) throws IOException
schema
- new schemaIOException
public static void throwInvalidSchemaException() throws FrontendException
FrontendException
public String calcCastString()
Copyright © 2007-2017 The Apache Software Foundation