Skip to content

Commit b2e7bf9

Browse files
committed
format code
1 parent ce8d2ad commit b2e7bf9

File tree

4 files changed

+34
-15
lines changed

4 files changed

+34
-15
lines changed

src/main/java/org/apache/flink/connector/jdbc/catalog/GenericInJdbcCatalog.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818

1919
package org.apache.flink.connector.jdbc.catalog;
2020

21-
import static org.apache.flink.util.Preconditions.checkArgument;
22-
import static org.apache.flink.util.Preconditions.checkNotNull;
23-
import static org.apache.flink.util.StringUtils.isNullOrWhitespaceOnly;
24-
2521
import org.apache.flink.connector.jdbc.catalog.common.CatalogViewSerialize;
2622
import org.apache.flink.connector.jdbc.catalog.common.DesensitiveUtil;
2723
import org.apache.flink.connector.jdbc.catalog.common.EncryptUtil;
@@ -58,6 +54,10 @@
5854
import java.sql.*;
5955
import java.util.*;
6056

57+
import static org.apache.flink.util.Preconditions.checkArgument;
58+
import static org.apache.flink.util.Preconditions.checkNotNull;
59+
import static org.apache.flink.util.StringUtils.isNullOrWhitespaceOnly;
60+
6161
/** A generic catalog implementation that holds all meta objects in jdbc with no cache. */
6262
public class GenericInJdbcCatalog extends AbstractCatalog {
6363

@@ -520,10 +520,10 @@ public void createPartition(
520520
CatalogPartition partition,
521521
boolean ignoreIfExists)
522522
throws TableNotExistException,
523-
TableNotPartitionedException,
524-
PartitionSpecInvalidException,
525-
PartitionAlreadyExistsException,
526-
CatalogException {
523+
TableNotPartitionedException,
524+
PartitionSpecInvalidException,
525+
PartitionAlreadyExistsException,
526+
CatalogException {
527527
throw new UnsupportedOperationException();
528528
}
529529

@@ -903,9 +903,9 @@ public List<CatalogPartitionSpec> listPartitions(ObjectPath tablePath)
903903
public List<CatalogPartitionSpec> listPartitions(
904904
ObjectPath tablePath, CatalogPartitionSpec partitionSpec)
905905
throws TableNotExistException,
906-
TableNotPartitionedException,
907-
PartitionSpecInvalidException,
908-
CatalogException {
906+
TableNotPartitionedException,
907+
PartitionSpecInvalidException,
908+
CatalogException {
909909
return null;
910910
}
911911

src/main/java/org/apache/flink/connector/jdbc/catalog/common/CatalogViewSerialize.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package org.apache.flink.connector.jdbc.catalog.common;
220

321
import org.apache.flink.table.api.Schema;

src/main/java/org/apache/flink/connector/jdbc/catalog/factory/GenericInJdbcCatalogFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
package org.apache.flink.connector.jdbc.catalog.factory;
2020

21-
import static org.apache.flink.connector.jdbc.catalog.factory.GenericInJdbcCatalogFactoryOptions.*;
22-
import static org.apache.flink.table.factories.FactoryUtil.PROPERTY_VERSION;
23-
2421
import org.apache.flink.configuration.ConfigOption;
2522
import org.apache.flink.connector.jdbc.catalog.GenericInJdbcCatalog;
2623
import org.apache.flink.table.catalog.Catalog;
@@ -32,6 +29,9 @@
3229
import java.util.HashSet;
3330
import java.util.Set;
3431

32+
import static org.apache.flink.connector.jdbc.catalog.factory.GenericInJdbcCatalogFactoryOptions.*;
33+
import static org.apache.flink.table.factories.FactoryUtil.PROPERTY_VERSION;
34+
3535
/** Factory for {@link GenericInJdbcCatalog}. */
3636
public class GenericInJdbcCatalogFactory implements CatalogFactory {
3737

src/main/java/org/apache/flink/connector/jdbc/catalog/factory/GenericInJdbcCatalogFactoryOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ public class GenericInJdbcCatalogFactoryOptions {
4848
public static final ConfigOption<String> SECRET_KEY =
4949
ConfigOptions.key("secret.key").stringType().noDefaultValue();
5050

51-
private GenericInJdbcCatalogFactoryOptions() {}
51+
private GenericInJdbcCatalogFactoryOptions() {
52+
}
5253
}

0 commit comments

Comments
 (0)