/** * Set whether or not we should do output during computation * * @param doOutputDuringComputation True iff we want output to happen * during computation */ public final void setDoOutputDuringComputation( boolean doOutputDuringComputation) { DO_OUTPUT_DURING_COMPUTATION.set(this, doOutputDuringComputation); }
/** * Flag this job as a local test run. * * @param flag the test status for this job */ public void setLocalTestMode(boolean flag) { LOCAL_TEST_MODE.set(this, flag); }
/** * Set whether to create non existent vertices when they receive messages. * * @param v true if we should create vertices when they get messages. */ public final void setResolverCreateVertexOnMessages(boolean v) { RESOLVER_CREATE_VERTEX_ON_MSGS.set(this, v); }
/** * Set whether to use unsafe serialization * * @param useUnsafeSerialization If true, use unsafe serialization */ public void useUnsafeSerialization(boolean useUnsafeSerialization) { USE_UNSAFE_SERIALIZATION.set(this, useUnsafeSerialization); }
/** * Set whether or not selected VertexOutputFormat is thread-safe * * @param vertexOutputFormatThreadSafe True iff selected VertexOutputFormat * is thread-safe */ public final void setVertexOutputFormatThreadSafe( boolean vertexOutputFormatThreadSafe) { VERTEX_OUTPUT_FORMAT_THREAD_SAFE.set(this, vertexOutputFormatThreadSafe); }
/** * set option whether to create a source vertex present only in edge input * @param createVertex create source vertex option */ public void setCreateSourceVertex(boolean createVertex) { CREATE_EDGE_SOURCE_VERTICES.set(this, createVertex); }
/** * Set the ZooKeeper list to the provided list. This method is used when the * ZooKeeper is started internally and will set the zkIsExternal option to * false as well. * * @param zkList list of strings, comma separated of zookeeper servers */ public void setZookeeperList(String zkList) { ZOOKEEPER_LIST.set(this, zkList); ZOOKEEPER_IS_EXTERNAL.set(this, false); }
/** * Set value for given GraphType * * @param conf Configuration * @param graphType GraphType * @param value data */ public void set(Configuration conf, GraphType graphType, boolean value) { get(graphType).set(conf, value); }
@Override public void configure(GiraphConfiguration conf) { BlockUtils.setBlockFactoryClass(conf, SendingMessagesToNeighborsBlockFactory.class); GiraphConstants.RESOLVER_CREATE_VERTEX_ON_MSGS.set(conf, false); } });