Examples of addAffinity()


Examples of org.apache.drill.exec.physical.EndpointAffinity.addAffinity()

    if (ea == null) {
      ea = new EndpointAffinity(endpoint);
      endpointAffinity.put(endpoint, ea);
    }

    ea.addAffinity(affinity);
  }

  public int getMajorFragmentId() {
    return majorFragmentId;
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.EndpointAffinity.addAffinity()

    if (ea == null) {
      ea = new EndpointAffinity(endpoint);
      endpointAffinityMap.put(endpoint, ea);
    }

    ea.addAffinity(affinity);
  }

  public int getMajorFragmentId() {
    return majorFragmentId;
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.EndpointAffinity.addAffinity()

      if (ep != null) {
        EndpointAffinity affinity = affinityMap.get(ep);
        if (affinity == null) {
          affinityMap.put(ep, new EndpointAffinity(ep, 1));
        } else {
          affinity.addAffinity(1);
        }
      }
    }
    logger.debug("Took {} µs to get operator affinity", watch.elapsed(TimeUnit.NANOSECONDS)/1000);
    return Lists.newArrayList(affinityMap.values());
View Full Code Here

Examples of org.apache.drill.exec.physical.EndpointAffinity.addAffinity()

        if (ep != null) {
          EndpointAffinity affinity = affinityMap.get(ep);
          if (affinity == null) {
            affinityMap.put(ep, new EndpointAffinity(ep, 1));
          } else {
            affinity.addAffinity(1);
          }
          break;
        }
      }
    }
View Full Code Here

Examples of org.apache.drill.exec.physical.EndpointAffinity.addAffinity()

      if (ep != null) {
        EndpointAffinity affinity = affinityMap.get(ep);
        if (affinity == null) {
          affinityMap.put(ep, new EndpointAffinity(ep, 1));
        } else {
          affinity.addAffinity(1);
        }
      }
    }
    logger.debug("Took {} µs to get operator affinity", watch.elapsed(TimeUnit.NANOSECONDS)/1000);
    return Lists.newArrayList(affinityMap.values());
View Full Code Here

Examples of org.apache.drill.exec.physical.EndpointAffinity.addAffinity()

      if (ep != null) {
        EndpointAffinity affinity = affinityMap.get(ep);
        if (affinity == null) {
          affinityMap.put(ep, new EndpointAffinity(ep, 1));
        } else {
          affinity.addAffinity(1);
        }
      }
    }
    logger.debug("Took {} µs to get operator affinity", watch.elapsed(TimeUnit.NANOSECONDS)/1000);
    return Lists.newArrayList(affinityMap.values());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.