@Override public void serialize(Long record, DataOutputView target) throws IOException { target.writeLong(record.longValue()); }
@Override public void serialize(Long record, DataOutputView target) throws IOException { target.writeLong(record.longValue()); }
@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 void serialize(long[] record, DataOutputView target) throws IOException { if (record == null) { throw new IllegalArgumentException("The record must not be null."); } final int len = record.length; target.writeInt(len); for (int i = 0; i < len; i++) { target.writeLong(record[i]); } }
@Override public void serialize(long[] record, DataOutputView target) throws IOException { if (record == null) { throw new IllegalArgumentException("The record must not be null."); } final int len = record.length; target.writeInt(len); for (int i = 0; i < len; i++) { target.writeLong(record[i]); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeLong(source.readLong()); } }
@Override public void serialize(VertexWithAdjacencyList record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID()); final long[] targets = record.getTargets(); final int numTargets = record.getNumTargets(); target.writeInt(numTargets); for (int i = 0; i < numTargets; i++) { target.writeLong(targets[i]); } }
@Override public void writeWithKeyNormalization(VertexWithRank record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID() - Long.MIN_VALUE); target.writeDouble(record.getRank()); }
@Override public void serialize(VertexWithRank record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID()); target.writeDouble(record.getRank()); }
@Override public void writeWithKeyNormalization(VertexWithRankAndDangling record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID() - Long.MIN_VALUE); target.writeDouble(record.getRank()); target.writeBoolean(record.isDangling()); }
@Override public void serialize(VertexWithRankAndDangling record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID()); target.writeDouble(record.getRank()); target.writeBoolean(record.isDangling()); }