public static class ResourceSchema.ResourceFieldSchema
extends java.lang.Object
implements java.io.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 |
|---|---|
java.lang.String |
calcCastString() |
java.lang.String |
getDescription()
Get a free form text description of this field.
|
java.lang.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(java.lang.String description)
Set the description
|
ResourceSchema.ResourceFieldSchema |
setName(java.lang.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() |
java.lang.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 java.lang.String getName()
public ResourceSchema.ResourceFieldSchema setName(java.lang.String name)
name - new namepublic byte getType()
DataType static final bytepublic ResourceSchema.ResourceFieldSchema setType(byte type)
type - new typepublic java.lang.String getDescription()
public ResourceSchema.ResourceFieldSchema setDescription(java.lang.String description)
description - new descriptionpublic ResourceSchema getSchema()
public ResourceSchema.ResourceFieldSchema setSchema(ResourceSchema schema) throws java.io.IOException
schema - new schemajava.io.IOExceptionpublic static void throwInvalidSchemaException()
throws FrontendException
FrontendExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String calcCastString()
Copyright © 2007-2025 The Apache Software Foundation