cascading.lingual.catalog
Class SchemaDef

java.lang.Object
  extended by cascading.lingual.catalog.Def
      extended by cascading.lingual.catalog.SchemaDef
All Implemented Interfaces:
Serializable

public class SchemaDef
extends Def

Class SchemaDef manages all "schema" related meta-data.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cascading.lingual.catalog.Def
identifier, name, parentSchema
 
Constructor Summary
SchemaDef()
           
SchemaDef(Protocol defaultProtocol, Format defaultFormat)
           
SchemaDef(SchemaDef parentSchema, String name, Protocol defaultProtocol, Format defaultFormat)
           
SchemaDef(SchemaDef parentSchema, String name, Protocol defaultProtocol, Format defaultFormat, String identifier)
           
 
Method Summary
 void addFormatProperties(Format format, Map<String,List<String>> properties)
           
 void addFormatProperty(Format format, String property, List<String> values)
           
 void addFormatProperty(Format format, String property, String... values)
           
 void addProtocolProperties(Protocol protocol, Map<String,List<String>> properties)
           
 void addProtocolProperty(Protocol protocol, String property, List<String> values)
           
 void addProtocolProperty(Protocol protocol, String property, String... values)
           
 boolean addSchema(String name, Protocol protocol, Format format)
           
 boolean addSchema(String name, Protocol protocol, Format format, String identifier)
           
 void addStereotype(cascading.bind.catalog.Stereotype<Protocol,Format> stereotype)
           
 void addTable(String name, String identifier, cascading.bind.catalog.Stereotype<Protocol,Format> stereotype, Protocol protocol, Format format)
           
 SchemaDef copyWith(String name)
           
 boolean equals(Object object)
           
 Format findDefaultFormat()
           
 Protocol findDefaultProtocol()
           
 cascading.bind.catalog.Stereotype<Protocol,Format> findStereotypeFor(Fields fields)
           
 TableDef findTableFor(String identifier)
           
 Collection<String> getChildSchemaNames()
           
 Collection<SchemaDef> getChildSchemas()
           
 Collection<String> getChildTableNames()
           
 Collection<TableDef> getChildTables()
           
 Format getDefaultFormat()
           
 Protocol getDefaultProtocol()
           
 Collection<String> getFormatNames()
           
 Map<Format,List<String>> getFormatProperties(String property)
           
 Collection<String> getProtocolNames()
           
 Map<Protocol,List<String>> getProtocolProperties(String property)
           
 SchemaDef getSchema(String name)
           
 cascading.bind.catalog.Stereotype<Protocol,Format> getStereotype(String stereotypeName)
           
 Collection<String> getStereotypeNames()
           
 TableDef getTable(String name)
           
 int hashCode()
           
 boolean hasStereotype(String name)
           
 boolean isRoot()
           
 boolean removeSchema(String schemaName)
           
 boolean removeStereotype(String name)
           
 boolean removeTable(String schemaName, String tableName)
           
 boolean renameSchema(String schemaName, String newName)
           
 boolean renameStereotype(String name, String newName)
           
 boolean renameTable(String schemaName, String tableName, String newName)
           
 void setDefaultFormat(Format defaultFormat)
           
 void setDefaultProtocol(Protocol defaultProtocol)
           
 
Methods inherited from class cascading.lingual.catalog.Def
getIdentifier, getName, getParentSchema, setIdentifier, setName, setParentSchema, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaDef

public SchemaDef()

SchemaDef

public SchemaDef(Protocol defaultProtocol,
                 Format defaultFormat)

SchemaDef

public SchemaDef(SchemaDef parentSchema,
                 String name,
                 Protocol defaultProtocol,
                 Format defaultFormat)

SchemaDef

public SchemaDef(SchemaDef parentSchema,
                 String name,
                 Protocol defaultProtocol,
                 Format defaultFormat,
                 String identifier)
Method Detail

copyWith

public SchemaDef copyWith(String name)

isRoot

public boolean isRoot()

getDefaultProtocol

public Protocol getDefaultProtocol()

findDefaultProtocol

public Protocol findDefaultProtocol()

setDefaultProtocol

public void setDefaultProtocol(Protocol defaultProtocol)

getDefaultFormat

public Format getDefaultFormat()

findDefaultFormat

public Format findDefaultFormat()

setDefaultFormat

public void setDefaultFormat(Format defaultFormat)

addProtocolProperties

public void addProtocolProperties(Protocol protocol,
                                  Map<String,List<String>> properties)

addProtocolProperty

public void addProtocolProperty(Protocol protocol,
                                String property,
                                String... values)

addProtocolProperty

public void addProtocolProperty(Protocol protocol,
                                String property,
                                List<String> values)

getProtocolProperties

public Map<Protocol,List<String>> getProtocolProperties(String property)

addFormatProperties

public void addFormatProperties(Format format,
                                Map<String,List<String>> properties)

addFormatProperty

public void addFormatProperty(Format format,
                              String property,
                              String... values)

addFormatProperty

public void addFormatProperty(Format format,
                              String property,
                              List<String> values)

getFormatProperties

public Map<Format,List<String>> getFormatProperties(String property)

getChildSchemas

public Collection<SchemaDef> getChildSchemas()

getChildSchemaNames

public Collection<String> getChildSchemaNames()

getChildTables

public Collection<TableDef> getChildTables()

getChildTableNames

public Collection<String> getChildTableNames()

addSchema

public boolean addSchema(String name,
                         Protocol protocol,
                         Format format)

addSchema

public boolean addSchema(String name,
                         Protocol protocol,
                         Format format,
                         String identifier)

removeSchema

public boolean removeSchema(String schemaName)

renameSchema

public boolean renameSchema(String schemaName,
                            String newName)

getSchema

public SchemaDef getSchema(String name)

getTable

public TableDef getTable(String name)

removeTable

public boolean removeTable(String schemaName,
                           String tableName)

renameTable

public boolean renameTable(String schemaName,
                           String tableName,
                           String newName)

addTable

public void addTable(String name,
                     String identifier,
                     cascading.bind.catalog.Stereotype<Protocol,Format> stereotype,
                     Protocol protocol,
                     Format format)

findTableFor

public TableDef findTableFor(String identifier)

getStereotype

public cascading.bind.catalog.Stereotype<Protocol,Format> getStereotype(String stereotypeName)

addStereotype

public void addStereotype(cascading.bind.catalog.Stereotype<Protocol,Format> stereotype)

removeStereotype

public boolean removeStereotype(String name)

renameStereotype

public boolean renameStereotype(String name,
                                String newName)

findStereotypeFor

public cascading.bind.catalog.Stereotype<Protocol,Format> findStereotypeFor(Fields fields)

hasStereotype

public boolean hasStereotype(String name)

getFormatNames

public Collection<String> getFormatNames()

getProtocolNames

public Collection<String> getProtocolNames()

getStereotypeNames

public Collection<String> getStereotypeNames()

equals

public boolean equals(Object object)
Overrides:
equals in class Def

hashCode

public int hashCode()
Overrides:
hashCode in class Def


Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.