@Override public Long deserialize(Long reuse, DataInputView source) throws IOException { return Long.valueOf(source.readLong()); }
@Override public Long deserialize(Long reuse, DataInputView source) throws IOException { return Long.valueOf(source.readLong()); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeLong(source.readLong()); } }
@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 void copy(DataInputView source, DataOutputView target) throws IOException { target.writeLong(source.readLong()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeLong(source.readLong()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeLong(source.readLong()); } }
@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 VertexWithAdjacencyList deserialize(VertexWithAdjacencyList target, DataInputView source) throws IOException { target.setVertexID(source.readLong()); final int numTargets = source.readInt(); long[] targets = target.getTargets(); if (targets.length < numTargets) { targets = new long[numTargets]; target.setTargets(targets); } target.setNumTargets(numTargets); for (int i = 0; i < numTargets; i++) { targets[i] = source.readLong(); } return target; }
@Override public VertexWithRank readWithKeyDenormalization(VertexWithRank reuse, DataInputView source) throws IOException { reuse.setVertexID(source.readLong() + Long.MIN_VALUE); reuse.setRank(source.readDouble()); return reuse; }
@Override public VertexWithRank deserialize(VertexWithRank target, DataInputView source) throws IOException { target.setVertexID(source.readLong()); target.setRank(source.readDouble()); return target; }
@Override public VertexWithRankAndDangling readWithKeyDenormalization(VertexWithRankAndDangling reuse, DataInputView source) throws IOException { reuse.setVertexID(source.readLong() + Long.MIN_VALUE); reuse.setRank(source.readDouble()); reuse.setDangling(source.readBoolean()); return reuse; }
@Override public VertexWithRankAndDangling deserialize(VertexWithRankAndDangling target, DataInputView source) throws IOException { target.setVertexID(source.readLong()); target.setRank(source.readDouble()); target.setDangling(source.readBoolean()); return target; }