Package wavefront.report
Class ReportEvent
- java.lang.Object
-
- org.apache.avro.specific.SpecificRecordBase
-
- wavefront.report.ReportEvent
-
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<org.apache.avro.specific.SpecificRecord>,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.IndexedRecord,org.apache.avro.specific.SpecificRecord
public class ReportEvent extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReportEvent.BuilderRecordBuilder for ReportEvent instances.
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>annotationsDeprecated.Map<String,List<String>>dimensionsDeprecated.longendTimeDeprecated.List<String>hostsDeprecated.StringnameDeprecated.static org.apache.avro.SchemaSCHEMA$longstartTimeDeprecated.List<String>tagsDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 specifiedSchemaStore.voidcustomDecode(org.apache.avro.io.ResolvingDecoder in)voidcustomEncode(org.apache.avro.io.Encoder out)static ReportEventfromByteBuffer(ByteBuffer b)Deserializes a ReportEvent from a ByteBuffer.Objectget(int field$)Map<String,String>getAnnotations()Gets the value of the 'annotations' field.static org.apache.avro.SchemagetClassSchema()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.longgetEndTime()Gets the value of the 'endTime' field.List<String>getHosts()Gets the value of the 'hosts' field.StringgetName()Gets the value of the 'name' field.org.apache.avro.SchemagetSchema()org.apache.avro.specific.SpecificDatagetSpecificData()longgetStartTime()Gets the value of the 'startTime' field.List<String>getTags()Gets the value of the 'tags' field.protected booleanhasCustomCoders()static ReportEvent.BuildernewBuilder()Creates a new ReportEvent RecordBuilder.static ReportEvent.BuildernewBuilder(ReportEvent other)Creates a new ReportEvent RecordBuilder by copying an existing ReportEvent instance.static ReportEvent.BuildernewBuilder(ReportEvent.Builder other)Creates a new ReportEvent RecordBuilder by copying an existing Builder.voidput(int field$, Object value$)voidreadExternal(ObjectInput in)voidsetAnnotations(Map<String,String> value)Sets the value of the 'annotations' field.voidsetDimensions(Map<String,List<String>> value)Sets the value of the 'dimensions' field.voidsetEndTime(long value)Sets the value of the 'endTime' field.voidsetHosts(List<String> value)Sets the value of the 'hosts' field.voidsetName(String value)Sets the value of the 'name' field.voidsetStartTime(long value)Sets the value of the 'startTime' field.voidsetTags(List<String> value)Sets the value of the 'tags' field.ByteBuffertoByteBuffer()Serializes this ReportEvent to a ByteBuffer.voidwriteExternal(ObjectOutput out)
-
-
-
Field Detail
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$
-
name
@Deprecated public String name
Deprecated.
-
startTime
@Deprecated public long startTime
Deprecated.
-
endTime
@Deprecated public long endTime
Deprecated.
-
annotations
@Deprecated public Map<String,String> annotations
Deprecated.
-
hosts
@Deprecated public List<String> hosts
Deprecated.
-
tags
@Deprecated public List<String> tags
Deprecated.
-
dimensions
@Deprecated public Map<String,List<String>> dimensions
Deprecated.
-
-
Constructor Detail
-
ReportEvent
public ReportEvent()
Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder().
-
ReportEvent
public 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.- Parameters:
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 dimensions
-
-
Method Detail
-
getClassSchema
public static org.apache.avro.Schema getClassSchema()
-
getEncoder
public static org.apache.avro.message.BinaryMessageEncoder<ReportEvent> getEncoder()
Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
getDecoder
public static org.apache.avro.message.BinaryMessageDecoder<ReportEvent> getDecoder()
Return the BinaryMessageDecoder instance used by this class.- Returns:
- the message decoder used by this class
-
createDecoder
public 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 specifiedSchemaStore.- Parameters:
resolver- aSchemaStoreused to find schemas by fingerprint- Returns:
- a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
public ByteBuffer toByteBuffer() throws IOException
Serializes this ReportEvent to a ByteBuffer.- Returns:
- a buffer holding the serialized data for this instance
- Throws:
IOException- if this instance could not be serialized
-
fromByteBuffer
public static ReportEvent fromByteBuffer(ByteBuffer b) throws IOException
Deserializes a ReportEvent from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a ReportEvent instance decoded from the given buffer
- Throws:
IOException- if the given bytes could not be deserialized into an instance of this class
-
getSpecificData
public org.apache.avro.specific.SpecificData getSpecificData()
- Overrides:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()
- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer- Specified by:
getSchemain classorg.apache.avro.specific.SpecificRecordBase
-
get
public Object get(int field$)
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
getin classorg.apache.avro.specific.SpecificRecordBase
-
put
public void put(int field$, Object value$)- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
putin classorg.apache.avro.specific.SpecificRecordBase
-
getName
public String getName()
Gets the value of the 'name' field.- Returns:
- The value of the 'name' field.
-
setName
public void setName(String value)
Sets the value of the 'name' field.- Parameters:
value- the value to set.
-
getStartTime
public long getStartTime()
Gets the value of the 'startTime' field.- Returns:
- The value of the 'startTime' field.
-
setStartTime
public void setStartTime(long value)
Sets the value of the 'startTime' field.- Parameters:
value- the value to set.
-
getEndTime
public long getEndTime()
Gets the value of the 'endTime' field.- Returns:
- The value of the 'endTime' field.
-
setEndTime
public void setEndTime(long value)
Sets the value of the 'endTime' field.- Parameters:
value- the value to set.
-
getAnnotations
public Map<String,String> getAnnotations()
Gets the value of the 'annotations' field.- Returns:
- The value of the 'annotations' field.
-
setAnnotations
public void setAnnotations(Map<String,String> value)
Sets the value of the 'annotations' field.- Parameters:
value- the value to set.
-
getHosts
public List<String> getHosts()
Gets the value of the 'hosts' field.- Returns:
- The value of the 'hosts' field.
-
setHosts
public void setHosts(List<String> value)
Sets the value of the 'hosts' field.- Parameters:
value- the value to set.
-
getTags
public List<String> getTags()
Gets the value of the 'tags' field.- Returns:
- The value of the 'tags' field.
-
setTags
public void setTags(List<String> value)
Sets the value of the 'tags' field.- Parameters:
value- the value to set.
-
getDimensions
public Map<String,List<String>> getDimensions()
Gets the value of the 'dimensions' field.- Returns:
- The value of the 'dimensions' field.
-
setDimensions
public void setDimensions(Map<String,List<String>> value)
Sets the value of the 'dimensions' field.- Parameters:
value- the value to set.
-
newBuilder
public static ReportEvent.Builder newBuilder()
Creates a new ReportEvent RecordBuilder.- Returns:
- A new ReportEvent RecordBuilder
-
newBuilder
public static ReportEvent.Builder newBuilder(ReportEvent.Builder other)
Creates a new ReportEvent RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new ReportEvent RecordBuilder
-
newBuilder
public static ReportEvent.Builder newBuilder(ReportEvent other)
Creates a new ReportEvent RecordBuilder by copying an existing ReportEvent instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new ReportEvent RecordBuilder
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
hasCustomCoders
protected boolean hasCustomCoders()
- Overrides:
hasCustomCodersin classorg.apache.avro.specific.SpecificRecordBase
-
customEncode
public void customEncode(org.apache.avro.io.Encoder out) throws IOException- Overrides:
customEncodein classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
customDecode
public void customDecode(org.apache.avro.io.ResolvingDecoder in) throws IOException- Overrides:
customDecodein classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
-