jcommon.graph
Interface ITopologicalSortCallback<TValue>

Type Parameters:
TValue - The type of Object that this callback will operate on.

public interface ITopologicalSortCallback<TValue>

A callback for when a vertex has been found in topological order. Allows for parallel vertex processing unless one is found that is waiting for processing of 1 or more transitive vertices. In this case, processing will not proceed until the transitive vertices have completed their work.


Method Summary
 TValue handle(TValue value, ITopologicalSortInput<TValue> input, IVertex<TValue> vertex, ITopologicalSortCoordinator coordinator)
          The callback that will be executed inside a thread other than the one invoking the sort.
 

Method Detail

handle

TValue handle(TValue value,
              ITopologicalSortInput<TValue> input,
              IVertex<TValue> vertex,
              ITopologicalSortCoordinator coordinator)
              throws Throwable
The callback that will be executed inside a thread other than the one invoking the sort.

Parameters:
vertex - Instance of IVertex that can now be processed.
input - Instance of ITopologicalSortInput that provides the in-degree outputs of directly dependent vertices.
coordinator - Instance of ITopologicalSortCoordinator that allows for communication between asynchronous sorting submissions done by the driver (which is typically done by an instance of ITopologicalSortStrategy).
Throws:
Throwable


Copyright © 2012-2013. All Rights Reserved.