diff --git a/checkstyle/checkstyle-suppressions.xml b/checkstyle/checkstyle-suppressions.xml
index 250e0fa411f10..20c95378d0a91 100644
--- a/checkstyle/checkstyle-suppressions.xml
+++ b/checkstyle/checkstyle-suppressions.xml
@@ -24,4 +24,6 @@
+
diff --git a/checkstyle/checkstyle.xml b/checkstyle/checkstyle.xml
index 3e674bda23444..87b156c1f221f 100644
--- a/checkstyle/checkstyle.xml
+++ b/checkstyle/checkstyle.xml
@@ -135,4 +135,12 @@
-->
+
+
+
+
+
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/clustering/KMeansClusterizationExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/clustering/KMeansClusterizationExample.java
index 3127418f9653f..b834529280fbd 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/clustering/KMeansClusterizationExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/clustering/KMeansClusterizationExample.java
@@ -62,7 +62,8 @@ public static void main(String[] args) throws IOException {
try {
dataCache = new SandboxMLCache(ignite).fillCacheWith(MLSandboxDatasets.TWO_CLASSED_IRIS);
- Vectorizer vectorizer = new DummyVectorizer().labeled(Vectorizer.LabelCoordinate.FIRST);
+ Vectorizer vectorizer =
+ new DummyVectorizer().labeled(Vectorizer.LabelCoordinate.FIRST);
KMeansTrainer trainer = new KMeansTrainer();
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/dataset/AlgorithmSpecificDatasetExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/dataset/AlgorithmSpecificDatasetExample.java
index 731227f093b5e..85102f42242ff 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/dataset/AlgorithmSpecificDatasetExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/dataset/AlgorithmSpecificDatasetExample.java
@@ -80,7 +80,8 @@ public static void main(String[] args) throws Exception {
Vectorizer vectorizer = new DummyVectorizer<>(1);
- IgniteFunction, LabeledVector> func = lv -> new LabeledVector<>(lv.features(), new double[] {lv.label()});
+ IgniteFunction, LabeledVector> func =
+ lv -> new LabeledVector<>(lv.features(), new double[] {lv.label()});
//NOTE: This class is part of Developer API and all lambdas should be loaded on server manually.
Preprocessor preprocessor = new PatchedPreprocessor<>(func, vectorizer);
@@ -89,18 +90,19 @@ public static void main(String[] args) throws Exception {
SimpleLabeledDatasetDataBuilder builder =
new SimpleLabeledDatasetDataBuilder<>(preprocessor);
- IgniteBiFunction builderFun = (data, ctx) -> {
- double[] features = data.getFeatures();
- int rows = data.getRows();
+ IgniteBiFunction builderFun =
+ (data, ctx) -> {
+ double[] features = data.getFeatures();
+ int rows = data.getRows();
- // Makes a copy of features to supplement it by columns with values equal to 1.0.
- double[] a = new double[features.length + rows];
- Arrays.fill(a, 1.0);
+ // Makes a copy of features to supplement it by columns with values equal to 1.0.
+ double[] a = new double[features.length + rows];
+ Arrays.fill(a, 1.0);
- System.arraycopy(features, 0, a, rows, features.length);
+ System.arraycopy(features, 0, a, rows, features.length);
- return new SimpleLabeledDatasetData(a, data.getLabels(), rows);
- };
+ return new SimpleLabeledDatasetData(a, data.getLabels(), rows);
+ };
try (AlgorithmSpecificDataset dataset = DatasetFactory.create(
ignite,
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/catboost/CatboostClassificationModelParserExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/catboost/CatboostClassificationModelParserExample.java
index e6f9f657a8a18..093469a6069e9 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/catboost/CatboostClassificationModelParserExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/catboost/CatboostClassificationModelParserExample.java
@@ -53,7 +53,8 @@ public class CatboostClassificationModelParserExample {
/**
* Test expected results.
*/
- private static final String TEST_ER_RES = "examples/src/main/resources/datasets/amazon-employee-access-challenge-sample-catboost-expected-results.csv";
+ private static final String TEST_ER_RES =
+ "examples/src/main/resources/datasets/amazon-employee-access-challenge-sample-catboost-expected-results.csv";
/**
* Parser.
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/exchange/KMeansClusterizationExportImportExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/exchange/KMeansClusterizationExportImportExample.java
index ec5e6899f7eab..f841a06e593c9 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/exchange/KMeansClusterizationExportImportExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/exchange/KMeansClusterizationExportImportExample.java
@@ -62,7 +62,8 @@ public static void main(String[] args) throws IOException {
try {
dataCache = new SandboxMLCache(ignite).fillCacheWith(MLSandboxDatasets.TWO_CLASSED_IRIS);
- Vectorizer vectorizer = new DummyVectorizer().labeled(Vectorizer.LabelCoordinate.FIRST);
+ Vectorizer vectorizer =
+ new DummyVectorizer().labeled(Vectorizer.LabelCoordinate.FIRST);
KMeansTrainer trainer = new KMeansTrainer()
.withDistance(new WeightedMinkowskiDistance(2, new double[] {5.9360, 2.7700, 4.2600, 1.3260}));
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeFromSparkExample.java
index d03bb966f6a7d..41717ba9bcb48 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeFromSparkExample.java
@@ -50,15 +50,18 @@ public class DecisionTreeFromSparkExample {
.toPath().toAbsolutePath().toString();
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> Decision Tree model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> Decision Tree model loaded from Spark through serialization over partitioned dataset usage example started."
+ );
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeRegressionFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeRegressionFromSparkExample.java
index 5fd446140f38a..f0e95fdb92ee2 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeRegressionFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/DecisionTreeRegressionFromSparkExample.java
@@ -50,15 +50,18 @@ public class DecisionTreeRegressionFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/dtreg";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> Decision tree regression model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> Decision tree regression model loaded from Spark through serialization over partitioned dataset usage example started."
+ );
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTFromSparkExample.java
index 1fc72fa8d898c..4154f24695d0f 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTFromSparkExample.java
@@ -48,15 +48,18 @@ public class GBTFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/gbt";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> Gradient Boosted trees model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> Gradient Boosted trees model loaded from Spark through serialization over partitioned dataset usage example started."
+ );
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTRegressionFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTRegressionFromSparkExample.java
index ee3e8bf9f2c81..561ab9c7bfa79 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTRegressionFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/GBTRegressionFromSparkExample.java
@@ -50,15 +50,18 @@ public class GBTRegressionFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/gbtreg";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> GBT Regression model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> GBT Regression model loaded from Spark through serialization over partitioned dataset usage example started."
+ );
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/KMeansFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/KMeansFromSparkExample.java
index 3ac8b64b7af59..5aa6527329652 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/KMeansFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/KMeansFromSparkExample.java
@@ -50,8 +50,9 @@ public class KMeansFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/kmeans";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LinearRegressionFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LinearRegressionFromSparkExample.java
index b799d403f47a2..52842aac1c2cd 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LinearRegressionFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LinearRegressionFromSparkExample.java
@@ -50,15 +50,17 @@ public class LinearRegressionFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/linreg";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> Linear regression model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> Linear regression model loaded from Spark through serialization over partitioned dataset usage example started.");
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LogRegFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LogRegFromSparkExample.java
index 4a4df17ec3c9b..725ac3873ee62 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LogRegFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/LogRegFromSparkExample.java
@@ -48,15 +48,18 @@ public class LogRegFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/logreg";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> Logistic regression model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> Logistic regression model loaded from Spark through serialization over partitioned dataset usage example started."
+ );
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestFromSparkExample.java
index 404ad840f5c64..641285dded444 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestFromSparkExample.java
@@ -48,15 +48,18 @@ public class RandomForestFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/rf";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> Random Forest model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> Random Forest model loaded from Spark through serialization over partitioned dataset usage example started."
+ );
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestRegressionFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestRegressionFromSparkExample.java
index 5f535f104e160..c1b8babd7a1b9 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestRegressionFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/RandomForestRegressionFromSparkExample.java
@@ -50,15 +50,18 @@ public class RandomForestRegressionFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/rfreg";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
*/
public static void main(String[] args) throws FileNotFoundException {
System.out.println();
- System.out.println(">>> Random Forest regression model loaded from Spark through serialization over partitioned dataset usage example started.");
+ System.out.println(
+ ">>> Random Forest regression model loaded from Spark through serialization over partitioned dataset usage example started."
+ );
// Start ignite grid.
try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
System.out.println(">>> Ignite grid started.");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/SVMFromSparkExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/SVMFromSparkExample.java
index d66e8820794d2..adcab7a020708 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/SVMFromSparkExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/inference/spark/modelparser/SVMFromSparkExample.java
@@ -48,8 +48,9 @@ public class SVMFromSparkExample {
public static final String SPARK_MDL_PATH = "examples/src/main/resources/models/spark/serialized/svm";
/** Learning environment. */
- public static final LearningEnvironment env = LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
- .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
+ public static final LearningEnvironment env =
+ LearningEnvironmentBuilder.defaultBuilder().withParallelismStrategyTypeDependency(ParallelismStrategy.ON_DEFAULT_POOL)
+ .withLoggingFactoryDependency(ConsoleLogger.Factory.HIGH).buildForTrainer();
/**
* Run example.
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/multiclass/OneVsRestClassificationExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/multiclass/OneVsRestClassificationExample.java
index dd5fecf941263..14b05c4890f97 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/multiclass/OneVsRestClassificationExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/multiclass/OneVsRestClassificationExample.java
@@ -145,7 +145,12 @@ public static void main(String[] args) throws IOException {
confusionMtxWithMinMaxScaling[idx1][idx2]++;
- System.out.printf(">>> | %.4f\t\t| %.4f\t\t\t\t\t\t| %.4f\t\t|\n", prediction, predictionWithMinMaxScaling, groundTruth);
+ System.out.printf(
+ ">>> | %.4f\t\t| %.4f\t\t\t\t\t\t| %.4f\t\t|\n",
+ prediction,
+ predictionWithMinMaxScaling,
+ groundTruth
+ );
}
System.out.println(">>> ----------------------------------------------------------------");
System.out.println("\n>>> -----------------One-vs-Rest SVM model-------------");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/preprocessing/encoding/TargetEncoderExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/preprocessing/encoding/TargetEncoderExample.java
index e3864b6721d79..82089acd8a035 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/preprocessing/encoding/TargetEncoderExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/preprocessing/encoding/TargetEncoderExample.java
@@ -71,8 +71,8 @@ public static void main(String[] args) {
Set targetEncodedfeaturesIndexies = new HashSet<>(Arrays.asList(1, 5, 6));
Integer targetIndex = 0;
- final Vectorizer vectorizer = new ObjectArrayVectorizer(featuresIndexies.toArray(new Integer[0]))
- .labeled(targetIndex);
+ final Vectorizer vectorizer =
+ new ObjectArrayVectorizer(featuresIndexies.toArray(new Integer[0])).labeled(targetIndex);
Preprocessor strEncoderPreprocessor = new EncoderTrainer()
.withEncoderType(EncoderType.STRING_ENCODER)
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/BostonHousePricesPredictionExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/BostonHousePricesPredictionExample.java
index c572d81038741..9d2b31683c84e 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/BostonHousePricesPredictionExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/BostonHousePricesPredictionExample.java
@@ -42,7 +42,8 @@
* Description of model can be found in: https://en.wikipedia.org/wiki/Linear_regression . Original dataset can be
* downloaded from: https://archive.ics.uci.edu/ml/machine-learning-databases/housing/ . Copy of dataset are stored in:
* modules/ml/src/main/resources/datasets/boston_housing_dataset.txt . Score for regression estimation: R^2 (coefficient
- * of determination). Description of score evaluation can be found in: https://stattrek.com/statistics/dictionary.aspx?definition=coefficient_of_determination
+ * of determination). Description of score evaluation can be found in:
+ * https://stattrek.com/statistics/dictionary.aspx?definition=coefficient_of_determination
* .
*/
public class BostonHousePricesPredictionExample {
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/LinearRegressionLSQRTrainerWithMinMaxScalerExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/LinearRegressionLSQRTrainerWithMinMaxScalerExample.java
index 9979d3c0215ee..35dbdcd791709 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/LinearRegressionLSQRTrainerWithMinMaxScalerExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/LinearRegressionLSQRTrainerWithMinMaxScalerExample.java
@@ -92,7 +92,9 @@ public static void main(String[] args) throws IOException {
System.out.println("\n>>> Rmse = " + rmse);
System.out.println(">>> ---------------------------------");
- System.out.println(">>> Linear regression model with MinMaxScaler preprocessor over cache based dataset usage example completed.");
+ System.out.println(
+ ">>> Linear regression model with MinMaxScaler preprocessor over cache based dataset usage example completed."
+ );
}
finally {
if (dataCache != null)
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/sql/DecisionTreeClassificationTrainerSQLInferenceExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/sql/DecisionTreeClassificationTrainerSQLInferenceExample.java
index 68058b75b9eb3..9847288350c02 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/sql/DecisionTreeClassificationTrainerSQLInferenceExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/sql/DecisionTreeClassificationTrainerSQLInferenceExample.java
@@ -118,8 +118,8 @@ public static void main(String[] args) throws IOException {
System.out.println("Inference...");
try (QueryCursor> cursor = cache.query(new SqlFieldsQuery("select " +
"survived as truth, " +
- "predict('titanic_model_tree', pclass, age, sibsp, parch, fare, case sex when 'male' then 1 else 0 end) as prediction " +
- "from titanic_train"))) {
+ "predict('titanic_model_tree', pclass, age, sibsp, parch, fare, case sex when 'male' then 1 else 0 end) as prediction" +
+ " from titanic_train"))) {
// Print inference result.
System.out.println("| Truth | Prediction |");
System.out.println("|--------------------|");
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/tree/randomforest/RandomForestClassificationExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/tree/randomforest/RandomForestClassificationExample.java
index 0d9dbef8c40fa..07657c383277f 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/tree/randomforest/RandomForestClassificationExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/tree/randomforest/RandomForestClassificationExample.java
@@ -108,7 +108,9 @@ public static void main(String[] args) throws IOException {
System.out.println("\n>>> Absolute amount of errors " + amountOfErrors);
System.out.println("\n>>> Accuracy " + (1 - amountOfErrors / (double)totalAmount));
- System.out.println(">>> Random Forest multi-class classification algorithm over cached dataset usage example completed.");
+ System.out.println(
+ ">>> Random Forest multi-class classification algorithm over cached dataset usage example completed."
+ );
}
}
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_13_RandomSearch.java b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_13_RandomSearch.java
index c489fc962bba7..445a6496ebc6a 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_13_RandomSearch.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_13_RandomSearch.java
@@ -134,7 +134,11 @@ public static void main(String[] args) {
)
.addHyperParam("p", normalizationTrainer::withP, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
.addHyperParam("maxDeep", trainerCV::withMaxDeep, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
- .addHyperParam("minImpurityDecrease", trainerCV::withMinImpurityDecrease, new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0});
+ .addHyperParam(
+ "minImpurityDecrease",
+ trainerCV::withMinImpurityDecrease,
+ new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}
+ );
scoreCalculator
.withIgnite(ignite)
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_14_Parallel_Brute_Force_Search.java b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_14_Parallel_Brute_Force_Search.java
index b63bf9643be63..0acfa8afd009e 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_14_Parallel_Brute_Force_Search.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_14_Parallel_Brute_Force_Search.java
@@ -133,7 +133,11 @@ public static void main(String[] args) {
.withParameterSearchStrategy(new BruteForceStrategy())
.addHyperParam("p", normalizationTrainer::withP, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
.addHyperParam("maxDeep", trainerCV::withMaxDeep, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
- .addHyperParam("minImpurityDecrease", trainerCV::withMinImpurityDecrease, new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0});
+ .addHyperParam(
+ "minImpurityDecrease",
+ trainerCV::withMinImpurityDecrease,
+ new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}
+ );
scoreCalculator
.withIgnite(ignite)
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_15_Parallel_Random_Search.java b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_15_Parallel_Random_Search.java
index ac6c1eb3c988a..c500cbd955a77 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_15_Parallel_Random_Search.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_15_Parallel_Random_Search.java
@@ -136,7 +136,11 @@ public static void main(String[] args) {
)
.addHyperParam("p", normalizationTrainer::withP, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
.addHyperParam("maxDeep", trainerCV::withMaxDeep, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
- .addHyperParam("minImpurityDecrease", trainerCV::withMinImpurityDecrease, new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0});
+ .addHyperParam(
+ "minImpurityDecrease",
+ trainerCV::withMinImpurityDecrease,
+ new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}
+ );
scoreCalculator
.withIgnite(ignite)
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_16_Genetic_Programming_Search.java b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_16_Genetic_Programming_Search.java
index 408eb48289c21..9a78a8b03b1ed 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_16_Genetic_Programming_Search.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_16_Genetic_Programming_Search.java
@@ -130,7 +130,11 @@ public static void main(String[] args) {
.withParameterSearchStrategy(new EvolutionOptimizationStrategy())
.addHyperParam("p", normalizationTrainer::withP, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
.addHyperParam("maxDeep", trainerCV::withMaxDeep, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
- .addHyperParam("minImpurityDecrease", trainerCV::withMinImpurityDecrease, new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0});
+ .addHyperParam(
+ "minImpurityDecrease",
+ trainerCV::withMinImpurityDecrease,
+ new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}
+ );
scoreCalculator
.withIgnite(ignite)
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_17_Parallel_Genetic_Programming_Search.java b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_17_Parallel_Genetic_Programming_Search.java
index a9d39bd309219..eee4f8c3e78bd 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_17_Parallel_Genetic_Programming_Search.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/tutorial/hyperparametertuning/Step_17_Parallel_Genetic_Programming_Search.java
@@ -133,7 +133,11 @@ public static void main(String[] args) {
.withParameterSearchStrategy(new EvolutionOptimizationStrategy())
.addHyperParam("p", normalizationTrainer::withP, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
.addHyperParam("maxDeep", trainerCV::withMaxDeep, new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0})
- .addHyperParam("minImpurityDecrease", trainerCV::withMinImpurityDecrease, new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0});
+ .addHyperParam(
+ "minImpurityDecrease",
+ trainerCV::withMinImpurityDecrease,
+ new Double[] {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}
+ );
scoreCalculator
.withIgnite(ignite)
diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/util/MLSandboxDatasets.java b/examples/src/main/java/org/apache/ignite/examples/ml/util/MLSandboxDatasets.java
index 9f706599af012..74704ff6a8a48 100644
--- a/examples/src/main/java/org/apache/ignite/examples/ml/util/MLSandboxDatasets.java
+++ b/examples/src/main/java/org/apache/ignite/examples/ml/util/MLSandboxDatasets.java
@@ -52,7 +52,10 @@ public enum MLSandboxDatasets {
/** The Wine recognition data. Could be found here. */
WINE_RECOGNITION("examples/src/main/resources/datasets/wine.txt", false, ","),
- /** The Boston house-prices dataset. Could be found here. */
+ /**
+ * The Boston house-prices dataset.
+ * Could be found here.
+ */
BOSTON_HOUSE_PRICES("examples/src/main/resources/datasets/boston_housing_dataset.txt", false, ","),
/** Example from book Barber D. Bayesian reasoning and machine learning. Chapter 10. */
@@ -61,7 +64,9 @@ public enum MLSandboxDatasets {
/** Wholesale customers dataset. Could be found here. */
WHOLESALE_CUSTOMERS("examples/src/main/resources/datasets/wholesale_customers.csv", true, ","),
- /** Fraud detection problem [part of whole dataset]. Could be found here. */
+ /**
+ * Fraud detection problem [part of whole dataset]. Could be found here.
+ */
FRAUD_DETECTION("examples/src/main/resources/datasets/fraud_detection.csv", false, ","),
/** A dataset with discrete and continuous features. */
diff --git a/examples/src/main/spark/org/apache/ignite/examples/spark/JavaIgniteDataFrameJoinExample.java b/examples/src/main/spark/org/apache/ignite/examples/spark/JavaIgniteDataFrameJoinExample.java
index f077e1a6a4563..b0a4db6c38403 100644
--- a/examples/src/main/spark/org/apache/ignite/examples/spark/JavaIgniteDataFrameJoinExample.java
+++ b/examples/src/main/spark/org/apache/ignite/examples/spark/JavaIgniteDataFrameJoinExample.java
@@ -120,7 +120,9 @@ private static void nativeSparkSqlJoinExample(SparkSession spark) {
cities.createOrReplaceTempView("city");
// Selecting data from Ignite through Spark SQL Engine.
- Dataset joinResult = spark.sql("SELECT person.name AS person, age, city.name AS city, country FROM person JOIN city ON person.city_id = city.id");
+ Dataset joinResult = spark.sql(
+ "SELECT person.name AS person, age, city.name AS city, country FROM person JOIN city ON person.city_id = city.id"
+ );
joinResult.explain(true);
joinResult.printSchema();
diff --git a/idea/ignite_codeStyle.xml b/idea/ignite_codeStyle.xml
index 5cbce884b3f71..8004e250df990 100644
--- a/idea/ignite_codeStyle.xml
+++ b/idea/ignite_codeStyle.xml
@@ -13,6 +13,7 @@
+
diff --git a/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToSetAspectJAspect.java b/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToSetAspectJAspect.java
index 8c071e44fbb47..1ae43bbb6d032 100644
--- a/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToSetAspectJAspect.java
+++ b/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToSetAspectJAspect.java
@@ -57,7 +57,8 @@ public class GridifySetToSetAspectJAspect extends GridifySetToSetAbstractAspect
* @throws Throwable If execution failed.
*/
@SuppressWarnings({"ProhibitedExceptionDeclared", "ProhibitedExceptionThrown"})
- @Around("execution(@org.apache.ignite.compute.gridify.GridifySetToSet * *(..)) && !cflow(call(* org.apache.ignite.compute.ComputeJob.*(..)))")
+ @Around("execution(@org.apache.ignite.compute.gridify.GridifySetToSet * *(..)) && " +
+ "!cflow(call(* org.apache.ignite.compute.ComputeJob.*(..)))")
public Object gridify(ProceedingJoinPoint joinPnt) throws Throwable {
Method mtd = ((MethodSignature) joinPnt.getSignature()).getMethod();
diff --git a/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToValueAspectJAspect.java b/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToValueAspectJAspect.java
index af90bc37e7297..8848e68876be7 100644
--- a/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToValueAspectJAspect.java
+++ b/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/aspectj/GridifySetToValueAspectJAspect.java
@@ -57,7 +57,8 @@ public class GridifySetToValueAspectJAspect extends GridifySetToValueAbstractAsp
* @throws Throwable If execution failed.
*/
@SuppressWarnings({"ProhibitedExceptionDeclared", "ProhibitedExceptionThrown"})
- @Around("execution(@org.apache.ignite.compute.gridify.GridifySetToValue * *(..)) && !cflow(call(* org.apache.ignite.compute.ComputeJob.*(..)))")
+ @Around("execution(@org.apache.ignite.compute.gridify.GridifySetToValue * *(..)) && " +
+ "!cflow(call(* org.apache.ignite.compute.ComputeJob.*(..)))")
public Object gridify(ProceedingJoinPoint joinPnt) throws Throwable {
Method mtd = ((MethodSignature) joinPnt.getSignature()).getMethod();
diff --git a/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/spring/GridifySpringEnhancer.java b/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/spring/GridifySpringEnhancer.java
index ab7daad29ca7f..c1746837116e1 100644
--- a/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/spring/GridifySpringEnhancer.java
+++ b/modules/aop/src/main/java/org/apache/ignite/compute/gridify/aop/spring/GridifySpringEnhancer.java
@@ -22,7 +22,8 @@
/**
* Spring AOP enhancer. Use it to grid-enable methods annotated with
- * {@link org.apache.ignite.compute.gridify.Gridify}, {@link org.apache.ignite.compute.gridify.GridifySetToValue} and {@link org.apache.ignite.compute.gridify.GridifySetToSet} annotations.
+ * {@link org.apache.ignite.compute.gridify.Gridify}, {@link org.apache.ignite.compute.gridify.GridifySetToValue} and
+ * {@link org.apache.ignite.compute.gridify.GridifySetToSet} annotations.
*
* Note, that Spring AOP requires that all grid-enabled methods must
* be {@code enhanced} because it is proxy-based. Other AOP implementations,
diff --git a/modules/benchmarks/src/main/java/org/apache/ignite/internal/benchmarks/jmh/misc/GridDhtPartitionsStateValidatorBenchmark.java b/modules/benchmarks/src/main/java/org/apache/ignite/internal/benchmarks/jmh/misc/GridDhtPartitionsStateValidatorBenchmark.java
index 38cd4aaf54c9e..935bda9a8df3c 100644
--- a/modules/benchmarks/src/main/java/org/apache/ignite/internal/benchmarks/jmh/misc/GridDhtPartitionsStateValidatorBenchmark.java
+++ b/modules/benchmarks/src/main/java/org/apache/ignite/internal/benchmarks/jmh/misc/GridDhtPartitionsStateValidatorBenchmark.java
@@ -90,7 +90,10 @@ private GridDhtLocalPartition partitionMock(int id, long updateCounter, long siz
* @param sizesMap Sizes map.
* @return Message with specified {@code countersMap} and {@code sizeMap}.
*/
- private GridDhtPartitionsSingleMessage from(@Nullable Map> countersMap, @Nullable Map sizesMap) {
+ private GridDhtPartitionsSingleMessage from(
+ @Nullable Map> countersMap,
+ @Nullable Map sizesMap
+ ) {
GridDhtPartitionsSingleMessage msg = new GridDhtPartitionsSingleMessage();
if (countersMap != null)
msg.addPartitionUpdateCounters(0, countersMap);
diff --git a/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/CassandraCacheStoreFactory.java b/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/CassandraCacheStoreFactory.java
index 3f5b59ef7fcf4..d170949e63807 100644
--- a/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/CassandraCacheStoreFactory.java
+++ b/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/CassandraCacheStoreFactory.java
@@ -192,7 +192,10 @@ private Object loadSpringContextBean(Object appCtx, String beanName) {
return spring.loadBeanFromAppContext(appCtx, beanName);
}
catch (Exception e) {
- throw new IgniteException("Failed to load bean in application context [beanName=" + beanName + ", igniteConfig=" + appCtx + ']', e);
+ throw new IgniteException(
+ "Failed to load bean in application context [beanName=" + beanName + ", igniteConfig=" + appCtx + ']',
+ e
+ );
}
}
}
diff --git a/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/persistence/KeyValuePersistenceSettings.java b/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/persistence/KeyValuePersistenceSettings.java
index be25ab8816130..f865674e76442 100644
--- a/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/persistence/KeyValuePersistenceSettings.java
+++ b/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/persistence/KeyValuePersistenceSettings.java
@@ -84,7 +84,10 @@ public class KeyValuePersistenceSettings implements Serializable {
/** Xml element specifying Ignite cache value persistence settings. */
private static final String VALUE_PERSISTENCE_NODE = "valuePersistence";
- /** TTL (time to leave) for rows inserted into Cassandra table {@link Expiring data}. */
+ /**
+ * TTL (time to leave) for rows inserted into Cassandra table
+ * {@link Expiring data}.
+ */
private Integer ttl;
/** Cassandra keyspace (analog of tablespace in relational databases). */
@@ -93,10 +96,16 @@ public class KeyValuePersistenceSettings implements Serializable {
/** Cassandra table. */
private String tbl;
- /** Cassandra table creation options {@link CREATE TABLE}. */
+ /**
+ * Cassandra table creation options
+ * {@link CREATE TABLE}.
+ */
private String tblOptions;
- /** Cassandra keyspace creation options {@link CREATE KEYSPACE}. */
+ /**
+ * Cassandra keyspace creation options
+ * {@link CREATE KEYSPACE}.
+ */
private String keyspaceOptions = DFLT_KEYSPACE_OPTIONS;
/** Persistence settings for Ignite cache keys. */
diff --git a/modules/cassandra/store/src/test/java/org/apache/ignite/tests/IgnitePersistentStoreTest.java b/modules/cassandra/store/src/test/java/org/apache/ignite/tests/IgnitePersistentStoreTest.java
index b18356cfd4f40..727fec961b7b7 100644
--- a/modules/cassandra/store/src/test/java/org/apache/ignite/tests/IgnitePersistentStoreTest.java
+++ b/modules/cassandra/store/src/test/java/org/apache/ignite/tests/IgnitePersistentStoreTest.java
@@ -442,8 +442,10 @@ public void pojoStrategySimpleObjectsTest() {
Map personMap6 = TestsHelper.generateSimplePersonIdsPersonsMap();
try (Ignite ignite = Ignition.start("org/apache/ignite/tests/persistence/pojo/ignite-config.xml")) {
- IgniteCache personCache5 = ignite.getOrCreateCache(new CacheConfiguration("cache5"));
- IgniteCache personCache6 = ignite.getOrCreateCache(new CacheConfiguration("cache6"));
+ IgniteCache personCache5 =
+ ignite.getOrCreateCache(new CacheConfiguration("cache5"));
+ IgniteCache personCache6 =
+ ignite.getOrCreateCache(new CacheConfiguration("cache6"));
LOGGER.info("Running single operation write tests");
@@ -466,8 +468,10 @@ public void pojoStrategySimpleObjectsTest() {
try (Ignite ignite = Ignition.start("org/apache/ignite/tests/persistence/pojo/ignite-config.xml")) {
LOGGER.info("Running POJO strategy read tests for simple objects");
- IgniteCache personCache5 = ignite.getOrCreateCache(new CacheConfiguration("cache5"));
- IgniteCache personCache6 = ignite.getOrCreateCache(new CacheConfiguration("cache6"));
+ IgniteCache personCache5 =
+ ignite.getOrCreateCache(new CacheConfiguration("cache5"));
+ IgniteCache personCache6 =
+ ignite.getOrCreateCache(new CacheConfiguration("cache6"));
LOGGER.info("Running single operation read tests");
diff --git a/modules/cassandra/store/src/test/java/org/apache/ignite/tests/utils/CassandraHelper.java b/modules/cassandra/store/src/test/java/org/apache/ignite/tests/utils/CassandraHelper.java
index 34be34487ffb6..8a9934a8b634c 100644
--- a/modules/cassandra/store/src/test/java/org/apache/ignite/tests/utils/CassandraHelper.java
+++ b/modules/cassandra/store/src/test/java/org/apache/ignite/tests/utils/CassandraHelper.java
@@ -56,7 +56,8 @@ public class CassandraHelper {
private static final String EMBEDDED_CASSANDRA_YAML = "org/apache/ignite/tests/cassandra/embedded-cassandra.yaml";
/** */
- private static final ApplicationContext connectionContext = new ClassPathXmlApplicationContext("org/apache/ignite/tests/cassandra/connection-settings.xml");
+ private static final ApplicationContext connectionContext =
+ new ClassPathXmlApplicationContext("org/apache/ignite/tests/cassandra/connection-settings.xml");
/** */
private static DataSource adminDataSrc;
diff --git a/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/blob/ignite-config.xml b/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/blob/ignite-config.xml
index db360d5fb302f..cde4becdb3e6a 100644
--- a/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/blob/ignite-config.xml
+++ b/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/blob/ignite-config.xml
@@ -28,12 +28,14 @@
-
+
-
+
diff --git a/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/pojo/ignite-config.xml b/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/pojo/ignite-config.xml
index 75041fd41e823..4105b3dfbea4f 100644
--- a/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/pojo/ignite-config.xml
+++ b/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/pojo/ignite-config.xml
@@ -28,37 +28,44 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/primitive/ignite-config.xml b/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/primitive/ignite-config.xml
index a7d101dc68013..99091fa8d274f 100644
--- a/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/primitive/ignite-config.xml
+++ b/modules/cassandra/store/src/test/resources/org/apache/ignite/tests/persistence/primitive/ignite-config.xml
@@ -28,12 +28,14 @@
-
+
-
+
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
index 26496ea490645..f4ed79772705e 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
@@ -27,6 +27,9 @@
import org.junit.Ignore;
import org.junit.Test;
+import static org.apache.ignite.internal.client.ClientTestRestServer.FIRST_SERVER_PORT;
+import static org.apache.ignite.internal.client.ClientTestRestServer.SERVERS_CNT;
+
/**
*
*/
@@ -35,7 +38,7 @@ public class ClientReconnectionSelfTest extends GridCommonAbstractTest {
public static final String HOST = "127.0.0.1";
/** */
- private ClientTestRestServer[] srvs = new ClientTestRestServer[ClientTestRestServer.SERVERS_CNT];
+ private ClientTestRestServer[] srvs = new ClientTestRestServer[SERVERS_CNT];
/** {@inheritDoc} */
@Override protected void afterTest() throws Exception {
@@ -71,7 +74,7 @@ private GridClient client(String host) throws GridClientException {
Collection addrs = new ArrayList<>();
- for (int port = ClientTestRestServer.FIRST_SERVER_PORT; port < ClientTestRestServer.FIRST_SERVER_PORT + ClientTestRestServer.SERVERS_CNT; port++)
+ for (int port = FIRST_SERVER_PORT; port < FIRST_SERVER_PORT + SERVERS_CNT; port++)
addrs.add(host + ":" + port);
cfg.setServers(addrs);
@@ -86,14 +89,14 @@ private GridClient client(String host) throws GridClientException {
*/
@Test
public void testNoFailedReconnection() throws Exception {
- for (int i = 0; i < ClientTestRestServer.SERVERS_CNT; i++)
+ for (int i = 0; i < SERVERS_CNT; i++)
runServer(i, false);
try (GridClient client = client()) { // Here client opens initial connection and fetches topology.
// Only first server in list should be contacted.
assertEquals(1, srvs[0].getConnectCount());
- for (int i = 1; i < ClientTestRestServer.SERVERS_CNT; i++)
+ for (int i = 1; i < SERVERS_CNT; i++)
assertEquals(0, srvs[i].getConnectCount());
srvs[0].resetCounters();
@@ -119,7 +122,7 @@ public void testNoFailedReconnection() throws Exception {
// Check which servers where contacted,
int connects = 0;
- for (int srv = 0; srv < ClientTestRestServer.SERVERS_CNT; srv++) {
+ for (int srv = 0; srv < SERVERS_CNT; srv++) {
if (srvs[srv].getSuccessfulConnectCount() > 0) {
assertTrue("Failed server was contacted: " + srv, srv != failed);
@@ -144,7 +147,7 @@ public void testNoFailedReconnection() throws Exception {
*/
@Test
public void testCorrectInit() throws Exception {
- for (int i = 0; i < ClientTestRestServer.SERVERS_CNT; i++)
+ for (int i = 0; i < SERVERS_CNT; i++)
runServer(i, i == 0);
try (GridClient ignored = client()) { // Here client opens initial connection and fetches topology.
@@ -152,7 +155,7 @@ public void testCorrectInit() throws Exception {
for (int i = 0; i < 2; i++)
assertEquals("Iteration: " + i, 1, srvs[i].getConnectCount());
- for (int i = 2; i < ClientTestRestServer.SERVERS_CNT; i++)
+ for (int i = 2; i < SERVERS_CNT; i++)
assertEquals(0, srvs[i].getConnectCount());
}
}
@@ -162,7 +165,7 @@ public void testCorrectInit() throws Exception {
*/
@Test
public void testFailedInit() throws Exception {
- for (int i = 0; i < ClientTestRestServer.SERVERS_CNT; i++)
+ for (int i = 0; i < SERVERS_CNT; i++)
runServer(i, true);
GridClient c = client();
@@ -177,7 +180,7 @@ public void testFailedInit() throws Exception {
X.hasCause(e, GridClientConnectionResetException.class, ClosedChannelException.class));
}
- for (int i = 0; i < ClientTestRestServer.SERVERS_CNT; i++)
+ for (int i = 0; i < SERVERS_CNT; i++)
// Connection manager does 3 attempts to get topology before failure.
assertEquals("Server: " + i, 3, srvs[i].getConnectCount());
}
@@ -232,7 +235,7 @@ public void testIdleConnection() throws Exception {
* @throws IgniteCheckedException If failed.
*/
private ClientTestRestServer runServer(int idx, boolean failOnConnect) throws IgniteCheckedException {
- ClientTestRestServer srv = new ClientTestRestServer(ClientTestRestServer.FIRST_SERVER_PORT + idx, failOnConnect, log());
+ ClientTestRestServer srv = new ClientTestRestServer(FIRST_SERVER_PORT + idx, failOnConnect, log());
srv.start();
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/client/TaskSingleJobSplitAdapter.java b/modules/clients/src/test/java/org/apache/ignite/internal/client/TaskSingleJobSplitAdapter.java
index 26c2c6c854676..bdc5bbd0e4bd8 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/client/TaskSingleJobSplitAdapter.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/client/TaskSingleJobSplitAdapter.java
@@ -68,7 +68,8 @@ protected TaskSingleJobSplitAdapter() {
* @param arg Task execution argument. Can be {@code null}.
* @return Job execution result (possibly {@code null}). This result will be returned
* in {@link org.apache.ignite.compute.ComputeJobResult#getData()} method passed into
- * {@link org.apache.ignite.compute.ComputeTask#result(org.apache.ignite.compute.ComputeJobResult, List)} method into task on caller node.
+ * {@link org.apache.ignite.compute.ComputeTask#result(org.apache.ignite.compute.ComputeJobResult, List)}
+ * method into task on caller node.
*/
protected abstract Object executeJob(int gridSize, T arg);
}
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcAbstractDmlStatementSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcAbstractDmlStatementSelfTest.java
index d658934ca7e3a..d06a2f3c6c89e 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcAbstractDmlStatementSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcAbstractDmlStatementSelfTest.java
@@ -45,10 +45,12 @@ public abstract class JdbcAbstractDmlStatementSelfTest extends GridCommonAbstrac
private static final String UTF_16 = "UTF-16"; // RAWTOHEX function use UTF-16 for conversion strings to byte arrays.
/** JDBC URL. */
- private static final String BASE_URL = CFG_URL_PREFIX + "cache=" + DEFAULT_CACHE_NAME + "@modules/clients/src/test/config/jdbc-config.xml";
+ private static final String BASE_URL =
+ CFG_URL_PREFIX + "cache=" + DEFAULT_CACHE_NAME + "@modules/clients/src/test/config/jdbc-config.xml";
/** JDBC URL for tests involving binary objects manipulation. */
- static final String BASE_URL_BIN = CFG_URL_PREFIX + "cache=" + DEFAULT_CACHE_NAME + "@modules/clients/src/test/config/jdbc-bin-config.xml";
+ static final String BASE_URL_BIN =
+ CFG_URL_PREFIX + "cache=" + DEFAULT_CACHE_NAME + "@modules/clients/src/test/config/jdbc-bin-config.xml";
/** SQL SELECT query for verification. */
static final String SQL_SELECT = "select _key, id, firstName, lastName, age, data from Person";
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDistributedJoinsQueryTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDistributedJoinsQueryTest.java
index b2c9cc4f3484b..18ca4c04582bc 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDistributedJoinsQueryTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDistributedJoinsQueryTest.java
@@ -40,7 +40,8 @@
*/
public class JdbcDistributedJoinsQueryTest extends GridCommonAbstractTest {
/** JDBC URL. */
- private static final String BASE_URL = CFG_URL_PREFIX + "cache=default:distributedJoins=true@modules/clients/src/test/config/jdbc-config.xml";
+ private static final String BASE_URL =
+ CFG_URL_PREFIX + "cache=default:distributedJoins=true@modules/clients/src/test/config/jdbc-config.xml";
/** Statement. */
private Statement stmt;
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcMetadataSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcMetadataSelfTest.java
index b5e3714924d8f..27df11af181f7 100755
--- a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcMetadataSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcMetadataSelfTest.java
@@ -753,7 +753,8 @@ public void testSchemasMetadata() throws Exception {
try (Connection conn = DriverManager.getConnection(BASE_URL)) {
ResultSet rs = conn.getMetaData().getSchemas();
- Set expectedSchemas = new HashSet<>(Arrays.asList("pers", "org", "metaTest", "dep", "PUBLIC", "SYS", "PREDEFINED_CLIENT_SCHEMA"));
+ Set expectedSchemas =
+ new HashSet<>(Arrays.asList("pers", "org", "metaTest", "dep", "PUBLIC", "SYS", "PREDEFINED_CLIENT_SCHEMA"));
Set schemas = new HashSet<>();
diff --git a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java
index 377bd885d6b90..d9664b8a0896d 100644
--- a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java
@@ -367,7 +367,8 @@ public void testBatchKeyDuplicatesException() throws Exception {
@Test
public void testHeterogeneousBatch() throws SQLException {
stmt.addBatch("insert into Person (_key, id, firstName, lastName, age) values ('p0', 0, 'Name0', 'Lastname0', 10)");
- stmt.addBatch("insert into Person (_key, id, firstName, lastName, age) values ('p1', 1, 'Name1', 'Lastname1', 20), ('p2', 2, 'Name2', 'Lastname2', 30)");
+ stmt.addBatch("insert into Person (_key, id, firstName, lastName, age) " +
+ "values ('p1', 1, 'Name1', 'Lastname1', 20), ('p2', 2, 'Name2', 'Lastname2', 30)");
stmt.addBatch("merge into Person (_key, id, firstName, lastName, age) values ('p3', 3, 'Name3', 'Lastname3', 40)");
stmt.addBatch("update Person set id = 5 where age >= 30");
stmt.addBatch("merge into Person (_key, id, firstName, lastName, age) values ('p0', 2, 'Name2', 'Lastname2', 50)");
diff --git a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinConnectionSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinConnectionSelfTest.java
index 65aeddbc23e93..e0dd41462d43f 100644
--- a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinConnectionSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinConnectionSelfTest.java
@@ -694,7 +694,8 @@ public void testSchemaSemicolon() throws Exception {
assertEquals("Invalid schema", "PUBLIC", conn.getSchema());
}
- try (Connection conn = DriverManager.getConnection(urlWithPartitionAwarenessPropSemicolon + ";schema=\"" + DEFAULT_CACHE_NAME + '"')) {
+ try (Connection conn =
+ DriverManager.getConnection(urlWithPartitionAwarenessPropSemicolon + ";schema=\"" + DEFAULT_CACHE_NAME + '"')) {
assertEquals("Invalid schema", DEFAULT_CACHE_NAME, conn.getSchema());
}
diff --git a/modules/clients/src/test/java/org/apache/ignite/qa/query/WarningOnBigQueryResultsBaseTest.java b/modules/clients/src/test/java/org/apache/ignite/qa/query/WarningOnBigQueryResultsBaseTest.java
index e2d805459f48f..70f06c4b4d8ed 100644
--- a/modules/clients/src/test/java/org/apache/ignite/qa/query/WarningOnBigQueryResultsBaseTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/qa/query/WarningOnBigQueryResultsBaseTest.java
@@ -63,7 +63,8 @@ public class WarningOnBigQueryResultsBaseTest extends AbstractIndexingCommonTest
/** Log message pattern. */
private static final Pattern logPtrn = Pattern.compile(
- "fetched=([0-9]+), duration=([0-9]+)ms, type=(MAP|LOCAL|REDUCE), distributedJoin=(true|false), enforceJoinOrder=(true|false), lazy=(true|false), schema=(\\S+), sql");
+ "fetched=([0-9]+), duration=([0-9]+)ms, type=(MAP|LOCAL|REDUCE), distributedJoin=(true|false), enforceJoinOrder=(true|false), " +
+ "lazy=(true|false), schema=(\\S+), sql");
/** Test log. */
private static Map logListeners = new HashMap<>();
diff --git a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
index cbcaba4494c2b..d61560e552950 100644
--- a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
+++ b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
@@ -120,7 +120,8 @@ private void runFoldersReuse(String ver) throws Exception {
assertEquals(VAL, ignite.cache(CACHE_NAME).get(KEY));
- final PersistenceBasicCompatibilityTest.TestStringContainerToBePrinted actual = (PersistenceBasicCompatibilityTest.TestStringContainerToBePrinted)ignite.cache(CACHE_NAME).get(KEY_OBJ);
+ final PersistenceBasicCompatibilityTest.TestStringContainerToBePrinted actual =
+ (PersistenceBasicCompatibilityTest.TestStringContainerToBePrinted)ignite.cache(CACHE_NAME).get(KEY_OBJ);
assertEquals(VAL, actual.data);
assertNodeIndexesInFolder(); // should not create any new style directories
diff --git a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java
index 14c8799ecda70..6775f8e31bd2e 100644
--- a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java
+++ b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/CommandHandler.java
@@ -149,7 +149,8 @@ private Logger setupJavaLogger() {
// Adding logging to file.
try {
- String absPathPattern = new File(JavaLoggerFileHandler.logDirectory(U.defaultWorkDirectory()), "control-utility-%g.log").getAbsolutePath();
+ String absPathPattern =
+ new File(JavaLoggerFileHandler.logDirectory(U.defaultWorkDirectory()), "control-utility-%g.log").getAbsolutePath();
FileHandler fileHandler = new FileHandler(absPathPattern, 5 * 1024 * 1024, 5);
diff --git a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CheckIndexInlineSizes.java b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CheckIndexInlineSizes.java
index 457f189afb054..b74f93713ca5b 100644
--- a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CheckIndexInlineSizes.java
+++ b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CheckIndexInlineSizes.java
@@ -127,7 +127,9 @@ private void printProblemsAndShowRecommendations(Map
*
* if value is missing:
- * IllegalArgumentException (The scope should be specified. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].")
+ * IllegalArgumentException
+ * (The scope should be specified.
+ * The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].")
*
*
* if unsupported value is used:
- * IllegalArgumentException (Invalid scope 'aaa'. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX])
+ * IllegalArgumentException
+ * (Invalid scope 'aaa'. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX])
*
* if value is missing:
- * IllegalArgumentException (The scope should be specified. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].")
+ * IllegalArgumentException
+ * (The scope should be specified.
+ * The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].")
*
*
* if unsupported value is used:
- * IllegalArgumentException (Invalid scope 'aaa'. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX])
+ * IllegalArgumentException
+ * (Invalid scope 'aaa'. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX])
*
*
*
@@ -670,11 +695,14 @@ public void testKillArguments() {
*
*
* if value is missing:
- * IllegalArgumentException (The scope should be specified. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].")
+ * IllegalArgumentException
+ * (The scope should be specified.
+ * The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].")
*
*
* if unsupported value is used:
- * IllegalArgumentException (Invalid scope 'aaa'. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX])
+ * IllegalArgumentException
+ * (Invalid scope 'aaa'. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX])
*
*
*
@@ -692,7 +720,8 @@ public void testKillArguments() {
*
*
* if value is missing:
- * IllegalArgumentException (The sampling-rate should be specified. Decimal value between 0 and 1 should be used.)
+ * IllegalArgumentException
+ * (The sampling-rate should be specified. Decimal value between 0 and 1 should be used.)
*
*
* if unsupported value is used:
@@ -709,7 +738,9 @@ public void testKillArguments() {
*
*
* if unsupported value is used:
- * IllegalArgumentException (Invalid supported scope: aaa. The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].)
+ * IllegalArgumentException
+ * (Invalid supported scope: aaa.
+ * The following values can be used: [DISCOVERY, EXCHANGE, COMMUNICATION, TX].)
*
{@link IgniteAtomicReference} - distributed atomic reference.
diff --git a/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java b/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java
index 382a0c11533c7..64d4ac7b544d2 100644
--- a/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java
+++ b/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java
@@ -692,8 +692,8 @@ public final class IgniteSystemProperties {
public static final String IGNITE_LOG_DIR = "IGNITE_LOG_DIR";
/**
- * Environment variable to set work directory. The property {@link org.apache.ignite.configuration.IgniteConfiguration#setWorkDirectory} has higher
- * priority.
+ * Environment variable to set work directory.
+ * The property {@link org.apache.ignite.configuration.IgniteConfiguration#setWorkDirectory} has higher priority.
*/
@SystemProperty(value = "Work directory. The property IgniteConfiguration.setWorkDirectory has higher priority",
type = String.class)
@@ -1448,7 +1448,8 @@ public final class IgniteSystemProperties {
@SystemProperty("When property is set false each next exchange will try to compare with previous. " +
"If last rebalance is equivalent with new possible one, new rebalance does not trigger. " +
"Set the property true and each exchange will try to trigger new rebalance")
- public static final String IGNITE_DISABLE_REBALANCING_CANCELLATION_OPTIMIZATION = "IGNITE_DISABLE_REBALANCING_CANCELLATION_OPTIMIZATION";
+ public static final String IGNITE_DISABLE_REBALANCING_CANCELLATION_OPTIMIZATION =
+ "IGNITE_DISABLE_REBALANCING_CANCELLATION_OPTIMIZATION";
/**
* Sets timeout for TCP client recovery descriptor reservation.
@@ -1619,7 +1620,8 @@ public final class IgniteSystemProperties {
* Default is {@code false}.
*/
@SystemProperty("Disables cache interceptor triggering in case of conflicts")
- public static final String IGNITE_DISABLE_TRIGGERING_CACHE_INTERCEPTOR_ON_CONFLICT = "IGNITE_DISABLE_TRIGGERING_CACHE_INTERCEPTOR_ON_CONFLICT";
+ public static final String IGNITE_DISABLE_TRIGGERING_CACHE_INTERCEPTOR_ON_CONFLICT =
+ "IGNITE_DISABLE_TRIGGERING_CACHE_INTERCEPTOR_ON_CONFLICT";
/**
* Sets default {@link CacheConfiguration#setDiskPageCompression disk page compression}.
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
index 51ae71a87da13..c8ad14126cca5 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
@@ -237,7 +237,12 @@ private Object buildPojoObject(@Nullable String cacheName, String typeName,
* @return Constructed binary object.
* @throws CacheLoaderException If failed to construct binary object.
*/
- protected Object buildBinaryObject(String typeName, JdbcTypeField[] fields, Map loadColIdxs, ResultSet rs) throws CacheLoaderException {
+ protected Object buildBinaryObject(
+ String typeName,
+ JdbcTypeField[] fields,
+ Map loadColIdxs,
+ ResultSet rs
+ ) throws CacheLoaderException {
try {
BinaryObjectBuilder builder = ignite.binary().builder(typeName);
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/BasicJdbcDialect.java b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/BasicJdbcDialect.java
index 59361c3555c4e..4a434f5b98d9a 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/BasicJdbcDialect.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/BasicJdbcDialect.java
@@ -160,8 +160,12 @@ private static String where(Collection keyCols, int keyCnt) {
@Override public String loadCacheSelectRangeQuery(String fullTblName, Collection keyCols) {
String cols = mkString(keyCols, ",");
- return String.format("SELECT %1$s FROM (SELECT %1$s, ROW_NUMBER() OVER() AS rn FROM (SELECT %1$s FROM %2$s ORDER BY %1$s) AS tbl) AS tbl WHERE mod(rn, ?) = 0",
- cols, fullTblName);
+ return String.format(
+ "SELECT %1$s FROM (" +
+ "SELECT %1$s, ROW_NUMBER() OVER() AS rn FROM (SELECT %1$s FROM %2$s ORDER BY %1$s) AS tbl) AS tbl WHERE mod(rn, ?) = 0",
+ cols,
+ fullTblName
+ );
}
/** {@inheritDoc} */
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/DB2Dialect.java b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/DB2Dialect.java
index 551782e9e9200..664ff1bd0b801 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/DB2Dialect.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/DB2Dialect.java
@@ -32,8 +32,11 @@ public class DB2Dialect extends BasicJdbcDialect {
@Override public String loadCacheSelectRangeQuery(String fullTblName, Collection keyCols) {
String cols = mkString(keyCols, ",");
- return String.format("SELECT %1$s FROM (SELECT %1$s, ROW_NUMBER() OVER(ORDER BY %1$s) AS rn FROM %2$s) WHERE mod(rn, ?) = 0 ORDER BY %1$s",
- cols, fullTblName);
+ return String.format(
+ "SELECT %1$s FROM (SELECT %1$s, ROW_NUMBER() OVER(ORDER BY %1$s) AS rn FROM %2$s) WHERE mod(rn, ?) = 0 ORDER BY %1$s",
+ cols,
+ fullTblName
+ );
}
/** {@inheritDoc} */
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/SQLServerDialect.java b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/SQLServerDialect.java
index ace1d3f0bf738..1f7dbe047eb8a 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/SQLServerDialect.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/dialect/SQLServerDialect.java
@@ -37,8 +37,11 @@ public class SQLServerDialect extends BasicJdbcDialect {
@Override public String loadCacheSelectRangeQuery(String fullTblName, Collection keyCols) {
String cols = mkString(keyCols, ",");
- return String.format("SELECT %1$s FROM (SELECT %1$s, ROW_NUMBER() OVER(ORDER BY %1$s) AS rn FROM %2$s) tbl WHERE rn %% ? = 0 ORDER BY %1$s",
- cols, fullTblName);
+ return String.format(
+ "SELECT %1$s FROM (SELECT %1$s, ROW_NUMBER() OVER(ORDER BY %1$s) AS rn FROM %2$s) tbl WHERE rn %% ? = 0 ORDER BY %1$s",
+ cols,
+ fullTblName
+ );
}
/** {@inheritDoc} */
diff --git a/modules/core/src/main/java/org/apache/ignite/events/CacheConsistencyViolationEvent.java b/modules/core/src/main/java/org/apache/ignite/events/CacheConsistencyViolationEvent.java
index 688ea3bd1e8ec..930811ccd774e 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/CacheConsistencyViolationEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/CacheConsistencyViolationEvent.java
@@ -46,7 +46,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -54,8 +55,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
*
* @see EventType#EVT_CONSISTENCY_VIOLATION
diff --git a/modules/core/src/main/java/org/apache/ignite/events/CacheQueryExecutedEvent.java b/modules/core/src/main/java/org/apache/ignite/events/CacheQueryExecutedEvent.java
index 77f7665f73d29..01137d2853ec2 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/CacheQueryExecutedEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/CacheQueryExecutedEvent.java
@@ -46,7 +46,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -54,8 +55,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
*
* @see EventType#EVT_CACHE_QUERY_EXECUTED
diff --git a/modules/core/src/main/java/org/apache/ignite/events/CacheQueryReadEvent.java b/modules/core/src/main/java/org/apache/ignite/events/CacheQueryReadEvent.java
index eda7d216ec0de..b186c3b15deb2 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/CacheQueryReadEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/CacheQueryReadEvent.java
@@ -46,7 +46,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -54,8 +55,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
*
* @see EventType#EVT_CACHE_QUERY_OBJECT_READ
diff --git a/modules/core/src/main/java/org/apache/ignite/events/CheckpointEvent.java b/modules/core/src/main/java/org/apache/ignite/events/CheckpointEvent.java
index 96cc03ebdbd05..938e26a665081 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/CheckpointEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/CheckpointEvent.java
@@ -41,7 +41,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -49,8 +50,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
* @see EventType#EVT_CHECKPOINT_LOADED
* @see EventType#EVT_CHECKPOINT_REMOVED
diff --git a/modules/core/src/main/java/org/apache/ignite/events/DeploymentEvent.java b/modules/core/src/main/java/org/apache/ignite/events/DeploymentEvent.java
index 7c968ece83db1..b07763027a9d5 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/DeploymentEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/DeploymentEvent.java
@@ -41,7 +41,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -49,8 +50,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
* @see EventType#EVT_CLASS_DEPLOY_FAILED
* @see EventType#EVT_CLASS_DEPLOYED
diff --git a/modules/core/src/main/java/org/apache/ignite/events/DiscoveryEvent.java b/modules/core/src/main/java/org/apache/ignite/events/DiscoveryEvent.java
index 16d030c05a61a..0f4b004e4f58d 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/DiscoveryEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/DiscoveryEvent.java
@@ -45,7 +45,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -53,8 +54,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
* @see EventType#EVT_NODE_METRICS_UPDATED
* @see EventType#EVT_NODE_FAILED
diff --git a/modules/core/src/main/java/org/apache/ignite/events/Event.java b/modules/core/src/main/java/org/apache/ignite/events/Event.java
index 34726d36f186e..d51f823764dc0 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/Event.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/Event.java
@@ -47,8 +47,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using either {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using either {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
*
Internal and Hidden Events
* Also note that some events are considered to be internally used or hidden.
diff --git a/modules/core/src/main/java/org/apache/ignite/events/SqlQueryExecutionEvent.java b/modules/core/src/main/java/org/apache/ignite/events/SqlQueryExecutionEvent.java
index d8feb07551394..afd91fbe521bc 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/SqlQueryExecutionEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/SqlQueryExecutionEvent.java
@@ -50,7 +50,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -58,8 +59,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
*
* @see EventType#EVT_SQL_QUERY_EXECUTION
diff --git a/modules/core/src/main/java/org/apache/ignite/events/TaskEvent.java b/modules/core/src/main/java/org/apache/ignite/events/TaskEvent.java
index 284b7b794e5ba..ef958edd59edc 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/TaskEvent.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/TaskEvent.java
@@ -44,7 +44,8 @@
* listening to local grid events (events from remote nodes not included).
*
*
- * User can also wait for events using method {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
+ * User can also wait for events using method
+ * {@link org.apache.ignite.IgniteEvents#waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)}.
*
Events and Performance
* Note that by default all events in Ignite are enabled and therefore generated and stored
* by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds
@@ -52,8 +53,8 @@
* not needed by the application this load is unnecessary and leads to significant performance degradation.
*
* It is highly recommended to enable only those events that your application logic requires
- * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration. Note that certain
- * events are required for Ignite's internal operations and such events will still be generated but not stored by
+ * by using {@link org.apache.ignite.configuration.IgniteConfiguration#getIncludeEventTypes()} method in Ignite configuration.
+ * Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
* event storage SPI if they are disabled in Ignite configuration.
* @see EventType#EVT_TASK_FAILED
* @see EventType#EVT_TASK_FINISHED
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/GridJobExecuteRequest.java b/modules/core/src/main/java/org/apache/ignite/internal/GridJobExecuteRequest.java
index ebfeb0153ffdc..2507ac4afb520 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/GridJobExecuteRequest.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/GridJobExecuteRequest.java
@@ -39,6 +39,8 @@
import org.apache.ignite.plugin.extensions.communication.MessageWriter;
import org.jetbrains.annotations.Nullable;
+import static org.apache.ignite.plugin.extensions.communication.MessageCollectionItemType.IGNITE_UUID;
+
/**
* Job execution request.
*/
@@ -586,7 +588,7 @@ public AffinityTopologyVersion getTopVer() {
writer.incrementState();
case 11:
- if (!writer.writeMap("ldrParticipants", ldrParticipants, MessageCollectionItemType.UUID, MessageCollectionItemType.IGNITE_UUID))
+ if (!writer.writeMap("ldrParticipants", ldrParticipants, MessageCollectionItemType.UUID, IGNITE_UUID))
return false;
writer.incrementState();
@@ -781,7 +783,7 @@ public AffinityTopologyVersion getTopVer() {
reader.incrementState();
case 11:
- ldrParticipants = reader.readMap("ldrParticipants", MessageCollectionItemType.UUID, MessageCollectionItemType.IGNITE_UUID, false);
+ ldrParticipants = reader.readMap("ldrParticipants", MessageCollectionItemType.UUID, IGNITE_UUID, false);
if (!reader.isLastRead())
return false;
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java b/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java
index f63b8618e7415..f1e5b69f464f3 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java
@@ -658,7 +658,11 @@ public static Ignite start(IgniteConfiguration cfg, @Nullable GridSpringResource
* @throws IgniteCheckedException If grid could not be started. This exception will be thrown
* also if named grid has already been started.
*/
- public static T2 start(IgniteConfiguration cfg, @Nullable GridSpringResourceContext springCtx, boolean failIfStarted) throws IgniteCheckedException {
+ public static T2 start(
+ IgniteConfiguration cfg,
+ @Nullable GridSpringResourceContext springCtx,
+ boolean failIfStarted
+ ) throws IgniteCheckedException {
A.notNull(cfg, "cfg");
T2 res = start0(new GridStartContext(cfg, null, springCtx), failIfStarted);
@@ -1098,7 +1102,10 @@ private static Ignite startConfigurations(
* the flag is {@code false}.
* @throws IgniteCheckedException If grid could not be started.
*/
- private static T2 start0(GridStartContext startCtx, boolean failIfStarted ) throws IgniteCheckedException {
+ private static T2 start0(
+ GridStartContext startCtx,
+ boolean failIfStarted
+ ) throws IgniteCheckedException {
assert startCtx != null;
String name = startCtx.config().getIgniteInstanceName();
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java
index 22a95fa62b776..c89e82f7e6a2b 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java
@@ -200,11 +200,14 @@ public class BinaryUtils {
PLAIN_CLASS_TO_FLAG.put(boolean.class, GridBinaryMarshaller.BOOLEAN);
for (byte b : new byte[] {
- GridBinaryMarshaller.BYTE, GridBinaryMarshaller.SHORT, GridBinaryMarshaller.INT, GridBinaryMarshaller.LONG, GridBinaryMarshaller.FLOAT, GridBinaryMarshaller.DOUBLE,
- GridBinaryMarshaller.CHAR, GridBinaryMarshaller.BOOLEAN, GridBinaryMarshaller.DECIMAL, GridBinaryMarshaller.STRING, GridBinaryMarshaller.UUID, GridBinaryMarshaller.DATE, GridBinaryMarshaller.TIMESTAMP, GridBinaryMarshaller.TIME,
- GridBinaryMarshaller.BYTE_ARR, GridBinaryMarshaller.SHORT_ARR, GridBinaryMarshaller.INT_ARR, GridBinaryMarshaller.LONG_ARR, GridBinaryMarshaller.FLOAT_ARR, GridBinaryMarshaller.DOUBLE_ARR, GridBinaryMarshaller.TIME_ARR,
- GridBinaryMarshaller.CHAR_ARR, GridBinaryMarshaller.BOOLEAN_ARR, GridBinaryMarshaller.DECIMAL_ARR, GridBinaryMarshaller.STRING_ARR, GridBinaryMarshaller.UUID_ARR, GridBinaryMarshaller.DATE_ARR, GridBinaryMarshaller.TIMESTAMP_ARR,
- GridBinaryMarshaller.ENUM, GridBinaryMarshaller.ENUM_ARR, GridBinaryMarshaller.NULL}) {
+ GridBinaryMarshaller.BYTE, GridBinaryMarshaller.SHORT, GridBinaryMarshaller.INT, GridBinaryMarshaller.LONG,
+ GridBinaryMarshaller.FLOAT, GridBinaryMarshaller.DOUBLE, GridBinaryMarshaller.CHAR, GridBinaryMarshaller.BOOLEAN,
+ GridBinaryMarshaller.DECIMAL, GridBinaryMarshaller.STRING, GridBinaryMarshaller.UUID, GridBinaryMarshaller.DATE,
+ GridBinaryMarshaller.TIMESTAMP, GridBinaryMarshaller.TIME, GridBinaryMarshaller.BYTE_ARR, GridBinaryMarshaller.SHORT_ARR,
+ GridBinaryMarshaller.INT_ARR, GridBinaryMarshaller.LONG_ARR, GridBinaryMarshaller.FLOAT_ARR, GridBinaryMarshaller.DOUBLE_ARR,
+ GridBinaryMarshaller.TIME_ARR, GridBinaryMarshaller.CHAR_ARR, GridBinaryMarshaller.BOOLEAN_ARR,
+ GridBinaryMarshaller.DECIMAL_ARR, GridBinaryMarshaller.STRING_ARR, GridBinaryMarshaller.UUID_ARR, GridBinaryMarshaller.DATE_ARR,
+ GridBinaryMarshaller.TIMESTAMP_ARR, GridBinaryMarshaller.ENUM, GridBinaryMarshaller.ENUM_ARR, GridBinaryMarshaller.NULL}) {
PLAIN_TYPE_FLAG[b] = true;
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/streams/BinaryMemoryAllocator.java b/modules/core/src/main/java/org/apache/ignite/internal/binary/streams/BinaryMemoryAllocator.java
index 8993fb3006cf6..a49daa76cf506 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/binary/streams/BinaryMemoryAllocator.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/streams/BinaryMemoryAllocator.java
@@ -39,7 +39,8 @@ public abstract class BinaryMemoryAllocator {
private static final Long CHECK_FREQ = Long.getLong(IGNITE_MARSHAL_BUFFERS_RECHECK, DFLT_MARSHAL_BUFFERS_RECHECK);
/** */
- private static final int POOL_SIZE = Integer.getInteger(IGNITE_MARSHAL_BUFFERS_PER_THREAD_POOL_SIZE, DFLT_MARSHAL_BUFFERS_PER_THREAD_POOL_SIZE);
+ private static final int POOL_SIZE =
+ Integer.getInteger(IGNITE_MARSHAL_BUFFERS_PER_THREAD_POOL_SIZE, DFLT_MARSHAL_BUFFERS_PER_THREAD_POOL_SIZE);
/** Thread local allocator instance. */
public static final BinaryMemoryAllocator THREAD_LOCAL = new ThreadLocalAllocator();
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineIndexImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineIndexImpl.java
index 3a91a34386495..5dee50ef2b2df 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineIndexImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineIndexImpl.java
@@ -89,7 +89,12 @@ public InlineIndexImpl(GridCacheContext, ?> cctx, SortedIndexDefinition def, I
}
/** {@inheritDoc} */
- @Override public GridCursor find(IndexRow lower, IndexRow upper, int segment, IndexQueryContext qryCtx) throws IgniteCheckedException {
+ @Override public GridCursor find(
+ IndexRow lower,
+ IndexRow upper,
+ int segment,
+ IndexQueryContext qryCtx
+ ) throws IgniteCheckedException {
InlineTreeFilterClosure closure = filterClosure(qryCtx);
// If it is known that only one row will be returned an optimization is employed
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/client/thin/IgniteClientFutureImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/client/thin/IgniteClientFutureImpl.java
index cf12241a6ce7e..64013f904c65e 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/client/thin/IgniteClientFutureImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/client/thin/IgniteClientFutureImpl.java
@@ -138,32 +138,52 @@ public static IgniteClientFutureImpl completedFuture(T res) {
}
/** {@inheritDoc} */
- @Override public CompletableFuture thenCombine(CompletionStage extends U> completionStage, BiFunction super T, ? super U, ? extends V> biFunction) {
+ @Override public CompletableFuture thenCombine(
+ CompletionStage extends U> completionStage,
+ BiFunction super T, ? super U, ? extends V> biFunction
+ ) {
return fut.thenCombine(completionStage, biFunction);
}
/** {@inheritDoc} */
- @Override public CompletableFuture thenCombineAsync(CompletionStage extends U> completionStage, BiFunction super T, ? super U, ? extends V> biFunction) {
+ @Override public CompletableFuture thenCombineAsync(
+ CompletionStage extends U> completionStage,
+ BiFunction super T, ? super U, ? extends V> biFunction
+ ) {
return fut.thenCombineAsync(completionStage, biFunction);
}
/** {@inheritDoc} */
- @Override public CompletableFuture thenCombineAsync(CompletionStage extends U> completionStage, BiFunction super T, ? super U, ? extends V> biFunction, Executor executor) {
+ @Override public CompletableFuture thenCombineAsync(
+ CompletionStage extends U> completionStage,
+ BiFunction super T, ? super U, ? extends V> biFunction,
+ Executor executor
+ ) {
return fut.thenCombineAsync(completionStage, biFunction, executor);
}
/** {@inheritDoc} */
- @Override public CompletableFuture thenAcceptBoth(CompletionStage extends U> completionStage, BiConsumer super T, ? super U> biConsumer) {
+ @Override public CompletableFuture thenAcceptBoth(
+ CompletionStage extends U> completionStage,
+ BiConsumer super T, ? super U> biConsumer
+ ) {
return fut.thenAcceptBoth(completionStage, biConsumer);
}
/** {@inheritDoc} */
- @Override public CompletableFuture thenAcceptBothAsync(CompletionStage extends U> completionStage, BiConsumer super T, ? super U> biConsumer) {
+ @Override public CompletableFuture thenAcceptBothAsync(
+ CompletionStage extends U> completionStage,
+ BiConsumer super T, ? super U> biConsumer
+ ) {
return fut.thenAcceptBothAsync(completionStage, biConsumer);
}
/** {@inheritDoc} */
- @Override public CompletableFuture thenAcceptBothAsync(CompletionStage extends U> completionStage, BiConsumer super T, ? super U> biConsumer, Executor executor) {
+ @Override public CompletableFuture thenAcceptBothAsync(
+ CompletionStage extends U> completionStage,
+ BiConsumer super T, ? super U> biConsumer,
+ Executor executor
+ ) {
return fut.thenAcceptBothAsync(completionStage, biConsumer, executor);
}
@@ -188,12 +208,19 @@ public static IgniteClientFutureImpl completedFuture(T res) {
}
/** {@inheritDoc} */
- @Override public CompletableFuture applyToEitherAsync(CompletionStage extends T> completionStage, Function super T, U> function) {
+ @Override public CompletableFuture applyToEitherAsync(
+ CompletionStage extends T> completionStage,
+ Function super T, U> function
+ ) {
return fut.applyToEitherAsync(completionStage, function);
}
/** {@inheritDoc} */
- @Override public CompletableFuture applyToEitherAsync(CompletionStage extends T> completionStage, Function super T, U> function, Executor executor) {
+ @Override public CompletableFuture applyToEitherAsync(
+ CompletionStage extends T> completionStage,
+ Function super T, U> function,
+ Executor executor
+ ) {
return fut.applyToEitherAsync(completionStage, function, executor);
}
@@ -208,7 +235,11 @@ public static IgniteClientFutureImpl completedFuture(T res) {
}
/** {@inheritDoc} */
- @Override public CompletableFuture acceptEitherAsync(CompletionStage extends T> completionStage, Consumer super T> consumer, Executor executor) {
+ @Override public CompletableFuture acceptEitherAsync(
+ CompletionStage extends T> completionStage,
+ Consumer super T> consumer,
+ Executor executor
+ ) {
return fut.acceptEitherAsync(completionStage, consumer, executor);
}
@@ -238,7 +269,10 @@ public static IgniteClientFutureImpl completedFuture(T res) {
}
/** {@inheritDoc} */
- @Override public CompletableFuture thenComposeAsync(Function super T, ? extends CompletionStage> function, Executor executor) {
+ @Override public CompletableFuture thenComposeAsync(
+ Function super T, ? extends CompletionStage> function,
+ Executor executor
+ ) {
return fut.thenComposeAsync(function, executor);
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/cluster/IgniteClusterImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/cluster/IgniteClusterImpl.java
index 3b55295652632..309172b74d119 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/cluster/IgniteClusterImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/cluster/IgniteClusterImpl.java
@@ -729,8 +729,11 @@ public void setId(UUID id) {
" symbols.");
}
- if (!ctx.state().publicApiActiveState(true))
- throw new IgniteCheckedException("Can not change cluster tag on inactive cluster. To activate the cluster call Ignite.active(true).");
+ if (!ctx.state().publicApiActiveState(true)) {
+ throw new IgniteCheckedException(
+ "Can not change cluster tag on inactive cluster. To activate the cluster call Ignite.active(true)."
+ );
+ }
ctx.cluster().updateTag(tag);
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java b/modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java
index 4af0d5aa788b3..072858948f9b6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java
@@ -2234,7 +2234,11 @@ public JdbcMarshallerContext() {
/** {@inheritDoc} */
@Override public String getClassName(byte platformId, int typeId) throws ClassNotFoundException, IgniteCheckedException {
assert platformId == MarshallerPlatformIds.JAVA_ID
- : String.format("Only Java platform is supported [expPlatformId=%d, actualPlatformId=%d].", MarshallerPlatformIds.JAVA_ID, platformId);
+ : String.format(
+ "Only Java platform is supported [expPlatformId=%d, actualPlatformId=%d].",
+ MarshallerPlatformIds.JAVA_ID,
+ platformId
+ );
String clsName = cache.get(typeId);
if (clsName == null) {
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/GridManagerAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/managers/GridManagerAdapter.java
index ba9a1e563d2a0..7329bcff8459f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/GridManagerAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/GridManagerAdapter.java
@@ -544,7 +544,8 @@ protected final String stopInfo() {
if (comp.discoveryDataType() == null)
continue;
- IgniteNodeValidationResult err = comp.validateNode(node, discoData.newJoinerDiscoveryData(comp.discoveryDataType().ordinal()));
+ IgniteNodeValidationResult err =
+ comp.validateNode(node, discoData.newJoinerDiscoveryData(comp.discoveryDataType().ordinal()));
if (err != null)
return err;
@@ -724,7 +725,10 @@ protected final void assertParameter(boolean cond, String condDesc) throws Ignit
}
/** {@inheritDoc} */
- @Nullable @Override public IgniteNodeValidationResult validateNode(ClusterNode node, DiscoveryDataBag.JoiningNodeDiscoveryData discoData) {
+ @Nullable @Override public IgniteNodeValidationResult validateNode(
+ ClusterNode node,
+ DiscoveryDataBag.JoiningNodeDiscoveryData discoData
+ ) {
return null;
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
index 38bf3b5320e9b..38a0c3b4427ee 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
@@ -2530,13 +2530,19 @@ public static void initCommunicationErrorResolveConfiguration(IgniteConfiguratio
DiscoverySpi discoverySpi = cfg.getDiscoverySpi();
if (rslvr != null) {
- if (!supportsCommunicationErrorResolve(commSpi))
- throw new IgniteCheckedException("CommunicationFailureResolver is configured, but CommunicationSpi does not support communication" +
- "problem resolve: " + commSpi.getClass().getName());
+ if (!supportsCommunicationErrorResolve(commSpi)) {
+ throw new IgniteCheckedException(
+ "CommunicationFailureResolver is configured, but CommunicationSpi does not support communication" +
+ "problem resolve: " + commSpi.getClass().getName()
+ );
+ }
- if (!supportsCommunicationErrorResolve(discoverySpi))
- throw new IgniteCheckedException("CommunicationFailureResolver is configured, but DiscoverySpi does not support communication" +
- "problem resolve: " + discoverySpi.getClass().getName());
+ if (!supportsCommunicationErrorResolve(discoverySpi)) {
+ throw new IgniteCheckedException(
+ "CommunicationFailureResolver is configured, but DiscoverySpi does not support communication" +
+ "problem resolve: " + discoverySpi.getClass().getName()
+ );
+ }
}
else {
if (supportsCommunicationErrorResolve(commSpi) && supportsCommunicationErrorResolve(discoverySpi))
@@ -2899,7 +2905,14 @@ private DiscoveryWorker() {
* @param topSnapshot Topology snapshot.
*/
@SuppressWarnings("RedundantTypeArguments")
- private void recordEvent(int type, long topVer, ClusterNode node, DiscoCache discoCache, Collection topSnapshot, @Nullable SpanContainer spanContainer) {
+ private void recordEvent(
+ int type,
+ long topVer,
+ ClusterNode node,
+ DiscoCache discoCache,
+ Collection topSnapshot,
+ @Nullable SpanContainer spanContainer
+ ) {
assert node != null;
if (ctx.event().isRecordable(type)) {
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/encryption/GridEncryptionManager.java b/modules/core/src/main/java/org/apache/ignite/internal/managers/encryption/GridEncryptionManager.java
index 0bb90d2266e14..abc626b15e1e7 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/encryption/GridEncryptionManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/encryption/GridEncryptionManager.java
@@ -103,7 +103,8 @@
*
Joining node:
*
*
1. Collects and send all stored group keys to coordinator.
- *
2. Generate(but doesn't store locally!) and send keys for all statically configured groups in case the not presented in metastore.
+ *
2. Generate(but doesn't store locally!)
+ * and send keys for all statically configured groups in case the not presented in metastore.
*
3. Store all keys received from coordinator to local store.
*
*
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/metric/IoStatisticsHolderQuery.java b/modules/core/src/main/java/org/apache/ignite/internal/metric/IoStatisticsHolderQuery.java
index e9ce9acb9a6fb..b7884e521de40 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/metric/IoStatisticsHolderQuery.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/metric/IoStatisticsHolderQuery.java
@@ -23,7 +23,8 @@
/**
* Query Statistics holder to gather statistics related to concrete query.
- * Used in {@code org.apache.ignite.internal.stat.IoStatisticsHolderIndex} and {@code org.apache.ignite.internal.stat.IoStatisticsHolderCache}.
+ * Used in {@code org.apache.ignite.internal.stat.IoStatisticsHolderIndex}
+ * and {@code org.apache.ignite.internal.stat.IoStatisticsHolderCache}.
* Query Statistics holder to gather statistics related to concrete query. Used in {@code
* org.apache.ignite.internal.stat.IoStatisticsHolderIndex} and {@code org.apache.ignite.internal.stat.IoStatisticsHolderCache}.
*/
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/store/IgnitePageStoreManager.java b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/store/IgnitePageStoreManager.java
index da606a6809065..30459e0b3e5cf 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/store/IgnitePageStoreManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/store/IgnitePageStoreManager.java
@@ -130,7 +130,13 @@ public void initializeForCache(CacheGroupDescriptor grpDesc, StoredCacheData cac
* @param pageBuf Page buffer to write.
* @throws IgniteCheckedException If failed to write page.
*/
- @Override public PageStore write(int grpId, long pageId, ByteBuffer pageBuf, int tag, boolean calculateCrc) throws IgniteCheckedException;
+ @Override public PageStore write(
+ int grpId,
+ long pageId,
+ ByteBuffer pageBuf,
+ int tag,
+ boolean calculateCrc
+ ) throws IgniteCheckedException;
/**
* Gets page offset within the page store file.
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/DataEntry.java b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/DataEntry.java
index 73de55b830dc0..9376bb0f8ef2b 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/DataEntry.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/DataEntry.java
@@ -100,7 +100,10 @@ public DataEntry(
this.partCnt = partCnt;
// Only READ, CREATE, UPDATE and DELETE operations should be stored in WAL.
- assert op == GridCacheOperation.READ || op == GridCacheOperation.CREATE || op == GridCacheOperation.UPDATE || op == GridCacheOperation.DELETE : op;
+ assert op == GridCacheOperation.READ
+ || op == GridCacheOperation.CREATE
+ || op == GridCacheOperation.UPDATE
+ || op == GridCacheOperation.DELETE : op;
}
/**
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/WALRecord.java b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/WALRecord.java
index 8f49e5d9b488a..52461698a2d14 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/WALRecord.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/WALRecord.java
@@ -337,7 +337,8 @@ public enum RecordPurpose {
INTERNAL,
/**
* Physical records are needed for correct recovering physical state of {@link org.apache.ignite.internal.pagemem.PageMemory}.
- * {@link org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager#restoreBinaryMemory(org.apache.ignite.lang.IgnitePredicate, org.apache.ignite.lang.IgniteBiPredicate)}.
+ * {@link org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager#restoreBinaryMemory(
+ * org.apache.ignite.lang.IgnitePredicate, org.apache.ignite.lang.IgniteBiPredicate)}.
*/
PHYSICAL,
/**
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/delta/MetaPageUpdatePartitionDataRecordV2.java b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/delta/MetaPageUpdatePartitionDataRecordV2.java
index ab3ccf8f35a37..ab0468b074cd0 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/delta/MetaPageUpdatePartitionDataRecordV2.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/delta/MetaPageUpdatePartitionDataRecordV2.java
@@ -98,6 +98,13 @@ public long link() {
/** {@inheritDoc} */
@Override public String toString() {
- return S.toString(MetaPageUpdatePartitionDataRecordV2.class, this, "partId", PageIdUtils.partId(pageId()), "super", super.toString());
+ return S.toString(
+ MetaPageUpdatePartitionDataRecordV2.class,
+ this,
+ "partId",
+ PageIdUtils.partId(pageId()),
+ "super",
+ super.toString()
+ );
}
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/GridProcessorAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/GridProcessorAdapter.java
index 6496b6c8fc547..9feb265594f76 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/GridProcessorAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/GridProcessorAdapter.java
@@ -151,7 +151,10 @@ protected final void assertParameter(boolean cond, String condDesc) throws Ignit
}
/** {@inheritDoc} */
- @Nullable @Override public IgniteNodeValidationResult validateNode(ClusterNode node, DiscoveryDataBag.JoiningNodeDiscoveryData discoData) {
+ @Nullable @Override public IgniteNodeValidationResult validateNode(
+ ClusterNode node,
+ DiscoveryDataBag.JoiningNodeDiscoveryData discoData
+ ) {
return null;
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityAssignmentCache.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityAssignmentCache.java
index 6f7261036c33a..78d3b86af5604 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityAssignmentCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityAssignmentCache.java
@@ -833,8 +833,8 @@ public AffinityAssignment cachedAffinity(
}
}
- assert cache.topologyVersion().compareTo(lastAffChangeTopVer) >= 0 &&
- cache.topologyVersion().compareTo(topVer) <= 0 : "Invalid cached affinity: [cache=" + cache + ", topVer=" + topVer + ", lastAffChangedTopVer=" + lastAffChangeTopVer + "]";
+ assert cache.topologyVersion().compareTo(lastAffChangeTopVer) >= 0 && cache.topologyVersion().compareTo(topVer) <= 0
+ : "Invalid cached affinity: [cache=" + cache + ", topVer=" + topVer + ", lastAffChangedTopVer=" + lastAffChangeTopVer + "]";
return cache;
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityProcessor.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityProcessor.java
index 64cf18dbde5f5..1f57c17be48d3 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityProcessor.java
@@ -613,24 +613,27 @@ private IgniteInternalFuture affinityInfoFromNode(String cacheName
IgniteInternalFuture> fut = ctx.closure()
.callAsyncNoFailover(BROADCAST, affinityJob(cacheName, topVer), F.asList(n), true/*system pool*/, 0, false);
- return fut.chain(new CX1>, AffinityInfo>() {
- @Override public AffinityInfo applyx(IgniteInternalFuture> fut) throws IgniteCheckedException {
- GridTuple3 t = fut.get();
+ return fut.chain(
+ new CX1>, AffinityInfo>() {
+ @Override public AffinityInfo applyx(
+ IgniteInternalFuture> fut
+ ) throws IgniteCheckedException {
+ GridTuple3 t = fut.get();
- AffinityFunction f = (AffinityFunction)unmarshall(ctx, n.id(), t.get1());
- AffinityKeyMapper m = (AffinityKeyMapper)unmarshall(ctx, n.id(), t.get2());
+ AffinityFunction f = (AffinityFunction)unmarshall(ctx, n.id(), t.get1());
+ AffinityKeyMapper m = (AffinityKeyMapper)unmarshall(ctx, n.id(), t.get2());
- assert m != null;
+ assert m != null;
- // Bring to initial state.
- f.reset();
- m.reset();
+ // Bring to initial state.
+ f.reset();
+ m.reset();
- CacheConfiguration ccfg = ctx.cache().cacheConfiguration(cacheName);
+ CacheConfiguration ccfg = ctx.cache().cacheConfiguration(cacheName);
- return new AffinityInfo(f, m, t.get3(), ctx.cacheObjects().contextForCache(ccfg));
- }
- });
+ return new AffinityInfo(f, m, t.get3(), ctx.cacheObjects().contextForCache(ccfg));
+ }
+ });
}
/**
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheGroupMetricsImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheGroupMetricsImpl.java
index b7c0300b8defb..10d39eb18db9b 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheGroupMetricsImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheGroupMetricsImpl.java
@@ -109,7 +109,8 @@ public CacheGroupMetricsImpl(CacheGroupContext ctx) {
idxBuildCntPartitionsLeft = mreg.longMetric("IndexBuildCountPartitionsLeft",
"Number of partitions need processed for finished indexes create or rebuilding.");
- initLocalPartitionsNumber = mreg.longMetric("InitializedLocalPartitionsNumber", "Number of local partitions initialized on current node.");
+ initLocalPartitionsNumber =
+ mreg.longMetric("InitializedLocalPartitionsNumber", "Number of local partitions initialized on current node.");
DataRegion region = ctx.dataRegion();
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheLazyEntry.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheLazyEntry.java
index 45adbfebf7598..9caf3836e1716 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheLazyEntry.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheLazyEntry.java
@@ -134,8 +134,13 @@ public CacheLazyEntry(GridCacheContext ctx,
/** {@inheritDoc} */
@Override public K getKey() {
- if (key == null)
- key = (K)cctx.unwrapBinaryIfNeeded(keyObj, keepBinary, U.deploymentClassLoader(cctx.kernalContext(), U.contextDeploymentClassLoaderId(cctx.kernalContext())));
+ if (key == null) {
+ key = (K)cctx.unwrapBinaryIfNeeded(
+ keyObj,
+ keepBinary,
+ U.deploymentClassLoader(cctx.kernalContext(), U.contextDeploymentClassLoaderId(cctx.kernalContext()))
+ );
+ }
return key;
}
@@ -152,8 +157,14 @@ public CacheLazyEntry(GridCacheContext ctx,
* @return the value corresponding to this entry
*/
public V getValue(boolean keepBinary) {
- if (val == null)
- val = (V)cctx.unwrapBinaryIfNeeded(valObj, keepBinary, true, U.deploymentClassLoader(cctx.kernalContext(), U.contextDeploymentClassLoaderId(cctx.kernalContext())));
+ if (val == null) {
+ val = (V)cctx.unwrapBinaryIfNeeded(
+ valObj,
+ keepBinary,
+ true,
+ U.deploymentClassLoader(cctx.kernalContext(), U.contextDeploymentClassLoaderId(cctx.kernalContext()))
+ );
+ }
return val;
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsImpl.java
index 0b2ee8ca0a1f3..37838705ba855 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsImpl.java
@@ -215,7 +215,8 @@ public class CacheMetricsImpl implements CacheMetrics {
private GridCacheWriteBehindStore store;
/** Tx collisions info. */
- private volatile Supplier>> txKeyCollisionInfo;
+ private volatile Supplier>>
+ txKeyCollisionInfo;
/** Offheap entries count. */
private final LongGauge offHeapEntriesCnt;
@@ -915,7 +916,9 @@ public void onRead(boolean isHit) {
*
* @param coll Key collisions info holder.
*/
- public void keyCollisionsInfo(Supplier>> coll) {
+ public void keyCollisionsInfo(
+ Supplier>> coll
+ ) {
txKeyCollisionInfo = coll;
if (delegate != null)
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java
index 236051a974ee5..235f69a8797af 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java
@@ -385,7 +385,8 @@ public void onKernalStart(boolean checkConsistency) throws IgniteCheckedExceptio
private void checkCache(CacheJoinNodeDiscoveryData.CacheInfo locInfo, CacheData rmtData, UUID rmt)
throws IgniteCheckedException {
GridCacheAttributes rmtAttr = new GridCacheAttributes(rmtData.cacheConfiguration(), rmtData.cacheConfigurationEnrichment());
- GridCacheAttributes locAttr = new GridCacheAttributes(locInfo.cacheData().config(), locInfo.cacheData().cacheConfigurationEnrichment());
+ GridCacheAttributes locAttr =
+ new GridCacheAttributes(locInfo.cacheData().config(), locInfo.cacheData().cacheConfigurationEnrichment());
CU.checkAttributeMismatch(log, rmtAttr.cacheName(), rmt, "cacheMode", "Cache mode",
locAttr.cacheMode(), rmtAttr.cacheMode(), true);
@@ -1422,7 +1423,9 @@ public void validateNoNewCachesWithNewFormat(CacheNodeCommonDiscoveryData cluste
if (!cachesToDestroy.isEmpty()) {
ctx.cache().dynamicDestroyCaches(cachesToDestroy, false);
- throw new IllegalStateException("Node can't join to cluster in compatibility mode with newly configured caches: " + cachesToDestroy);
+ throw new IllegalStateException(
+ "Node can't join to cluster in compatibility mode with newly configured caches: " + cachesToDestroy
+ );
}
}
}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GatewayProtectedCacheProxy.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GatewayProtectedCacheProxy.java
index af34c1277dec2..2cc3b14fff5f2 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GatewayProtectedCacheProxy.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GatewayProtectedCacheProxy.java
@@ -316,7 +316,10 @@ public void setCacheManager(org.apache.ignite.cache.CacheManager cacheMgr) {
}
/** {@inheritDoc} */
- @Override public IgniteFuture loadCacheAsync(@Nullable IgniteBiPredicate p, @Nullable Object... args) throws CacheException {
+ @Override public IgniteFuture loadCacheAsync(
+ @Nullable IgniteBiPredicate p,
+ @Nullable Object... args
+ ) throws CacheException {
CacheOperationGate opGate = onEnter();
try {
@@ -340,7 +343,10 @@ public void setCacheManager(org.apache.ignite.cache.CacheManager cacheMgr) {
}
/** {@inheritDoc} */
- @Override public IgniteFuture localLoadCacheAsync(@Nullable IgniteBiPredicate p, @Nullable Object... args) throws CacheException {
+ @Override public IgniteFuture localLoadCacheAsync(
+ @Nullable IgniteBiPredicate p,
+ @Nullable Object... args
+ ) throws CacheException {
CacheOperationGate opGate = onEnter();
try {
@@ -645,7 +651,10 @@ public void setCacheManager(org.apache.ignite.cache.CacheManager cacheMgr) {
}
/** {@inheritDoc} */
- @Override public Map> invokeAll(Map extends K, ? extends EntryProcessor> map, Object... args) throws TransactionException {
+ @Override public Map> invokeAll(
+ Map extends K, ? extends EntryProcessor> map,
+ Object... args
+ ) throws TransactionException {
CacheOperationGate opGate = onEnter();
try {
@@ -657,7 +666,10 @@ public void setCacheManager(org.apache.ignite.cache.CacheManager cacheMgr) {
}
/** {@inheritDoc} */
- @Override public IgniteFuture