Class NamespaceId

java.lang.Object
org.apache.accumulo.core.data.AbstractId<NamespaceId>
org.apache.accumulo.core.data.NamespaceId
All Implemented Interfaces:
Serializable, Comparable<NamespaceId>

public class NamespaceId extends AbstractId<NamespaceId>
A strongly typed representation of a namespace ID. This class cannot be used to get a namespace ID from a namespace name, but does provide the namespace ID string wrapped with a stronger type. The constructor for this class will throw an error if the canonical parameter is null.
Since:
2.0.0
See Also:
  • Method Details

    • of

      public static NamespaceId of(String canonical)
      Get a NamespaceId object for the provided canonical string. This is guaranteed to be non-null
      Parameters:
      canonical - Namespace ID string
      Returns:
      NamespaceId object