public class SqlDatasetDescriptor extends BaseDatasetDescriptor implements DatasetDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlDatasetDescriptor.Platform |
| Modifier and Type | Field and Description |
|---|---|
protected String |
databaseName |
protected static String |
SEPARATION_CHAR |
protected String |
tableName |
| Constructor and Description |
|---|
SqlDatasetDescriptor(com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isPathContaining(DatasetDescriptor other)
Check if the dbName and tableName specified in 's path are accepted by the set of dbName.tableName
combinations defined by the current
SqlDatasetDescriptor. |
protected boolean |
isPlatformValid() |
containsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getDescription, getFormatConfig, getPath, getPlatform, getRawConfig, isRetentionAppliedprotected static final String SEPARATION_CHAR
protected final String databaseName
protected final String tableName
public SqlDatasetDescriptor(com.typesafe.config.Config config)
throws IOException
IOExceptionprotected boolean isPlatformValid()
protected boolean isPathContaining(DatasetDescriptor other)
SqlDatasetDescriptor. For example, let:
this.path = "test_.*;test_table_.*". Then:
isPathContaining("test_db1;test_table_1") = true
isPathContaining("testdb1;test_table_2") = false
NOTE: otherPath cannot be a globPattern. So:
isPathContaining("test_db.*;test_table_*") = falseisPathContaining in class BaseDatasetDescriptorother - whose path should be in the format of dbName.tableName