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