@Override public short[] deserialize(short[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new short[len]; for (int i = 0; i < len; i++) { reuse[i] = source.readShort(); } return reuse; }
@Override public long[] deserialize(long[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new long[len]; for (int i = 0; i < len; i++) { reuse[i] = source.readLong(); } return reuse; }
@Override public float[] deserialize(float[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new float[len]; for (int i = 0; i < len; i++) { reuse[i] = source.readFloat(); } return reuse; }
@Override public byte[] deserialize(byte[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new byte[len]; source.readFully(reuse); return reuse; }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeInt(source.readInt()); } }
@Override public long[] deserialize(long[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new long[len]; for (int i = 0; i < len; i++) { reuse[i] = source.readLong(); } return reuse; }
@Override public short[] deserialize(short[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new short[len]; for (int i = 0; i < len; i++) { reuse[i] = source.readShort(); } return reuse; }
@Override public String[] deserialize(String[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new String[len]; for (int i = 0; i < len; i++) { reuse[i] = StringValue.readString(source); } return reuse; }
@Override public boolean[] deserialize(boolean[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new boolean[len]; for (int i = 0; i < len; i++) { reuse[i] = source.readBoolean(); } return reuse; }
@Override public double[] deserialize(double[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new double[len]; for (int i = 0; i < len; i++) { reuse[i] = source.readDouble(); } return reuse; }
@Override public String[] deserialize(String[] reuse, DataInputView source) throws IOException { final int len = source.readInt(); reuse = new String[len]; for (int i = 0; i < len; i++) { reuse[i] = StringValue.readString(source); } return reuse; }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeInt(source.readInt()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { final int len = source.readInt(); target.writeInt(len); target.write(source, len * 4); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { final int len = source.readInt(); target.writeInt(len); target.write(source, len * 2); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { final int len = source.readInt(); target.writeInt(len); for (int i = 0; i < len; i++) { StringValue.copyString(source, target); } } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { final int len = source.readInt(); target.writeInt(len); target.write(source, len * 4); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { final int len = source.readInt(); target.writeInt(len); target.write(source, len); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { final int len = source.readInt(); target.writeInt(len); target.write(source, len); } }