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.
/*
* 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.
*/
package org.apache.iotdb.isession;
import org.apache.iotdb.common.rpc.thrift.TAggregationType;
import org.apache.iotdb.common.rpc.thrift.TEndPoint;
import org.apache.iotdb.isession.template.Template;
import org.apache.iotdb.isession.util.SystemStatus;
import org.apache.iotdb.isession.util.Version;
import org.apache.iotdb.rpc.IoTDBConnectionException;
import org.apache.iotdb.rpc.StatementExecutionException;
import org.apache.iotdb.service.rpc.thrift.TSBackupConfigurationResp;
import org.apache.iotdb.service.rpc.thrift.TSConnectionInfoResp;
import org.apache.thrift.TException;
import org.apache.tsfile.enums.TSDataType;
import org.apache.tsfile.file.metadata.enums.CompressionType;
import org.apache.tsfile.file.metadata.enums.TSEncoding;
import org.apache.tsfile.write.record.Tablet;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
public interface ISession extends AutoCloseable {
Version getVersion();
void setVersion(Version version);
int getFetchSize();
void setFetchSize(int fetchSize);
void open() throws IoTDBConnectionException;
void open(boolean enableRPCCompression) throws IoTDBConnectionException;
void open(boolean enableRPCCompression, int connectionTimeoutInMs)
throws IoTDBConnectionException;
void open(
boolean enableRPCCompression,
int connectionTimeoutInMs,
Map deviceIdToEndpoint,
INodeSupplier nodeSupplier)
throws IoTDBConnectionException;
void close() throws IoTDBConnectionException;
String getTimeZone();
void setTimeZone(String zoneId) throws StatementExecutionException, IoTDBConnectionException;
void setTimeZoneOfSession(String zoneId);
/**
* @deprecated Use {@link #createDatabase(String)} instead.
*/
@Deprecated
void setStorageGroup(String storageGroup)
throws IoTDBConnectionException, StatementExecutionException;
/**
* @deprecated Use {@link #deleteDatabase(String)} instead.
*/
@Deprecated
void deleteStorageGroup(String storageGroup)
throws IoTDBConnectionException, StatementExecutionException;
/**
* @deprecated Use {@link #deleteDatabases(List)} instead.
*/
@Deprecated
void deleteStorageGroups(List storageGroups)
throws IoTDBConnectionException, StatementExecutionException;
void createDatabase(String database) throws IoTDBConnectionException, StatementExecutionException;
void deleteDatabase(String database) throws IoTDBConnectionException, StatementExecutionException;
void deleteDatabases(List databases)
throws IoTDBConnectionException, StatementExecutionException;
void createTimeseries(
String path, TSDataType dataType, TSEncoding encoding, CompressionType compressor)
throws IoTDBConnectionException, StatementExecutionException;
@SuppressWarnings("squid:S107") // ignore Methods should not have too many parameters
void createTimeseries(
String path,
TSDataType dataType,
TSEncoding encoding,
CompressionType compressor,
Map props,
Map tags,
Map attributes,
String measurementAlias)
throws IoTDBConnectionException, StatementExecutionException;
void createAlignedTimeseries(
String deviceId,
List measurements,
List dataTypes,
List encodings,
List compressors,
List measurementAliasList)
throws IoTDBConnectionException, StatementExecutionException;
@SuppressWarnings("squid:S107") // ignore Methods should not have too many parameters
void createAlignedTimeseries(
String deviceId,
List measurements,
List dataTypes,
List encodings,
List compressors,
List measurementAliasList,
List