public class ReportEvent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
ReportEvent.Builder
RecordBuilder for ReportEvent instances.
|
| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
annotations
Deprecated.
|
Map<String,List<String>> |
dimensions
Deprecated.
|
long |
endTime
Deprecated.
|
List<String> |
hosts
Deprecated.
|
String |
name
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
long |
startTime
Deprecated.
|
List<String> |
tags
Deprecated.
|
| Constructor and Description |
|---|
ReportEvent()
Default constructor.
|
ReportEvent(String name,
Long startTime,
Long endTime,
Map<String,String> annotations,
List<String> hosts,
List<String> tags,
Map<String,List<String>> dimensions)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<ReportEvent> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
void |
customDecode(org.apache.avro.io.ResolvingDecoder in) |
void |
customEncode(org.apache.avro.io.Encoder out) |
static ReportEvent |
fromByteBuffer(ByteBuffer b)
Deserializes a ReportEvent from a ByteBuffer.
|
Object |
get(int field$) |
Map<String,String> |
getAnnotations()
Gets the value of the 'annotations' field.
|
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<ReportEvent> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
Map<String,List<String>> |
getDimensions()
Gets the value of the 'dimensions' field.
|
static org.apache.avro.message.BinaryMessageEncoder<ReportEvent> |
getEncoder()
Return the BinaryMessageEncoder instance used by this class.
|
long |
getEndTime()
Gets the value of the 'endTime' field.
|
List<String> |
getHosts()
Gets the value of the 'hosts' field.
|
String |
getName()
Gets the value of the 'name' field.
|
org.apache.avro.Schema |
getSchema() |
org.apache.avro.specific.SpecificData |
getSpecificData() |
long |
getStartTime()
Gets the value of the 'startTime' field.
|
List<String> |
getTags()
Gets the value of the 'tags' field.
|
protected boolean |
hasCustomCoders() |
static ReportEvent.Builder |
newBuilder()
Creates a new ReportEvent RecordBuilder.
|
static ReportEvent.Builder |
newBuilder(ReportEvent.Builder other)
Creates a new ReportEvent RecordBuilder by copying an existing Builder.
|
static ReportEvent.Builder |
newBuilder(ReportEvent other)
Creates a new ReportEvent RecordBuilder by copying an existing ReportEvent instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setAnnotations(Map<String,String> value)
Sets the value of the 'annotations' field.
|
void |
setDimensions(Map<String,List<String>> value)
Sets the value of the 'dimensions' field.
|
void |
setEndTime(long value)
Sets the value of the 'endTime' field.
|
void |
setHosts(List<String> value)
Sets the value of the 'hosts' field.
|
void |
setName(String value)
Sets the value of the 'name' field.
|
void |
setStartTime(long value)
Sets the value of the 'startTime' field.
|
void |
setTags(List<String> value)
Sets the value of the 'tags' field.
|
ByteBuffer |
toByteBuffer()
Serializes this ReportEvent to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String name
@Deprecated public long startTime
@Deprecated public long endTime
@Deprecated public Map<String,String> annotations
@Deprecated public List<String> hosts
@Deprecated public List<String> tags
@Deprecated public Map<String,List<String>> dimensions
public ReportEvent()
newBuilder().public ReportEvent(String name, Long startTime, Long endTime, Map<String,String> annotations, List<String> hosts, List<String> tags, Map<String,List<String>> dimensions)
name - The new value for namestartTime - The new value for startTimeendTime - The new value for endTimeannotations - The new value for annotationshosts - The new value for hoststags - The new value for tagsdimensions - The new value for dimensionspublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageEncoder<ReportEvent> getEncoder()
public static org.apache.avro.message.BinaryMessageDecoder<ReportEvent> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<ReportEvent> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOException - if this instance could not be serializedpublic static ReportEvent fromByteBuffer(ByteBuffer b) throws IOException
b - a byte buffer holding serialized data for an instance of this classIOException - if the given bytes could not be deserialized into an instance of this classpublic org.apache.avro.specific.SpecificData getSpecificData()
getSpecificData in class org.apache.avro.specific.SpecificRecordBasepublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic String getName()
public void setName(String value)
value - the value to set.public long getStartTime()
public void setStartTime(long value)
value - the value to set.public long getEndTime()
public void setEndTime(long value)
value - the value to set.public Map<String,String> getAnnotations()
public void setAnnotations(Map<String,String> value)
value - the value to set.public List<String> getHosts()
public void setHosts(List<String> value)
value - the value to set.public List<String> getTags()
public void setTags(List<String> value)
value - the value to set.public Map<String,List<String>> getDimensions()
public void setDimensions(Map<String,List<String>> value)
value - the value to set.public static ReportEvent.Builder newBuilder()
public static ReportEvent.Builder newBuilder(ReportEvent.Builder other)
other - The existing builder to copy.public static ReportEvent.Builder newBuilder(ReportEvent other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionprotected boolean hasCustomCoders()
hasCustomCoders in class org.apache.avro.specific.SpecificRecordBasepublic void customEncode(org.apache.avro.io.Encoder out)
throws IOException
customEncode in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void customDecode(org.apache.avro.io.ResolvingDecoder in)
throws IOException
customDecode in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2020. All rights reserved.