public class ColumnDef
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
ColumnDef.Builder
RecordBuilder for ColumnDef instances.
|
Modifier and Type | Field and Description |
---|---|
String |
description
Deprecated.
|
String |
name
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Type |
type
Deprecated.
|
String |
unitOfMeasurement
Deprecated.
|
Constructor and Description |
---|
ColumnDef()
Default constructor.
|
ColumnDef(String name,
Type type,
String unitOfMeasurement,
String description)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
String |
getDescription()
Gets the value of the 'description' field.
|
String |
getName()
Gets the value of the 'name' field.
|
org.apache.avro.Schema |
getSchema() |
Type |
getType()
Gets the value of the 'type' field.
|
String |
getUnitOfMeasurement()
Gets the value of the 'unitOfMeasurement' field.
|
static ColumnDef.Builder |
newBuilder()
Creates a new ColumnDef RecordBuilder.
|
static ColumnDef.Builder |
newBuilder(ColumnDef.Builder other)
Creates a new ColumnDef RecordBuilder by copying an existing Builder.
|
static ColumnDef.Builder |
newBuilder(ColumnDef other)
Creates a new ColumnDef RecordBuilder by copying an existing ColumnDef instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setDescription(String value)
Sets the value of the 'description' field.
|
void |
setName(String value)
Sets the value of the 'name' field.
|
void |
setType(Type value)
Sets the value of the 'type' field.
|
void |
setUnitOfMeasurement(String value)
Sets the value of the 'unitOfMeasurement' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String name
@Deprecated public Type type
@Deprecated public String unitOfMeasurement
@Deprecated public String description
public ColumnDef()
newBuilder()
.public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public String getName()
public void setName(String value)
value
- the value to set.public Type getType()
public void setType(Type value)
value
- the value to set.public String getUnitOfMeasurement()
public void setUnitOfMeasurement(String value)
value
- the value to set.public String getDescription()
public void setDescription(String value)
value
- the value to set.public static ColumnDef.Builder newBuilder()
public static ColumnDef.Builder newBuilder(ColumnDef.Builder other)
other
- The existing builder to copy.public static ColumnDef.Builder newBuilder(ColumnDef other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
Copyright © 2018 SPF4J. All rights reserved.