public class SchemaSet
extends java.lang.Object
| Constructor | Description |
|---|---|
SchemaSet(java.util.List<Schema> schemas,
boolean useDefaultSchema) |
Define a schema set.
|
| Modifier and Type | Method | Description |
|---|---|---|
static SchemaSet |
getDefaultSchemaSet() |
Return the default (empty) schema set
|
static java.lang.String |
getNamedPath(CuratorFramework client,
java.lang.String name) |
Utility to return a ZNode path for the given name
|
Schema |
getNamedSchema(java.lang.String name) |
Return the schema with the given key/name
|
Schema |
getSchema(java.lang.String path) |
Find the first matching schema for the path and return it
|
java.util.Collection<Schema> |
getSchemas() |
Return the schemas
|
java.lang.String |
toDocumentation() |
Build a user displayable documentation string for the schemas in this set
|
public SchemaSet(java.util.List<Schema> schemas, boolean useDefaultSchema)
schemas - the schemas for the set.useDefaultSchema - if true, return a default schema when there is no match. Otherwise, an exception is thrownpublic static SchemaSet getDefaultSchemaSet()
public java.util.Collection<Schema> getSchemas()
public Schema getSchema(java.lang.String path)
path - ZNode full pathpublic static java.lang.String getNamedPath(CuratorFramework client, java.lang.String name)
client - Curator clientname - path/schema namepublic Schema getNamedSchema(java.lang.String name)
name - namepublic java.lang.String toDocumentation()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.