Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions examples/client-v2-apache-arrow/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

# Binary files should be left untouched
*.jar binary

5 changes: 5 additions & 0 deletions examples/client-v2-apache-arrow/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build
51 changes: 51 additions & 0 deletions examples/client-v2-apache-arrow/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details on building Java & JVM projects, please refer to https://docs.gradle.org/9.2.1/userguide/building_java_projects.html in the Gradle documentation.
*/

plugins {
// Apply the application plugin to add support for building a CLI application in Java.
application
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
mavenLocal()
}

dependencies {
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation(libs.testng)

implementation(libs.clickhouseClient)

implementation(platform(libs.arrowBom))
implementation(libs.arrowVector)
implementation(libs.arrowMemory)
implementation(libs.arrowCompression)
implementation(libs.flightCore)
implementation(libs.slf4jSimple)
implementation(libs.slf4jApi)

implementation(libs.guava)
}

// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

application {
// Define the main class for the application.
mainClass = "org.example.App"
}

tasks.named<Test>("test") {
// Use TestNG for unit tests.
useTestNG()
}
5 changes: 5 additions & 0 deletions examples/client-v2-apache-arrow/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties

org.gradle.configuration-cache=true

28 changes: 28 additions & 0 deletions examples/client-v2-apache-arrow/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format

[versions]
guava = "33.4.6-jre"
testng = "7.5.1"
arrowBom = "19.0.0"
adbc = "0.22.0"
slf4j = "2.0.17"
clickhouseClient = "0.9.8-SNAPSHOT"

[libraries]
guava = { module = "com.google.guava:guava", version.ref = "guava" }
testng = { module = "org.testng:testng", version.ref = "testng" }
clickhouseClient = { module = "com.clickhouse:client-v2", version.ref = "clickhouseClient" }

# Arrow support
arrowBom = {module = "org.apache.arrow:arrow-bom", version.ref = "arrowBom"}
arrowVector = {module = "org.apache.arrow:arrow-vector" }
arrowMemory = {module = "org.apache.arrow:arrow-memory-netty" }
arrowCompression = { module = "org.apache.arrow:arrow-compression" }

# Flight Server
flightCore = {module = "org.apache.arrow:flight-core"}

# Logging
slf4jSimple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j"}
slf4jApi = { module = "org.slf4j:slf4j-api", version.ref = "slf4j"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
248 changes: 248 additions & 0 deletions examples/client-v2-apache-arrow/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading