Package com.zendesk.maxwell.schema
Class Schema
- java.lang.Object
-
- com.zendesk.maxwell.schema.Schema
-
public class Schema extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Schema.FullColumnDef
-
Constructor Summary
Constructors Constructor Description Schema(List<Database> databases, String charset, CaseSensitivity sensitivity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDatabase(Database d)
static boolean
charsetEquals(String thisCharset, String thatCharset)
List<String>
diff(Schema that, String thisName, String thatName)
boolean
equals(Schema that)
Database
findDatabase(String string)
Database
findDatabaseOrThrow(String name)
CaseSensitivity
getCaseSensitivity()
String
getCharset()
List<String>
getDatabaseNames()
Collection<Database>
getDatabases()
boolean
hasDatabase(String string)
List<org.apache.commons.lang3.tuple.Pair<Schema.FullColumnDef,Schema.FullColumnDef>>
matchColumns(Schema thatSchema)
void
removeDatabase(Database d)
-
-
-
Constructor Detail
-
Schema
public Schema(List<Database> databases, String charset, CaseSensitivity sensitivity)
-
-
Method Detail
-
getDatabases
public Collection<Database> getDatabases()
-
findDatabaseOrThrow
public Database findDatabaseOrThrow(String name) throws InvalidSchemaError
- Throws:
InvalidSchemaError
-
hasDatabase
public boolean hasDatabase(String string)
-
addDatabase
public void addDatabase(Database d)
-
removeDatabase
public void removeDatabase(Database d)
-
equals
public boolean equals(Schema that)
-
getCharset
public String getCharset()
-
getCaseSensitivity
public CaseSensitivity getCaseSensitivity()
-
matchColumns
public List<org.apache.commons.lang3.tuple.Pair<Schema.FullColumnDef,Schema.FullColumnDef>> matchColumns(Schema thatSchema)
-
-