public final class DbConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DbConfig.BypassEntry
Bypass configuration entry from config file.
|
static class |
DbConfig.BypassTableEntry
Table to partitions mapping.
|
static class |
DbConfig.BypassTableEntryDeserializer
Deserializer of BypassTableEntry
Enables flexible syntax: either a single table name can be specified, and all belonging
partitions will be bypassed;
or an object of form
{"table": "tableName", "partitions": ["part1", "part2"]}
can be used, and individual partitions can be specified.
|
Constructor and Description |
---|
DbConfig(DbConfig.BypassEntry bypassEntry) |
Modifier and Type | Method and Description |
---|---|
static DbConfig |
empty()
Returns an empty configuration.
|
DbConfig.BypassEntry |
getBypassEntry() |
UdbBypassSpec |
getUdbBypassSpec() |
public DbConfig(@Nullable DbConfig.BypassEntry bypassEntry)
bypassEntry
- bypass entrypublic static DbConfig empty()
public DbConfig.BypassEntry getBypassEntry()
DbConfig.BypassEntry
from config filepublic UdbBypassSpec getUdbBypassSpec()
UdbBypassSpec
objectCopyright © 2023. All Rights Reserved.