Package ai.spice

Class SpiceClient

java.lang.Object
ai.spice.SpiceClient
All Implemented Interfaces:
AutoCloseable

public class SpiceClient extends Object implements AutoCloseable
Client to execute SQL queries against Spice.ai Cloud and Spice.ai OSS
  • Constructor Details

    • SpiceClient

      public SpiceClient(String appId, String apiKey, URI flightAddress, URI httpAddress, int maxRetries)
      Constructs a new SpiceClient instance with the specified parameters
      Parameters:
      appId - the application ID used to identify the client application
      apiKey - the API key used for authentication with Spice.ai services
      flightAddress - the URI of the flight address for connecting to Spice.ai services
      httpAddress - the URI of the Spice.ai runtime HTTP address
      maxRetries - the maximum number of connection retries for the client
  • Method Details