public class CycleFinder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
CycleFinder.CycleConsumer
Consumes cycles.
|
static class |
CycleFinder.CycleFoundException |
static class |
CycleFinder.Path
Path from n table
from to another table to . |
Constructor and Description |
---|
CycleFinder() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<CycleFinder.Path> |
findCycle(DataModel dataModel,
java.util.Collection<Table> tables,
boolean findExact,
java.lang.Long timeout,
CycleFinder.CycleConsumer cycleConsumer)
Finds all dependency cycles in a data model.
|
static java.util.Set<Table> |
getCycle(java.util.Collection<Table> tables)
Gets set of all tables involved in a cycle.
|
public static java.util.Collection<CycleFinder.Path> findCycle(DataModel dataModel, java.util.Collection<Table> tables, boolean findExact, java.lang.Long timeout, CycleFinder.CycleConsumer cycleConsumer)
dataModel
- the data modelcycleConsumer
- consumes cycles (optional)