public class

PartitionId

extends Id
java.lang.Object
   ↳ org.apache.helix.api.id.Id
     ↳ org.apache.helix.api.id.PartitionId

Summary

Public Constructors
PartitionId(ResourceId resourceId, String partitionName)
Instantiate for a resource and suffix
Public Methods
static ResourceId extractResourceId(String partitionName)
static PartitionId from(ResourceId resourceId, String partitionSuffix)
Get a concrete partition id
static PartitionId from(String partitionId)
Get a concrete partition id
ResourceId getResourceId()
Get the id of the resource containing this partition
String stringify()
static String stripResourceId(String partitionName)
static PartitionId valueOf(String partitionId)
Same as from(String).
[Expand]
Inherited Methods
From class org.apache.helix.api.id.Id
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public PartitionId (ResourceId resourceId, String partitionName)

Instantiate for a resource and suffix

Parameters
resourceId resource that the partition belongs to
partitionName name of the partition relative to the resource

Public Methods

public static ResourceId extractResourceId (String partitionName)

public static PartitionId from (ResourceId resourceId, String partitionSuffix)

Get a concrete partition id

Parameters
resourceId resource identifier
partitionSuffix partition identifier relative to a resource
Returns
  • PartitionId

public static PartitionId from (String partitionId)

Get a concrete partition id

Parameters
partitionId string partition identifier
Returns
  • PartitionId

public ResourceId getResourceId ()

Get the id of the resource containing this partition

Returns
  • ResourceId

public String stringify ()

public static String stripResourceId (String partitionName)

public static PartitionId valueOf (String partitionId)

Same as from(String).

Parameters
partitionId string partition identifier
Returns
  • PartitionId