/** * List all namespaces * * @return list of all namespace metas */ public List<NamespaceMeta> list() { return list(getNamespaceKey(null), NamespaceMeta.class); }
/** * List all namespaces * * @return list of all namespace metas */ public List<NamespaceMeta> list() { return list(getNamespaceKey(null), NamespaceMeta.class); }
/** * Get the namespace meta using the namespace id * * @param id id of the namespace * @return the namespace meta, null if not found */ @Nullable public NamespaceMeta get(NamespaceId id) { return getFirst(getNamespaceKey(id.getEntityName()), NamespaceMeta.class); }
/** * Get the namespace meta using the namespace id * * @param id id of the namespace * @return the namespace meta, null if not found */ @Nullable public NamespaceMeta get(NamespaceId id) { return getFirst(getNamespaceKey(id.getEntityName()), NamespaceMeta.class); }
/** * Create the namespace using the namespace meta * * @param metadata the namespace metadata for the namespace */ public void create(NamespaceMeta metadata) { write(getNamespaceKey(metadata.getName()), metadata); }
/** * Delete the namespace from the dataset * * @param id id of the namespace */ public void delete(NamespaceId id) { deleteAll(getNamespaceKey(id.getEntityName())); }
/** * Create the namespace using the namespace meta * * @param metadata the namespace metadata for the namespace */ public void create(NamespaceMeta metadata) { write(getNamespaceKey(metadata.getName()), metadata); }
/** * Delete the namespace from the dataset * * @param id id of the namespace */ public void delete(NamespaceId id) { deleteAll(getNamespaceKey(id.getEntityName())); }