public class MockProvenanceEventRepository extends Object implements ProvenanceEventRepository
Modifier and Type | Field and Description |
---|---|
private AtomicLong |
idGenerator |
private List<ProvenanceEventRecord> |
records |
Constructor and Description |
---|
MockProvenanceEventRepository() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ProvenanceEventBuilder |
eventBuilder() |
ProvenanceEventRecord |
getEvent(long id) |
List<ProvenanceEventRecord> |
getEvents(long firstRecordId,
int maxRecords) |
Long |
getMaxEventId() |
List<SearchableField> |
getSearchableAttributes() |
List<SearchableField> |
getSearchableFields() |
void |
initialize(EventReporter reporter) |
void |
registerEvent(ProvenanceEventRecord event) |
void |
registerEvents(Iterable<ProvenanceEventRecord> events) |
ComputeLineageSubmission |
retrieveLineageSubmission(String lineageIdentifier) |
QuerySubmission |
retrieveQuerySubmission(String queryIdentifier) |
ComputeLineageSubmission |
submitExpandChildren(long eventId) |
ComputeLineageSubmission |
submitExpandParents(long eventId) |
ComputeLineageSubmission |
submitLineageComputation(String flowFileUuid) |
QuerySubmission |
submitQuery(Query query) |
private final List<ProvenanceEventRecord> records
private final AtomicLong idGenerator
public void registerEvents(Iterable<ProvenanceEventRecord> events)
registerEvents
in interface ProvenanceEventRepository
public void registerEvent(ProvenanceEventRecord event)
registerEvent
in interface ProvenanceEventRepository
public void initialize(EventReporter reporter) throws IOException
initialize
in interface ProvenanceEventRepository
IOException
public List<ProvenanceEventRecord> getEvents(long firstRecordId, int maxRecords) throws IOException
getEvents
in interface ProvenanceEventRepository
IOException
public Long getMaxEventId()
getMaxEventId
in interface ProvenanceEventRepository
public QuerySubmission submitQuery(Query query)
submitQuery
in interface ProvenanceEventRepository
public QuerySubmission retrieveQuerySubmission(String queryIdentifier)
retrieveQuerySubmission
in interface ProvenanceEventRepository
public ComputeLineageSubmission submitLineageComputation(String flowFileUuid)
submitLineageComputation
in interface ProvenanceEventRepository
public ComputeLineageSubmission retrieveLineageSubmission(String lineageIdentifier)
retrieveLineageSubmission
in interface ProvenanceEventRepository
public ProvenanceEventRecord getEvent(long id) throws IOException
getEvent
in interface ProvenanceEventRepository
IOException
public ComputeLineageSubmission submitExpandParents(long eventId)
submitExpandParents
in interface ProvenanceEventRepository
public ComputeLineageSubmission submitExpandChildren(long eventId)
submitExpandChildren
in interface ProvenanceEventRepository
public void close() throws IOException
close
in interface ProvenanceEventRepository
IOException
public List<SearchableField> getSearchableFields()
getSearchableFields
in interface ProvenanceEventRepository
public List<SearchableField> getSearchableAttributes()
getSearchableAttributes
in interface ProvenanceEventRepository
public ProvenanceEventBuilder eventBuilder()
eventBuilder
in interface ProvenanceEventRepository
Copyright © 2016 Apache NiFi Project. All rights reserved.