Tabnine Logo
AbstractMappingPartitionAssigner$HostAndIndexInRing.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.liveramp.hank.partition_assigner.AbstractMappingPartitionAssigner$HostAndIndexInRing
constructor

Best Java code snippets using com.liveramp.hank.partition_assigner.AbstractMappingPartitionAssigner$HostAndIndexInRing.<init> (Showing top 2 results out of 315)

origin: LiveRamp/hank

validHosts.add(new HostAndIndexInRing(host, hostIndex));
origin: LiveRamp/hank

 private Map<Integer, Host> getPartitionAssignment(int numPartitions, Host... hosts) {
  List<AbstractMappingPartitionAssigner.HostAndIndexInRing> hostAndIndexInRings = new ArrayList<AbstractMappingPartitionAssigner.HostAndIndexInRing>();
  for (int i = 0; i < hosts.length; ++i) {
   Host host = hosts[i];
   if (host != null) {
    hostAndIndexInRings.add(new AbstractMappingPartitionAssigner.HostAndIndexInRing(host, i));
   }
  }
  RendezVousPartitionAssigner partitionAssigner = new RendezVousPartitionAssigner();
  Domain domain = new MockDomain("domain", 0, numPartitions, null, null, null, null);
  return partitionAssigner.getPartitionsAssignment(domain, hostAndIndexInRings);
 }
}
com.liveramp.hank.partition_assignerAbstractMappingPartitionAssigner$HostAndIndexInRing<init>

Popular methods of AbstractMappingPartitionAssigner$HostAndIndexInRing

  • getHost
  • getIndexInRing

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now