public abstract class EntityId extends Object implements IdCompatible
When adding a new type of EntityId, the following must be done:
NamespacedId if the new ID belongs to a namespaceParentedId if the new ID has a parent IDequals() and hashCode(), using the implementations in EntityIdfromString(String string), delegating to fromString(String, Class)Id
(once Id is removed, this is no longer needed)
EntityType, associating the EntityType
with both the new EntityId and old Id
| Modifier | Constructor and Description |
|---|---|
protected |
EntityId(EntityType entity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static <T extends EntityId> |
fromString(String string) |
protected static <T extends EntityId> |
fromString(String string,
Class<T> idClass) |
static <T extends Id> |
fromStringOld(String string,
Class<T> oldIdClass) |
EntityType |
getEntity() |
Iterable<EntityId> |
getHierarchy() |
int |
hashCode() |
static boolean |
isValidDatasetId(String datasetId) |
static boolean |
isValidId(String name) |
protected static String |
next(Iterator<String> iterator,
String fieldName) |
protected static String |
nextAndEnd(Iterator<String> iterator,
String fieldName) |
protected static String |
remaining(Iterator<String> iterator,
String fieldName) |
protected abstract Iterable<String> |
toIdParts() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waittoIdprotected EntityId(EntityType entity)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.