Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
The Java client that provides an easy and convenient way to interact with InfluxDB 3.
This package supports both writing data to InfluxDB and querying data using the FlightSQL client,
which allows you to execute SQL queries against InfluxDB IOx.
/*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.influxdb.v3.client;
import java.net.MalformedURLException;
import java.util.List;
import java.util.Map;
import java.util.stream.Stream;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.apache.arrow.vector.VectorSchemaRoot;
import com.influxdb.v3.client.config.ClientConfig;
import com.influxdb.v3.client.internal.InfluxDBClientImpl;
import com.influxdb.v3.client.query.QueryOptions;
import com.influxdb.v3.client.write.WriteOptions;
/**
* The InfluxDBClient interface provides a client for interact with InfluxDB 3.
* This client supports both writing data to InfluxDB and querying data using the FlightSQL client,
* which allows you to execute SQL queries against InfluxDB IOx.
*/
public interface InfluxDBClient extends AutoCloseable {
/**
* Write a record specified in the InfluxDB Line Protocol to the InfluxDB server.
*
* @param record the record specified in the InfluxDB Line Protocol, can be null
*/
void writeRecord(@Nullable final String record);
/**
* Write a record specified in the InfluxDB Line Protocol to the InfluxDB server.
*
* @param record the record specified in the InfluxDB Line Protocol, can be null
* @param options the options for writing data to InfluxDB
*/
void writeRecord(@Nullable final String record, @Nonnull final WriteOptions options);
/**
* Write records specified in the InfluxDB Line Protocol to the InfluxDB server.
*
* @param records the records specified in the InfluxDB Line Protocol, cannot be null
*/
void writeRecords(@Nonnull final List records);
/**
* Write records specified in the InfluxDB Line Protocol to the InfluxDB server.
*
* @param records the records specified in the InfluxDB Line Protocol, cannot be null
* @param options the options for writing data to InfluxDB
*/
void writeRecords(@Nonnull final List records, @Nonnull final WriteOptions options);
/**
* Write a {@link Point} to the InfluxDB server.
*
* @param point the {@link Point} to write, can be null
*/
void writePoint(@Nullable final Point point);
/**
* Write a {@link Point} to the InfluxDB server.
*
* @param point the {@link Point} to write, can be null
* @param options the options for writing data to InfluxDB
*/
void writePoint(@Nullable final Point point, @Nonnull final WriteOptions options);
/**
* Write a list of {@link Point} to the InfluxDB server.
*
* @param points the list of {@link Point} to write, cannot be null
*/
void writePoints(@Nonnull final List points);
/**
* Write a list of {@link Point} to the InfluxDB server.
*
* @param points the list of {@link Point} to write, cannot be null
* @param options the options for writing data to InfluxDB
*/
void writePoints(@Nonnull final List points, @Nonnull final WriteOptions options);
/**
* Query data from InfluxDB IOx using FlightSQL.
*
* The result stream should be closed after use, you can use try-resource pattern to close it automatically:
*