Package org.graphlab

Examples of org.graphlab.ExecutionPhase


        MessageIds.registerDecoder(MessageIds.EXECUTEPHASE, new GraphLabMessageDecoder() {
            @Override
            public GraphLabMessage decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buf) {
                if (buf.readableBytes() < 12) return null;

                ExecutionPhase phase = new ExecutionPhase(buf.readInt());
                int fromVertex = buf.readInt();
                int toVertex = buf.readInt();
                return new ExecutePhaseMessage(phase, fromVertex, toVertex);
            }
        });
View Full Code Here


    public static void register() {
        MessageIds.registerDecoder(MessageIds.FINISHED_PHASE, new GraphLabMessageDecoder() {
            @Override
            public GraphLabMessage decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buf) {
                if (buf.readableBytes() < 12) return null;
                ExecutionPhase phase = new ExecutionPhase(buf.readInt());
                int fromVertex = buf.readInt();
                int toVertex = buf.readInt();
                return new FinishedPhaseMessage(phase, fromVertex, toVertex);
            }
        });
View Full Code Here

TOP

Related Classes of org.graphlab.ExecutionPhase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.