You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// see above for client initializationFlightStreamstream = client.query("SELECT * FROM eth.recent_blocks LIMIT 10;");
while (stream.next()) {
System.out.println(stream.getRoot().contentToTSVString());
}
Exceptions - SDK uses standard IllegalArgumentException, etc and Arrow Flight exceptions. Custom exceptions must be used only in cases where the standard exceptions are not descriptive (to be defined during implementation, if any such cases).
Implements connection retry mechanism (configurable, 3 attempts by default). Retries are performed for connection and system internal errors.
CI and Publishing
GH Action based E2E test on PR
GH Action based workflow to build and publish SDK on Maven Central
Spice SDK is published to Maven Central and can be used by Maven and Gradle apps.
Goal-State/What/Result
Developers can call Spice OSS through a Spice Java SDK from Java apps.
Why/Purpose
Java is a large developer base and developers in Java currently can not call Spice OSS through official SDKs.
By When
July 12, 2024 5:00pm PST
Issue/Spec written and reviewed: July 15
Done-Done: July 15
Done-Done
The Algorithm
Spec
SDK API
Supported/tested Java versions:
OpenJDK 21 LTS
OpenJDK 17 LTS
OracleJDK 21 LTS
OracleJDK 17 LTS
OracleJDK 22 (latest Oracle)
SDK API follows Java builder pattern to initialize the client and supports Spice OSS and Spice Cloud Platform scenarios.
Client initialization for Spice OSS
Client initialization for Spice Cloud Platform
SPICE_FLIGHT_URL
ENV variable):Exceptions - SDK uses standard
IllegalArgumentException
, etc and Arrow Flight exceptions. Custom exceptions must be used only in cases where the standard exceptions are not descriptive (to be defined during implementation, if any such cases).Implements connection retry mechanism (configurable, 3 attempts by default). Retries are performed for connection and system internal errors.
CI and Publishing
Documentation
Covers both Maven and Gradle
How/MAP
Implementation (issues)
QA
The text was updated successfully, but these errors were encountered: