ProvenanceEventRecord.getChildUuids
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.nifi.provenance.ProvenanceEventRecord.getChildUuids (Showing top 20 results out of 315)

origin: apache/nifi

@Override
public List<String> getChildUuids() {
  return record.getChildUuids();
}
origin: apache/nifi

@Override
public List<String> getChildUuids() {
  return event.getChildUuids();
}
origin: apache/nifi

@Override
public List<String> getChildUuids() {
  return record.getChildUuids();
}
origin: apache/nifi

/**
 * Checks if the given event is a spurious FORK, meaning that the FORK has a
 * single child and that child was removed in this session. This happens
 * when a Processor calls #create(FlowFile) and then removes the created
 * FlowFile.
 *
 * @param event event
 * @return true if spurious fork
 */
private boolean isSpuriousForkEvent(final ProvenanceEventRecord event, final Set<String> removedFlowFiles) {
  if (event.getEventType() == ProvenanceEventType.FORK) {
    final List<String> childUuids = event.getChildUuids();
    if (childUuids != null && childUuids.size() == 1 && removedFlowFiles.contains(childUuids.get(0))) {
      return true;
    }
  }
  return false;
}
origin: apache/nifi

  private static String stringify(final ProvenanceEventRecord event, final int index, final long byteOffset) {
    final StringBuilder sb = new StringBuilder();
    sb.append("Event Index in File = ").append(index).append(", Byte Offset = ").append(byteOffset);
    sb.append("\n\t").append("Event ID = ").append(event.getEventId());
    sb.append("\n\t").append("Event Type = ").append(event.getEventType());
    sb.append("\n\t").append("Event Time = ").append(new Date(event.getEventTime()));
    sb.append("\n\t").append("Event UUID = ").append(event.getFlowFileUuid());
    sb.append("\n\t").append("Component ID = ").append(event.getComponentId());
    sb.append("\n\t").append("Event ID = ").append(event.getComponentType());
    sb.append("\n\t").append("Transit URI = ").append(event.getTransitUri());
    sb.append("\n\t").append("Parent IDs = ").append(event.getParentUuids());
    sb.append("\n\t").append("Child IDs = ").append(event.getChildUuids());
    sb.append("\n\t").append("Previous Attributes = ").append(event.getPreviousAttributes());
    sb.append("\n\t").append("Updated Attributes = ").append(event.getUpdatedAttributes());

    return sb.toString();
  }
}
origin: apache/nifi

  @Override
  public boolean select(final ProvenanceEventRecord event) {
    if (!isAuthorized(event, user)) {
      return false;
    }
    if (flowFileUuids.contains(event.getFlowFileUuid())) {
      return true;
    }
    for (final String parentId : event.getParentUuids()) {
      if (flowFileUuids.contains(parentId)) {
        return true;
      }
    }
    for (final String childId : event.getChildUuids()) {
      if (flowFileUuids.contains(childId)) {
        return true;
      }
    }
    return false;
  }
};
origin: apache/nifi

  for (final String uuid : event.getChildUuids()) {
    if (pattern.matcher(uuid).matches()) {
      found = true;
    continue;
} else if (event.getFlowFileUuid().equals(searchValue) || event.getParentUuids().contains(searchValue) || event.getChildUuids().contains(searchValue)) {
  continue;
origin: apache/nifi

case CLONE: {
  for (final String childUuid : record.getChildUuids()) {
    if (flowFileUuids.contains(childUuid)) {
      final FlowFileNode childNode = new FlowFileNode(childUuid, record.getEventTime());
origin: apache/nifi

case JOIN:
case REPLAY: {
  return submitLineageComputation(event.getChildUuids(), user, authorizer, LineageComputationType.EXPAND_CHILDREN,
    eventId, event.getEventTime(), Long.MAX_VALUE);
origin: apache/nifi

@Override
public ComputeLineageSubmission submitExpandChildren(final long eventId, final NiFiUser user) {
  final String userId = user == null ? null : user.getIdentity();
  final ProvenanceEventRecord event = getEvent(eventId, user);
  if (event == null) {
    final AsyncLineageSubmission submission = new AsyncLineageSubmission(LineageComputationType.EXPAND_CHILDREN, eventId, Collections.emptyList(), 1, userId);
    lineageSubmissionMap.put(submission.getLineageIdentifier(), submission);
    submission.getResult().update(Collections.emptyList(), 0L);
    return submission;
  }
  switch (event.getEventType()) {
    case JOIN:
    case FORK:
    case REPLAY:
    case CLONE:
      return submitLineageComputation(event.getChildUuids(), user, LineageComputationType.EXPAND_CHILDREN, eventId);
    default: {
      final AsyncLineageSubmission submission = new AsyncLineageSubmission(LineageComputationType.EXPAND_CHILDREN, eventId, Collections.emptyList(), 1, userId);
      lineageSubmissionMap.put(submission.getLineageIdentifier(), submission);
      submission.getResult().setError("Event ID " + eventId + " indicates an event of type " + event.getEventType() + " so its children cannot be expanded");
      return submission;
    }
  }
}
origin: apache/nifi

case JOIN:
case REPLAY:
  return submitLineageComputation(event.getChildUuids(), user, LineageComputationType.EXPAND_CHILDREN, eventId, event.getEventTime(), Long.MAX_VALUE);
default:
  final AsyncLineageSubmission submission = new AsyncLineageSubmission(LineageComputationType.EXPAND_CHILDREN, eventId, Collections.<String>emptyList(), 1, userId);
origin: apache/nifi

final ProvenanceEventRecord event = builder.build();
if (!event.getChildUuids().isEmpty() && !isSpuriousForkEvent(event, checkpoint.removedFlowFiles)) {
  for (final String childUuid : event.getChildUuids()) {
    addEventType(eventTypesPerFlowFileId, childUuid, event.getEventType());
origin: apache/nifi

  writeUUIDs(out, record.getChildUuids());
} else if (recordType == ProvenanceEventType.RECEIVE) {
  writeNullableString(out, record.getTransitUri(), "TransitUri");
origin: apache/nifi

for (final String uuid : record.getChildUuids()) {
  if (!uuid.equals(record.getFlowFileUuid())) {
    addField(doc, SearchableFields.FlowFileUUID, uuid);
origin: apache/nifi

addField(builder, factory, "childIds", event.getChildUuids());
addField(builder, "transitUri", event.getTransitUri());
addField(builder, "remoteIdentifier", event.getSourceSystemFlowFileIdentifier());
origin: apache/nifi

final List<String> childUuids = new ArrayList<>(event.getChildUuids());
childUuids.sort(Collator.getInstance(Locale.US));
dto.setChildUuids(childUuids);
origin: apache/nifi

  return event.getAlternateIdentifierUri();
case EventFieldNames.CHILD_UUIDS:
  return event.getChildUuids();
case EventFieldNames.COMPONENT_ID:
  return createLookupValue(event.getComponentId(), componentIdMap);
origin: apache/nifi

  return event.getAlternateIdentifierUri();
case EventFieldNames.CHILD_UUIDS:
  return event.getChildUuids();
case EventFieldNames.COMPONENT_ID:
  return event.getComponentId();
origin: apache/nifi

uuid = event.getFlowFileUuid();
parentUuids = event.getParentUuids();
childrenUuids = event.getChildUuids();
alternateIdentifierUri = event.getAlternateIdentifierUri();
eventDuration = event.getEventDuration();
origin: org.apache.nifi/nifi-data-provenance-utils

@Override
public List<String> getChildUuids() {
  return record.getChildUuids();
}
org.apache.nifi.provenanceProvenanceEventRecordgetChildUuids

Popular methods of ProvenanceEventRecord

  • getEventId
  • getComponentId
  • getComponentType
  • getEventType
  • getFlowFileUuid
  • getTransitUri
  • getEventDuration
  • getFileSize
  • getLineageStartDate
  • getParentUuids
  • getPreviousAttributes
  • getPreviousFileSize
  • getPreviousAttributes,
  • getPreviousFileSize,
  • getAlternateIdentifierUri,
  • getAttributes,
  • getDetails,
  • getEventTime,
  • getSourceSystemFlowFileIdentifier,
  • getUpdatedAttributes,
  • getContentClaimContainer

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JLabel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)