@Override public VertexIdMessages<I, M> createVertexIdData() { return new ByteArrayVertexIdMessages<I, M>( getConf().createOutgoingMessageValueFactory()); }
@Override public VertexIdMessages<I, M> createVertexIdData() { return new ByteArrayVertexIdMessages<I, M>( getConf().<M>createOutgoingMessageValueFactory()); }
@Override protected VertexIdMessages<I, M> readNextEntry(DataInput in) throws IOException { byte messageType = in.readByte(); SerializedMessageClass messageClass = SerializedMessageClass.values()[messageType]; VertexIdMessages<I, M> vim; switch (messageClass) { case BYTE_ARRAY_VERTEX_ID_MESSAGES: vim = new ByteArrayVertexIdMessages<>(messageValueFactory); vim.setConf(config); break; case BYTE_ARRAY_ONE_MESSAGE_TO_MANY_IDS: vim = new ByteArrayOneMessageToManyIds<>(messageValueFactory); vim.setConf(config); break; default: throw new IllegalStateException("readNextEntry: unsupported " + "serialized message type!"); } vim.readFields(in); return vim; }
@Override public void readFieldsRequest(DataInput input) throws IOException { partitionId = input.readInt(); // At this moment the Computation class have already been replaced with // the new one, and we deal with messages from previous superstep vertexIdMessageMap = new ByteArrayVertexIdMessages<>( getConf().<M>createIncomingMessageValueFactory()); vertexIdMessageMap.setConf(getConf()); vertexIdMessageMap.initialize(); vertexIdMessageMap.readFields(input); }
serverData.getCurrentMessageStore(); ByteArrayVertexIdMessages<I, Writable> vertexIdMessages = new ByteArrayVertexIdMessages<I, Writable>( configuration.createOutgoingMessageValueFactory()); vertexIdMessages.setConf(configuration); doRequest(workerInfo, messagesRequest); vertexIdMessages = new ByteArrayVertexIdMessages<I, Writable>( configuration.createOutgoingMessageValueFactory()); vertexIdMessages.setConf(configuration);
.get(partitionId); if (idMsgs == null) { idMsgs = new ByteArrayVertexIdMessages<>( getConf().<M>createOutgoingMessageValueFactory()); idMsgs.setConf(getConf());