diff --git a/ci/run_tests_pipeline.yaml b/ci/run_tests_pipeline.yaml index 74d4695..69c3653 100644 --- a/ci/run_tests_pipeline.yaml +++ b/ci/run_tests_pipeline.yaml @@ -11,8 +11,36 @@ variables: QUESTDB_ILP_TCP_AUTH_ENABLE: false stages: + - stage: Validate + displayName: "Validation" + jobs: + - job: Javadoc + displayName: "Javadoc" + pool: + name: "Azure Pipelines" + vmImage: "ubuntu-latest" + steps: + - checkout: self + fetchDepth: 0 + lfs: false + submodules: false + - bash: | + git fetch origin $(System.PullRequest.SourceBranch) + git checkout FETCH_HEAD + displayName: "Checkout PR source branch" + condition: eq(variables['Build.Reason'], 'PullRequest') + - task: JavaToolInstaller@0 + displayName: "Install Java 11" + inputs: + versionSpec: "11" + jdkArchitectureOption: "x64" + jdkSourceOption: "PreInstalled" + - bash: mvn -f core/pom.xml javadoc:javadoc -Pjavadoc --batch-mode + displayName: "Verify Javadoc" + - stage: BuildAndTest displayName: "Building and testing" + dependsOn: Validate jobs: - job: RunOn displayName: "on" diff --git a/core/pom.xml b/core/pom.xml index ce4e5c5..df3022b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -22,8 +22,7 @@ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> - + 4.0.0 QuestDB QuestDB is high performance SQL time series database @@ -39,7 +38,7 @@ %regex[.*[^o].class] - 1.0.0-SNAPSHOT + 1.0.1-SNAPSHOT org.questdb client jar @@ -63,7 +62,7 @@ scm:git:https://github.com/questdb/java-questdb-client.git scm:git:https://github.com/questdb/java-questdb-client.git - 1.0.0 + HEAD @@ -166,7 +165,7 @@ maven-surefire-plugin 3.5.3 - + -Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider true @@ -198,12 +197,16 @@ + none + 11 + false ${compilerArg1} ${compilerArg2} ${excludePattern1} + module-info.java @@ -292,12 +295,16 @@ + none + 11 + false ${compilerArg1} ${compilerArg2} ${excludePattern1} + module-info.java diff --git a/core/src/main/java/io/questdb/client/ParanoiaState.java b/core/src/main/java/io/questdb/client/ParanoiaState.java index 894c449..6141660 100644 --- a/core/src/main/java/io/questdb/client/ParanoiaState.java +++ b/core/src/main/java/io/questdb/client/ParanoiaState.java @@ -28,11 +28,11 @@ public class ParanoiaState { /** *
-     * BASIC -> validates UTF-8 in log records (throws a LogError if invalid),
+     * BASIC -> validates UTF-8 in log records (throws a LogError if invalid),
      *          throws a LogError on abandoned log records (missing .$() at the end of log statement),
      *          detects closed stdout in LogConsoleWriter.
      *          This introduces a low overhead to logging.
-     * AGGRESSIVE -> BASIC + holds recent history of log lines to help diagnose closed stdout,
+     * AGGRESSIVE -> BASIC + holds recent history of log lines to help diagnose closed stdout,
      *               holds the stack trace of abandoned log record.
      *               This introduces a significant overhead to logging.
      *
