Class PageRankContext
- 
- All Implemented Interfaces:
- ContextBase,- ParallelContextBase<Long,Long,Long,Double>
 
 public class PageRankContext extends VertexDataContext<IFragment<Long,Long,Long,Double>,Double> implements ParallelContextBase<Long,Long,Long,Double> 
- 
- 
Field SummaryFields Modifier and Type Field Description doublealphaMessageInBuffer.FactorybufferFactoryintchunkSizedoubledanglingSumintdanglingVNumIntArrayWrapperdegreeExecutorServiceexecutorintmaxIterationDoubleArrayWrappernextResultDoubleArrayWrapperpagerankdoublesumDoubleTimeintsuperStepdoubleswapTimeintthread_num
 - 
Constructor SummaryConstructors Constructor Description PageRankContext()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidInit(IFragment<Long,Long,Long,Double> frag, ParallelMessageManager javaParallelMessageManager, com.alibaba.fastjson.JSONObject jsonObject)Called by grape framework, before any PEval.voidOutput(IFragment<Long,Long,Long,Double> frag)Output will be executed when the computations finalizes.intthread_num()- 
Methods inherited from class com.alibaba.graphscope.context.VertexDataContextcreateFFIContext, data, getDataClass
 
- 
 
- 
- 
- 
Field Detail- 
alphapublic double alpha 
 - 
maxIterationpublic int maxIteration 
 - 
superSteppublic int superStep 
 - 
danglingSumpublic double danglingSum 
 - 
pagerankpublic DoubleArrayWrapper pagerank 
 - 
nextResultpublic DoubleArrayWrapper nextResult 
 - 
degreepublic IntArrayWrapper degree 
 - 
thread_numpublic int thread_num 
 - 
executorpublic ExecutorService executor 
 - 
bufferFactorypublic MessageInBuffer.Factory bufferFactory 
 - 
chunkSizepublic int chunkSize 
 - 
sumDoubleTimepublic double sumDoubleTime 
 - 
swapTimepublic double swapTime 
 - 
danglingVNumpublic int danglingVNum 
 
- 
 - 
Method Detail- 
Initpublic void Init(IFragment<Long,Long,Long,Double> frag, ParallelMessageManager javaParallelMessageManager, com.alibaba.fastjson.JSONObject jsonObject) Description copied from interface:ParallelContextBaseCalled by grape framework, before any PEval. You can initiating data structures need during super steps here.- Specified by:
- Initin interface- ParallelContextBase<Long,Long,Long,Double>
- Parameters:
- frag- The graph fragment providing accesses to graph data.
- javaParallelMessageManager- The message manager which manages messages between fragments.
- jsonObject- String args from cmdline.
- See Also:
- IFragment,- ParallelMessageManager,- JSONObject
 
 - 
Outputpublic void Output(IFragment<Long,Long,Long,Double> frag) Description copied from interface:ParallelContextBaseOutput will be executed when the computations finalizes. Data maintained in this context shall be outputted here.
 - 
thread_numpublic int thread_num() 
 
- 
 
-