/* (non-Javadoc) * @see eu.stratosphere.pact.runtime.plugable.TypeAccessorsV2#copy(eu.stratosphere.nephele.services.memorymanager.DataInputView, eu.stratosphere.nephele.services.memorymanager.DataOutputView) */ @Override public void copy(DataInputViewV2 source, DataOutputViewV2 target) throws IOException { for (int i = 0; i < 16; i++) { target.writeByte(source.readUnsignedByte()); } }
/* (non-Javadoc) * @see eu.stratosphere.pact.runtime.plugable.TypeAccessorsV2#serialize(java.lang.Object, eu.stratosphere.nephele.services.memorymanager.DataOutputView) */ @Override public long serialize(LongPair record, DataOutputViewV2 target) throws IOException { target.writeLong(record.getKey()); target.writeLong(record.getValue()); return 16; }