diff --git a/core/src/main/java/io/questdb/client/std/Decimal128.java b/core/src/main/java/io/questdb/client/std/Decimal128.java
index 8f9f3e3..df7d039 100644
--- a/core/src/main/java/io/questdb/client/std/Decimal128.java
+++ b/core/src/main/java/io/questdb/client/std/Decimal128.java
@@ -333,7 +333,7 @@ public static int compareTo(long aHigh, long aLow, int aScale, long bHigh, long
     }
 
     /**
-     * Divide two Decimal128 numbers and store the result in sink (a / b -> sink)
+     * Divide two Decimal128 numbers and store the result in sink (a / b {@code ->} sink)
      * Uses optimal precision calculation up to MAX_SCALE
      *
      * @param a            First operand (dividend)
@@ -477,7 +477,7 @@ public static boolean isNull(long hi, long lo) {
     }
 
     /**
-     * Calculate modulo of two Decimal128 numbers and store the result in sink (a % b -> sink)
+     * Calculate modulo of two Decimal128 numbers and store the result in sink (a % b {@code ->} sink)
      *
      * @param a    First operand (dividend)
      * @param b    Second operand (divisor)
@@ -526,7 +526,7 @@ public static void putNull(long addr) {
     }
 
     /**
-     * Subtract two Decimal128 numbers and store the result in sink (a - b -> sink)
+     * Subtract two Decimal128 numbers and store the result in sink (a - b {@code ->} sink)
      *
      * @param a    First operand (minuend)
      * @param b    Second operand (subtrahend)
@@ -1043,7 +1043,7 @@ public void ofZero() {
     /**
      * Rescale this Decimal128 in place
      *
-     * @param newScale The new scale (must be >= current scale)
+     * @param newScale The new scale (must be {@code >=} current scale)
      */
     public void rescale(int newScale) {
         validateScale(newScale);
diff --git a/core/src/main/java/io/questdb/client/std/Decimal256.java b/core/src/main/java/io/questdb/client/std/Decimal256.java
index dd409e0..99c94ff 100644
--- a/core/src/main/java/io/questdb/client/std/Decimal256.java
+++ b/core/src/main/java/io/questdb/client/std/Decimal256.java
@@ -1089,7 +1089,7 @@ public boolean equals(Object obj) {
      * Checks if this Decimal256 value fits within the specified storage size (pow 2).
      * The value fits if its absolute magnitude can be represented with the given number of digits.
      *
-     * @param size the target size (number of bytes available pow 2, e.g., 4 bytes -> 2)
+     * @param size the target size (number of bytes available pow 2, e.g., 4 bytes {@code ->} 2)
      * @return true if the value fits within the storage size, false otherwise
      */
     public boolean fitsInStorageSizePow2(int size) {
@@ -1615,7 +1615,7 @@ public void ofZero() {
     /**
      * Rescale this Decimal256 in place
      *
-     * @param newScale The new scale (must be >= current scale)
+     * @param newScale The new scale (must be {@code >=} current scale)
      */
     public void rescale(int newScale) {
         if (isNull()) {
@@ -2869,7 +2869,7 @@ private void multiplyByPowerOf10InPlace(int n) {
     /**
      * Rescale this Decimal256 in place without checks
      *
-     * @param newScale The new scale (must be >= current scale)
+     * @param newScale The new scale (must be {@code >=} current scale)
      */
     private void rescale0(int newScale) {
         int scaleDiff = newScale - this.scale;
diff --git a/core/src/main/java/io/questdb/client/std/Decimal64.java b/core/src/main/java/io/questdb/client/std/Decimal64.java
index 2f8720f..7c5a5e5 100644
--- a/core/src/main/java/io/questdb/client/std/Decimal64.java
+++ b/core/src/main/java/io/questdb/client/std/Decimal64.java
@@ -112,7 +112,7 @@ public static void add(Decimal64 a, Decimal64 b, Decimal64 sink) {
     }
 
     /**
-     * Divide two Decimal64 numbers and store the result in sink (a / b -> sink)
+     * Divide two Decimal64 numbers and store the result in sink (a / b {@code ->} sink)
      */
     public static void divide(Decimal64 a, Decimal64 b, Decimal64 sink, int resultScale, RoundingMode roundingMode) {
         sink.copyFrom(a);
@@ -218,7 +218,7 @@ public static boolean isNull(long value) {
     }
 
     /**
-     * Calculate modulo of two Decimal64 numbers and store the result in sink (a % b -> sink)
+     * Calculate modulo of two Decimal64 numbers and store the result in sink (a % b {@code ->} sink)
      */
     public static void modulo(Decimal64 a, Decimal64 b, Decimal64 sink) {
         sink.copyFrom(a);
@@ -242,7 +242,7 @@ public static void negate(Decimal64 a, Decimal64 sink) {
     }
 
     /**
-     * Subtract two Decimal64 numbers and store the result in sink (a - b -> sink)
+     * Subtract two Decimal64 numbers and store the result in sink (a - b {@code ->} sink)
      */
     public static void subtract(Decimal64 a, Decimal64 b, Decimal64 sink) {
         sink.copyFrom(a);
@@ -704,7 +704,7 @@ public void ofZero() {
     /**
      * Rescale this Decimal64 in place
      *
-     * @param newScale The new scale (must be >= current scale)
+     * @param newScale The new scale (must be {@code >=} current scale)
      */
     public void rescale(int newScale) {
         validateScale(newScale);
diff --git a/examples/pom.xml b/examples/pom.xml
index d998142..fe10f8a 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -22,13 +22,12 @@
   ~
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
 
-
+
     4.0.0
 
     org.questdb
     client-examples
-    1.0.0-SNAPSHOT
+    1.0.1-SNAPSHOT
     Examples for QuestDB
 
     
diff --git a/pom.xml b/pom.xml
index 59654a0..765fa33 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,11 +22,10 @@
   ~
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
 
-
+
     4.0.0
 
-    1.0.0-SNAPSHOT
+    1.0.1-SNAPSHOT
     org.questdb
     client-parent
     pom
@@ -36,7 +35,7 @@
         scm:git:https://github.com/questdb/java-questdb-client.git
         scm:git:https://github.com/questdb/java-questdb-client.git
         https://github.com/questdb/java-questdb-client
-        1.0.0
+        HEAD