Put data {@link Descriptor}s of a destination dataset to a state

@param descriptors It can be a single item list which just has the dataset descriptor or a list
of dataset partition descriptors
507374
public void putDestination(List<Descriptor> descriptors, int branchId, State state) {

    if (!hasLineageInfo(state)) {
      log.warn("State has no lineage info but branch " + branchId + " puts {} descriptors", descriptors.size());
      return;
    }

    log.info(String.format("Put destination %s for branch %d", Descriptor.toJson(descriptors), branchId));

    synchronized (state.getProp(getKey(NAME_KEY))) {
      List<Descriptor> resolvedDescriptors = new ArrayList<>();
      for (Descriptor descriptor : descriptors) {
        Descriptor resolvedDescriptor = resolver.resolve(descriptor, state);
        if (resolvedDescriptor == null) {
          continue;
        }
        resolvedDescriptors.add(resolvedDescriptor);
      }

      String destinationKey = getKey(BRANCH, branchId, LineageEventBuilder.DESTINATION);
      String currentDestinations = state.getProp(destinationKey);
      List<Descriptor> allDescriptors = Lists.newArrayList();
      if (StringUtils.isNotEmpty(currentDestinations)) {
        allDescriptors = Descriptor.fromJsonList(currentDestinations);
      }
      allDescriptors.addAll(resolvedDescriptors);

      state.setProp(destinationKey, Descriptor.toJson(allDescriptors));
    }
  }
572211
public void setDestinations(java.util.Collection<String> destinations) {
        if (destinations == null) {
            this.destinations = null;
            return;
        }

        this.destinations = new com.amazonaws.internal.SdkInternalList<String>(destinations);
    }
244472
public void setDataItems(List<M> items) {
        boolean changed = this.dataItems != items;
        if (items == null) {
            this.dataItems = null;
        } else {
            this.dataItems = items instanceof BindableListWrapper ? (BindableListWrapper<M>) items
                                                                  : new BindableListWrapper<M>(items);
            if (changed) this.dataItems.addChangeHandler(this);
        }
        addDataItems();
    }
959963
public void setObjectIdentifiers(java.util.Collection<String> objectIdentifiers) {
        if (objectIdentifiers == null) {
            this.objectIdentifiers = null;
            return;
        }

        this.objectIdentifiers = new java.util.ArrayList<String>(objectIdentifiers);
    }
1260879
public void setCaptionDescriptions(java.util.Collection<CaptionDescriptionPreset> captionDescriptions) {
        if (captionDescriptions == null) {
            this.captionDescriptions = null;
            return;
        }

        this.captionDescriptions = new java.util.ArrayList<CaptionDescriptionPreset>(captionDescriptions);
    }
46977
public void setStepStates(java.util.Collection<String> stepStates) {
        if (stepStates == null) {
            this.stepStates = null;
            return;
        }

        this.stepStates = new com.amazonaws.internal.SdkInternalList<String>(stepStates);
    }
752152
public void setDevices(java.util.Collection<DeviceDescription> devices) {
        if (devices == null) {
            this.devices = null;
            return;
        }

        this.devices = new java.util.ArrayList<DeviceDescription>(devices);
    }
801191
public void setIPSets(java.util.Collection<IPSetSummary> iPSets) {
        if (iPSets == null) {
            this.iPSets = null;
            return;
        }

        this.iPSets = new java.util.ArrayList<IPSetSummary>(iPSets);
    }
79714
public void setDatapoints(java.util.Collection<Datapoint> datapoints) {
        if (datapoints == null) {
            this.datapoints = null;
            return;
        }

        this.datapoints = new com.amazonaws.internal.SdkInternalList<Datapoint>(datapoints);
    }
933272
private void initWrite(List<T> datas) {
        if (null == this.datas) {
            this.datas = new ArrayList<T>();
        }
        if (null != datas) {
            this.datas.addAll(datas);
        }
    }
113757
public <T> void put(Descriptor<T> descriptor, T component) {
		store.put(descriptor, component);
	}
733740
public void setData(List<DataSlice> dataSlices)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setData", "DataSlices="+dataSlices);

        _dataSlices = dataSlices;

        _estimatedLength = -1;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setData");
    }
595358
public void setDataList(LinkedList<DataPoint> dataList) {
        DATA_LIST.clear();
        DATA_LIST.addAll(dataList);
        repaint(INNER_BOUNDS);
    }
678660
public void setReadReplicaDBInstanceIdentifiers(java.util.Collection<String> readReplicaDBInstanceIdentifiers) {
        if (readReplicaDBInstanceIdentifiers == null) {
            this.readReplicaDBInstanceIdentifiers = null;
            return;
        }

        this.readReplicaDBInstanceIdentifiers = new com.amazonaws.internal.SdkInternalList<String>(readReplicaDBInstanceIdentifiers);
    }
282957
public void setPartitions(java.util.Collection<Double> partitions) {
        if (partitions == null) {
            this.partitions = null;
            return;
        }

        this.partitions = new java.util.ArrayList<Double>(partitions);
    }
128942
public void setDiskContainers(java.util.Collection<ImageDiskContainer> diskContainers) {
        if (diskContainers == null) {
            this.diskContainers = null;
            return;
        }

        this.diskContainers = new com.amazonaws.internal.SdkInternalList<ImageDiskContainer>(diskContainers);
    }
980502
public void setDataPoints(java.util.Collection<DataPoint> dataPoints) {
        if (dataPoints == null) {
            this.dataPoints = null;
            return;
        }

        this.dataPoints = new java.util.ArrayList<DataPoint>(dataPoints);
    }