Class Namespace
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.api.Namespace
-
public final class Namespace extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Namespace
DEFAULT_NAMESPACE
static Namespace
EMPTY_NAMESPACE
static Pattern
LOOSELY_CHECKED_NAME
Less restrictive name pattern (letters, numbers, underscores, and hyphens).static Pattern
STRICTLY_CHECKED_NAME
Restrictive name pattern (letters, numbers, and non-initial single underscores).static Pattern
UNCHECKED_NAME
Unchecked name pattern (no dots).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Namespace
create(String name)
static Namespace
create(String name, Pattern pattern)
boolean
equals(Object obj)
String
getName()
int
hashCode()
boolean
isEmptyNamespace()
String
toString()
-
-
-
Field Detail
-
EMPTY_NAMESPACE
public static final Namespace EMPTY_NAMESPACE
-
DEFAULT_NAMESPACE
public static final Namespace DEFAULT_NAMESPACE
-
UNCHECKED_NAME
public static final Pattern UNCHECKED_NAME
Unchecked name pattern (no dots).This will not protect you from creating namespace that are incompatible with your underlying datastore.
Use
LOOSELY_CHECKED_NAME
orSTRICTLY_CHECKED_NAME
if possible.
-
LOOSELY_CHECKED_NAME
public static final Pattern LOOSELY_CHECKED_NAME
Less restrictive name pattern (letters, numbers, underscores, and hyphens).Use
STRICTLY_CHECKED_NAME
if possible.
-
STRICTLY_CHECKED_NAME
public static final Pattern STRICTLY_CHECKED_NAME
Restrictive name pattern (letters, numbers, and non-initial single underscores).
-
-
Method Detail
-
isEmptyNamespace
public boolean isEmptyNamespace()
-
getName
public String getName()
-
-