接口的使用
com.cnosdb.CnosDB
使用CnosDB的程序包
-
com.cnosdb中CnosDB的使用
返回CnosDB的com.cnosdb中的方法修饰符和类型方法说明static CnosDBCreate a connection to a CnosDB.static CnosDBCreate a connection to a CnosDB.static CnosDBCnosDBFactory.connect(String url, String username, String password, okhttp3.OkHttpClient.Builder client) Create a connection to a CnosDB.static CnosDBCnosDBFactory.connect(String url, String username, String password, okhttp3.OkHttpClient.Builder client, CnosDB.ResponseFormat responseFormat) Create a connection to a CnosDB.static CnosDBCreate a connection to a CnosDB.CnosDB.disableGzip()Disable Gzip compress for http request body.CnosDB.enableBatch()Enable batching of single Point writes to speed up writes significantly.CnosDB.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit) Enable batching of single Point writes asenableBatch(int, int, TimeUnit, ThreadFactory)} using default thread factory.CnosDB.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit, ThreadFactory threadFactory) Enable batching of single Point writes asenableBatch(int, int, TimeUnit, ThreadFactory, BiConsumer)using with a exceptionHandler that does nothing.CnosDB.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit, ThreadFactory threadFactory, BiConsumer<Iterable<Point>, Throwable> exceptionHandler) Enable batching of single Point writes to speed up writes significant.CnosDB.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit, ThreadFactory threadFactory, BiConsumer<Iterable<Point>, Throwable> exceptionHandler, CnosDB.ConsistencyLevel consistency) Enable batching of single Point writes with consistency set for an entire batch flushDurations is reached first, a batch write is issued.CnosDB.enableBatch(BatchOptions batchOptions) Enable batching of single Point writes to speed up writes significantly.CnosDB.enableGzip()Enable Gzip compress for http request body.CnosDB.setConsistency(CnosDB.ConsistencyLevel consistency) Set the consistency level which is used for writing points.CnosDB.setDatabase(String database) Set the database which is used for writing points.CnosDB.setLogLevel(CnosDB.LogLevel logLevel) Set the loglevel which is used for REST related actions.CnosDB.setRetentionPolicy(String retentionPolicy) Set the retention policy which is used for writing points. -
com.cnosdb.impl中CnosDB的使用
实现CnosDB的com.cnosdb.impl中的类返回CnosDB的com.cnosdb.impl中的方法修饰符和类型方法说明CnosDBImpl.disableGzip()Disable Gzip compress for http request body.CnosDBImpl.enableBatch()CnosDBImpl.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit) CnosDBImpl.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit, ThreadFactory threadFactory) CnosDBImpl.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit, ThreadFactory threadFactory, BiConsumer<Iterable<Point>, Throwable> exceptionHandler) CnosDBImpl.enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit, ThreadFactory threadFactory, BiConsumer<Iterable<Point>, Throwable> exceptionHandler, CnosDB.ConsistencyLevel consistency) CnosDBImpl.enableBatch(BatchOptions batchOptions) CnosDBImpl.enableGzip()Enable Gzip compress for http request body.CnosDBImpl.setConsistency(CnosDB.ConsistencyLevel consistency) CnosDBImpl.setDatabase(String database) CnosDBImpl.setLogLevel(CnosDB.LogLevel logLevel) CnosDBImpl.setRetentionPolicy(String retentionPolicy) 参数类型为CnosDB的com.cnosdb.impl中的方法修饰符和类型方法说明static BatchProcessor.BuilderStatic method to create the Builder for this BatchProcessor.参数类型为CnosDB的com.cnosdb.impl中的构造器