public class StandardLineageResult extends Object implements ComputeLineageResult, ProgressiveResult
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private Object |
completionMonitor |
private long |
computationNanos |
private long |
creationNanos |
private Set<LineageEdge> |
edges |
private String |
error |
private Date |
expirationDate |
private Collection<String> |
flowFileUuids |
private static org.slf4j.Logger |
logger |
private Set<LineageNode> |
nodes |
private int |
numCompletedSteps |
private int |
numSteps |
private Lock |
readLock |
private Set<ProvenanceEventRecord> |
relevantRecords |
private ReadWriteLock |
rwLock |
static int |
TTL |
private Lock |
writeLock |
| Constructor and Description |
|---|
StandardLineageResult(int numSteps,
Collection<String> flowFileUuids) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitCompletion(long time,
TimeUnit unit) |
(package private) void |
cancel() |
private void |
computeLineage()
Computes the lineage from the relevant Provenance Event Records.
|
long |
getComputationTime(TimeUnit timeUnit) |
List<LineageEdge> |
getEdges() |
String |
getError() |
Date |
getExpiration() |
List<LineageNode> |
getNodes() |
int |
getPercentComplete() |
long |
getTotalHitCount() |
boolean |
isFinished() |
void |
setError(String error) |
void |
update(Collection<ProvenanceEventRecord> records,
long totalHitCount) |
private void |
updateExpiration()
Must be called with write lock!
|
public static final int TTL
private static final org.slf4j.Logger logger
private final Collection<String> flowFileUuids
private final Set<ProvenanceEventRecord> relevantRecords
private final Set<LineageNode> nodes
private final Set<LineageEdge> edges
private final int numSteps
private final long creationNanos
private long computationNanos
private final ReadWriteLock rwLock
private final Lock readLock
private final Lock writeLock
private Date expirationDate
private String error
private int numCompletedSteps
private volatile boolean canceled
private final Object completionMonitor
public StandardLineageResult(int numSteps,
Collection<String> flowFileUuids)
public List<LineageNode> getNodes()
getNodes in interface ComputeLineageResultpublic List<LineageEdge> getEdges()
getEdges in interface ComputeLineageResultpublic long getComputationTime(TimeUnit timeUnit)
public Date getExpiration()
getExpiration in interface ComputeLineageResultpublic String getError()
getError in interface ComputeLineageResultpublic int getPercentComplete()
getPercentComplete in interface ComputeLineageResultpublic boolean isFinished()
isFinished in interface ComputeLineageResultisFinished in interface ProgressiveResultpublic void setError(String error)
setError in interface ProgressiveResultpublic void update(Collection<ProvenanceEventRecord> records, long totalHitCount)
update in interface ProgressiveResultprivate void computeLineage()
void cancel()
private void updateExpiration()
public boolean awaitCompletion(long time,
TimeUnit unit)
throws InterruptedException
awaitCompletion in interface ComputeLineageResultInterruptedExceptionpublic long getTotalHitCount()
getTotalHitCount in interface ProgressiveResultCopyright © 2022 Apache NiFi Project. All rights reserved.