public class ASample
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
ASample.Builder
RecordBuilder for ASample instances.
|
Modifier and Type | Field and Description |
---|---|
int |
count
Deprecated.
|
int |
id
Deprecated.
|
AMethod |
method
Deprecated.
|
int |
parentId
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
ASample()
Default constructor.
|
ASample(Integer id,
Integer parentId,
Integer count,
AMethod method)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Integer |
getCount()
Gets the value of the 'count' field.
|
Integer |
getId()
Gets the value of the 'id' field.
|
AMethod |
getMethod()
Gets the value of the 'method' field.
|
Integer |
getParentId()
Gets the value of the 'parentId' field.
|
org.apache.avro.Schema |
getSchema() |
static ASample.Builder |
newBuilder()
Creates a new ASample RecordBuilder.
|
static ASample.Builder |
newBuilder(ASample.Builder other)
Creates a new ASample RecordBuilder by copying an existing Builder.
|
static ASample.Builder |
newBuilder(ASample other)
Creates a new ASample RecordBuilder by copying an existing ASample instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCount(Integer value)
Sets the value of the 'count' field.
|
void |
setId(Integer value)
Sets the value of the 'id' field.
|
void |
setMethod(AMethod value)
Sets the value of the 'method' field.
|
void |
setParentId(Integer value)
Sets the value of the 'parentId' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int id
@Deprecated public int parentId
@Deprecated public int count
@Deprecated public AMethod method
public ASample()
newBuilder()
.public ASample(Integer id, Integer parentId, Integer count, AMethod method)
id
- the id of the sampleparentId
- the parent sample where current method was executed from.count
- the number of time this records method has been caught in executionmethod
- the method caught in executionpublic 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 Integer getId()
public void setId(Integer value)
value
- the value to set.public Integer getParentId()
public void setParentId(Integer value)
value
- the value to set.public Integer getCount()
public void setCount(Integer value)
value
- the value to set.public AMethod getMethod()
public void setMethod(AMethod value)
value
- the value to set.public static ASample.Builder newBuilder()
public static ASample.Builder newBuilder(ASample.Builder other)
other
- The existing builder to copy.public static ASample.Builder newBuilder(ASample 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.