@Override public void serialize(Double record, DataOutputView target) throws IOException { target.writeDouble(record.doubleValue()); }
@Override public void serialize(Double record, DataOutputView target) throws IOException { target.writeDouble(record.doubleValue()); }
@Override public void serialize(double[] 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.writeDouble(record[i]); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeDouble(source.readFloat()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeDouble(source.readDouble()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeDouble(source.readDouble()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeDouble(source.readFloat()); } }
@Override public void serialize(double[] 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.writeDouble(record[i]); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeDouble(source.readDouble()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeDouble(source.readDouble()); } }
@Override public void serialize(VertexWithRank record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID()); target.writeDouble(record.getRank()); }
@Override public void writeWithKeyNormalization(VertexWithRank record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID() - Long.MIN_VALUE); 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()); }