@DefaultCoder(AvroCoder.class) static class Singer { long singerId; String firstName; String lastName; Singer() {} Singer(long singerId, String firstName, String lastName) { this.singerId = singerId; this.firstName = firstName; this.lastName = lastName; } }
Class<? extends Coder> defaultAnnotationValue = defaultAnnotation.value(); if (defaultAnnotationValue == null) { throw new CannotProvideCoderException(
@DefaultCoder(AvroCoder.class) static class Album { long singerId; long albumId; String albumTitle; Album() {} Album(long singerId, long albumId, String albumTitle) { this.singerId = singerId; this.albumId = albumId; this.albumTitle = albumTitle; } }
@DefaultCoder(AvroCoder.class) static class Singer { long singerId; String firstName; String lastName; Singer() { } Singer(long singerId, String firstName, String lastName) { this.singerId = singerId; this.firstName = firstName; this.lastName = lastName; } }
@DefaultCoder(AvroCoder.class) static class Album { long singerId; long albumId; String albumTitle; Album() { } Album(long singerId, long albumId, String albumTitle) { this.singerId = singerId; this.albumId = albumId; this.albumTitle = albumTitle; } }
@DefaultCoder(AvroCoder.class) static class Quote { final String source; final String quote; public Quote() { this.source = ""; this.quote = ""; } public Quote(String source, String quote) { this.source = source; this.quote = quote; } }
@DefaultCoder(AvroCoder.class) static class WeatherData { final long year; final long month; final long day; final double maxTemp; public WeatherData() { this.year = 0; this.month = 0; this.day = 0; this.maxTemp = 0.0f; } public WeatherData(long year, long month, long day, double maxTemp) { this.year = year; this.month = month; this.day = day; this.maxTemp = maxTemp; } }
@DefaultCoder(AvroCoder.class) public static class CounterMark implements UnboundedSource.CheckpointMark {
@Builder @Data @DefaultCoder(value = AvroCoder.class) public static class RedisMutation { private final Method method; private final byte[] key; private final byte[] value; private final long expiryMillis; private final long score; // Score is only utilized when method is ZSET }
@DefaultCoder(AvroCoder.class) public class ExecutableFile {
@DefaultCoder(AvroCoder.class) static class CompletionCandidate implements Comparable<CompletionCandidate> { private long count;
@DefaultCoder(AvroCoder.class) static class CompletionCandidate implements Comparable<CompletionCandidate> { private long count;
@DefaultCoder(GenericJsonCoder.class) public class ReadCounts extends GenericJson {
@DefaultCoder(SerializableCoder.class) public class BAMShard implements Serializable { public String file;
@DefaultCoder(GenericJsonCoder.class) public class ReadCounts extends GenericJson {
@DefaultCoder(AvroCoder.class) public class AlleleFreq {
@DefaultCoder(AvroCoder.class) public class ReadBaseQuality {
@DefaultCoder(AvroCoder.class) public class AlleleFreq {
@DefaultCoder(AvroCoder.class) public class ReadBaseQuality {
@DefaultCoder(AvroCoder.class) public class AvroPubsubMessageRecord {