| Package | Description |
|---|---|
| com.at.avro | |
| com.at.avro.config | |
| com.at.avro.formatters |
| Modifier and Type | Method and Description |
|---|---|
AvroSchema |
DbSchemaExtractor.getForTable(AvroConfig avroConfig,
String dbSchemaName,
String tableName)
Returns AvroSchema for a specific table.
|
| Modifier and Type | Method and Description |
|---|---|
List<AvroSchema> |
DbSchemaExtractor.getAll(AvroConfig avroConfig)
Returns all AvroSchemas that are present in a target DB
|
List<AvroSchema> |
DbSchemaExtractor.getForSchema(AvroConfig avroConfig,
String dbSchemaName)
Returns all AvroSchemas that are present in given DB schema
|
List<AvroSchema> |
DbSchemaExtractor.getForTables(AvroConfig avroConfig,
String dbSchemaName,
String... tableNames)
Returns AvroSchemas for each of given tables
Note: when you have a schema with a large amount of tables but are only interested in a few of them,
consider calling getForTable() several times (separately for every table).
|
| Modifier and Type | Method and Description |
|---|---|
static String |
SchemaGenerator.generate(AvroSchema schema)
Generates an avro schema based on default formatting configuration.
|
static String |
SchemaGenerator.generate(AvroSchema schema,
FormatterConfig config)
Generates an avro schema based on a given FormatterConfig
|
| Modifier and Type | Method and Description |
|---|---|
java.util.function.BiConsumer<AvroSchema,schemacrawler.schema.Table> |
AvroConfig.getAvroSchemaPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
AvroConfig |
AvroConfig.setAvroSchemaPostProcessor(java.util.function.BiConsumer<AvroSchema,schemacrawler.schema.Table> avroSchemaPostProcessor)
Set a callback that will be called after avro model was built.
|
| Modifier and Type | Method and Description |
|---|---|
String |
SchemaFormatter.formatFields(FormatterConfig config,
AvroSchema schema) |
String |
SchemaFormatter.toJson(AvroSchema avroSchema,
FormatterConfig config) |
Copyright © 2021. All rights reserved.