This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/datasketches-website.git
The following commit(s) were added to refs/heads/master by this push:
new 20557211 Update ToC to include Google BigQuery implementation
20557211 is described below
commit 20557211bf8e6d07050bf8e057031a2834596842
Author: Lee Rhodes <[email protected]>
AuthorDate: Fri Jan 23 16:22:51 2026 -0800
Update ToC to include Google BigQuery implementation
---
_includes/toc.html | 3 +-
.../GoogleBigQueryIntegration.md | 24 +++++++++++++++
.../apache/datasketches/docgen/TocGenerator.java | 36 ++++++++++------------
src/main/resources/docgen/toc.json | 5 +--
4 files changed, 46 insertions(+), 22 deletions(-)
diff --git a/_includes/toc.html b/_includes/toc.html
index 5aab7429..b7a668f2 100644
--- a/_includes/toc.html
+++ b/_includes/toc.html
@@ -87,10 +87,11 @@
<a data-toggle="collapse" class="menu collapsed"
href="#collapse_system_integrations">System Integrations</a>
</p>
<div class="collapse" id="collapse_system_integrations">
- <li><a
href="{{site.docs_dir}}/SystemIntegrations/ApacheDruidIntegration.html">•Using
Sketches in ApacheDruid</a></li>
+ <li><a
href="{{site.docs_dir}}/SystemIntegrations/ApacheDruidIntegration.html">•Using
Sketches in Apache Druid</a></li>
<li><a
href="{{site.docs_dir}}/SystemIntegrations/ApacheHiveIntegration.html">•Using
Sketches in Apache Hive</a></li>
<li><a
href="{{site.docs_dir}}/SystemIntegrations/ApachePigIntegration.html">•Using
Sketches in Apache Pig</a></li>
<li><a
href="{{site.docs_dir}}/SystemIntegrations/ApachePinotIntegration.html">•Using
Sketches in Apache Pinot</a></li>
+ <li><a
href="{{site.docs_dir}}/SystemIntegrations/GoogleBigQueryIntegration.html">•Using
Sketches in Google BigQuery</a></li>
<li><a
href="{{site.docs_dir}}/SystemIntegrations/PostgreSQLIntegration.html">•Using
Sketches in PostgreSQL</a></li>
</div>
diff --git a/docs/SystemIntegrations/GoogleBigQueryIntegration.md
b/docs/SystemIntegrations/GoogleBigQueryIntegration.md
new file mode 100644
index 00000000..204b9102
--- /dev/null
+++ b/docs/SystemIntegrations/GoogleBigQueryIntegration.md
@@ -0,0 +1,24 @@
+---
+layout: doc_page
+---
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+### Google BigQuery Integration
+
+* See [Apache DataSketches Integration for Google
BigQuery](https://github.com/apache/datasketches-bigquery/blob/main/README.md)
diff --git a/src/main/java/org/apache/datasketches/docgen/TocGenerator.java
b/src/main/java/org/apache/datasketches/docgen/TocGenerator.java
index bc1e84aa..e1466a14 100644
--- a/src/main/java/org/apache/datasketches/docgen/TocGenerator.java
+++ b/src/main/java/org/apache/datasketches/docgen/TocGenerator.java
@@ -39,6 +39,10 @@ public class TocGenerator {
private PrintWriter pw = null;
private String jsonSrcFile;
+ private static final String defaultJsonSrcFile =
"src/main/resources/docgen/toc.json";
+ private static final String defaultTgtTocFile = "_includes/toc.html";
+
+
TocGenerator() {} //needed for TestNG
/**
@@ -48,8 +52,8 @@ public class TocGenerator {
* <li>Be careful not to use any HTML reserved symbols!</li>
* <li>All links in the ToC should be unique within the ToC.</li>
* <li>Note that the javascript required is located in the _includes
directory.</li>
- * <li>Execute this test. The result will be placed in the proper location
as part of the web
- * source.</li>
+ * <li>Execute this test using TestNG or as an application. Using the
defaults,
+ * the result will be placed in the proper location as part of the web
source.</li>
* <li>Stage the changes and push the web site source to origin.</li>
* <li>Refresh your browser and confirm that the TOC is correct.</li>
* </ol>
@@ -57,12 +61,20 @@ public class TocGenerator {
*/
@Test
public static void runTocGenerator() {
- final String jsonSrcFile = "src/main/resources/docgen/toc.json";
- final String tgtTocFile = "_includes/toc.html";
- final TocGenerator tocgen = new TocGenerator(jsonSrcFile, tgtTocFile);
+ final TocGenerator tocgen = new TocGenerator(defaultJsonSrcFile,
defaultTgtTocFile);
tocgen.readJson();
}
+ /**
+ * Command line access.
+ * @param args is not used.
+ */
+ public static void main(final String[] args) {
+ final TocGenerator tocgen = new TocGenerator(defaultJsonSrcFile,
defaultTgtTocFile);
+ tocgen.readJson();
+ }
+
+
/**
* Execute the runTocGenerator above.
* @param jsonSrcFile The JSON source file
@@ -244,18 +256,4 @@ public class TocGenerator {
if (pw != null) { pw.flush(); }
}
- /**
- * Command line access.
- * @param args two arguments are required:
- * <ol><li>The JSON source file</li>
- * <li>The target toc.html file</li>
- * </ol>
- */
- public static void main(final String[] args) {
- final String jsonSrcFile = args[0];
- final String tgtTocFile = args[1];
- final TocGenerator tocgen = new TocGenerator(jsonSrcFile, tgtTocFile);
- tocgen.readJson();
- }
-
}
diff --git a/src/main/resources/docgen/toc.json
b/src/main/resources/docgen/toc.json
index 30a7a91c..3e9a5e05 100644
--- a/src/main/resources/docgen/toc.json
+++ b/src/main/resources/docgen/toc.json
@@ -63,7 +63,7 @@
{ "class":"Dropdown", "desc" : "Sampling", "array":
[
- {"class":"Doc", "desc" : "Reservoir Sampling Sketches",
"dir" : "Sampling", "file": "ReservoirSamplingSketches" },
+ {"class":"Doc", "desc" : "Reservoir Sampling Sketches",
"dir" : "Sampling", "file": "ReservoirSamplingSketches" },
{"class":"Doc", "desc" : "VarOpt Sampling Sketches",
"dir" : "Sampling", "file": "VarOptSamplingSketches" },
]
},
@@ -72,10 +72,11 @@
{ "class":"Dropdown", "desc" : "System Integrations", "array":
[
- {"class":"Doc", "desc" : "Using Sketches in ApacheDruid",
"dir" : "SystemIntegrations", "file": "ApacheDruidIntegration" },
+ {"class":"Doc", "desc" : "Using Sketches in Apache Druid",
"dir" : "SystemIntegrations", "file": "ApacheDruidIntegration" },
{"class":"Doc", "desc" : "Using Sketches in Apache Hive",
"dir" : "SystemIntegrations", "file": "ApacheHiveIntegration" },
{"class":"Doc", "desc" : "Using Sketches in Apache Pig",
"dir" : "SystemIntegrations", "file": "ApachePigIntegration" },
{"class":"Doc", "desc" : "Using Sketches in Apache Pinot",
"dir" : "SystemIntegrations", "file": "ApachePinotIntegration" },
+ {"class":"Doc", "desc" : "Using Sketches in Google BigQuery",
"dir" : "SystemIntegrations", "file": "GoogleBigQueryIntegration" },
{"class":"Doc", "desc" : "Using Sketches in PostgreSQL",
"dir" : "SystemIntegrations", "file": "PostgreSQLIntegration" },
]
},
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]