public class TableDef
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
TableDef.Builder
RecordBuilder for TableDef instances.
|
Modifier and Type | Field and Description |
---|---|
List<ColumnDef> |
columns
Deprecated.
|
String |
description
Deprecated.
|
long |
id
Deprecated.
|
String |
name
Deprecated.
|
int |
sampleTime
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
TableDef()
Default constructor.
|
TableDef(Long id,
String name,
String description,
List<ColumnDef> columns,
Integer sampleTime)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
List<ColumnDef> |
getColumns()
Gets the value of the 'columns' field.
|
String |
getDescription()
Gets the value of the 'description' field.
|
Long |
getId()
Gets the value of the 'id' field.
|
String |
getName()
Gets the value of the 'name' field.
|
Integer |
getSampleTime()
Gets the value of the 'sampleTime' field.
|
org.apache.avro.Schema |
getSchema() |
static TableDef.Builder |
newBuilder()
Creates a new TableDef RecordBuilder.
|
static TableDef.Builder |
newBuilder(TableDef.Builder other)
Creates a new TableDef RecordBuilder by copying an existing Builder.
|
static TableDef.Builder |
newBuilder(TableDef other)
Creates a new TableDef RecordBuilder by copying an existing TableDef instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setColumns(List<ColumnDef> value)
Sets the value of the 'columns' field.
|
void |
setDescription(String value)
Sets the value of the 'description' field.
|
void |
setId(Long value)
Sets the value of the 'id' field.
|
void |
setName(String value)
Sets the value of the 'name' field.
|
void |
setSampleTime(Integer value)
Sets the value of the 'sampleTime' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public long id
@Deprecated public String name
@Deprecated public String description
@Deprecated public List<ColumnDef> columns
@Deprecated public int sampleTime
public TableDef()
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 Long getId()
public void setId(Long value)
value
- the value to set.public String getName()
public void setName(String value)
value
- the value to set.public String getDescription()
public void setDescription(String value)
value
- the value to set.public List<ColumnDef> getColumns()
public void setColumns(List<ColumnDef> value)
value
- the value to set.public Integer getSampleTime()
public void setSampleTime(Integer value)
value
- the value to set.public static TableDef.Builder newBuilder()
public static TableDef.Builder newBuilder(TableDef.Builder other)
other
- The existing builder to copy.public static TableDef.Builder newBuilder(TableDef 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.