@Override public void serialize(Boolean record, DataOutputView target) throws IOException { target.writeBoolean(record.booleanValue()); }
@Override public void serialize(Boolean record, DataOutputView target) throws IOException { target.writeBoolean(record.booleanValue()); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeBoolean(source.readBoolean()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeBoolean(source.readBoolean()); } }
@Override public void serialize(boolean[] 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.writeBoolean(record[i]); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { source.readBoolean(); target.writeBoolean(false); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeBoolean(source.readBoolean()); } }
@Override public void serialize(boolean[] 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.writeBoolean(record[i]); } }
@Override public void serialize(C[] value, DataOutputView target) throws IOException { target.writeInt(value.length); for (int i = 0; i < value.length; i++) { C val = value[i]; if (val == null) { target.writeBoolean(false); } else { target.writeBoolean(true); componentSerializer.serialize(val, target); } } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeBoolean(source.readBoolean()); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { source.readBoolean(); target.writeBoolean(false); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { int len = source.readInt(); target.writeInt(len); for (int i = 0; i < len; i++) { boolean isNonNull = source.readBoolean(); target.writeBoolean(isNonNull); if (isNonNull) { componentSerializer.copy(source, target); } } }
@Override public void serialize(VertexWithRankAndDangling record, DataOutputView target) throws IOException { target.writeLong(record.getVertexID()); target.writeDouble(record.getRank()); target.writeBoolean(record.isDangling()); }
@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()); }