static int[] readArray(int[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static short[] readArray(short[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = (short) in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static char[] readArray(char[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = (char) in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static int[] readArray(int[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static short[] readArray(short[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = (short) in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static char[] readArray(char[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = (char) in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
@Override protected void customDecode(org.apache.avro.io.ResolvingDecoder in) throws java.io.IOException { org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff(); if (fieldOrder == null) { this.name = in.readString(this.name instanceof Utf8 ? (Utf8)this.name : null); this.count = in.readInt(); } else { for (int i = 0; i < 2; i++) { switch (fieldOrder[i].pos()) { case 0: this.name = in.readString(this.name instanceof Utf8 ? (Utf8)this.name : null); break; case 1: this.count = in.readInt(); break; default: throw new java.io.IOException("Corrupt ResolvingDecoder."); } } } } }
@Override protected void readInternal(Decoder d) throws IOException { ResolvingDecoder r = (ResolvingDecoder) d; Field[] ff = r.readFieldOrder(); for (int i = 0; i < count; i++) { for (int j = 0; j < ff.length; j++) { Field f = ff[j]; switch (f.pos()) { case 0: case 1: case 3: r.readDouble(); break; case 2: case 4: case 5: r.readInt(); break; } } } } }
@Override protected void readInternal(Decoder d) throws IOException { ResolvingDecoder r = (ResolvingDecoder) d; Field[] ff = r.readFieldOrder(); for (int i = 0; i < count; i++) { for (int j = 0; j < ff.length; j++) { Field f = ff[j]; switch (f.pos()) { case 0: case 1: case 2: r.readDouble(); break; case 3: case 4: case 5: r.readInt(); break; case 6: case 7: r.readString(null); break; } } } } }
this.id = in.readInt(); for ( ; size1 != 0; size1--) { java.lang.Integer e1 = (ga1 != null ? ga1.peek() : null); e1 = in.readInt(); a1.add(e1); switch (fieldOrder[i].pos()) { case 0: this.id = in.readInt(); break; for ( ; size1 != 0; size1--) { java.lang.Integer e1 = (ga1 != null ? ga1.peek() : null); e1 = in.readInt(); a1.add(e1);
this.id = in.readInt(); for ( ; size1 != 0; size1--) { java.lang.Integer e1 = (ga1 != null ? ga1.peek() : null); e1 = in.readInt(); a1.add(e1); switch (fieldOrder[i].pos()) { case 0: this.id = in.readInt(); break; for ( ; size1 != 0; size1--) { java.lang.Integer e1 = (ga1 != null ? ga1.peek() : null); e1 = in.readInt(); a1.add(e1);
static char[] readArray(char[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = (char) in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static short[] readArray(short[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = (short) in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static int[] readArray(int[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static int[] readArray(int[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }
static short[] readArray(short[] array, long l, ResolvingDecoder in) throws IOException { int index = 0; do { int limit = index + (int) l; if (array.length < limit) { array = Arrays.copyOf(array, limit); } while (index < limit) { array[index] = (short) in.readInt(); index++; } } while ((l = in.arrayNext()) > 0); return array; }