public class MultithreadTableWriter extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MultithreadTableWriter.Status |
static class |
MultithreadTableWriter.ThreadStatus |
| 构造器和说明 |
|---|
MultithreadTableWriter(String hostName,
int port,
String userId,
String password,
String dbName,
String tableName,
boolean useSSL,
boolean highAvailability,
String[] highAvailabilitySites,
int batchSize,
float throttle,
int threadCount,
String partitionedColName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
getStatus(MultithreadTableWriter.Status status) |
void |
getUnwrittenData(List<List<Entity>> unwrite) |
boolean |
insert(ErrorCodeInfo pErrorInfo,
Object... args) |
boolean |
insert(List<List<Entity>> vectorOfVector,
ErrorCodeInfo pErrorInfo) |
void |
waitExit() |
public MultithreadTableWriter(String hostName, int port, String userId, String password, String dbName, String tableName, boolean useSSL, boolean highAvailability, String[] highAvailabilitySites, int batchSize, float throttle, int threadCount, String partitionedColName) throws Exception
Exceptionpublic void getStatus(MultithreadTableWriter.Status status)
public void waitExit()
throws InterruptedException
public boolean insert(List<List<Entity>> vectorOfVector, ErrorCodeInfo pErrorInfo)
public boolean insert(ErrorCodeInfo pErrorInfo, Object... args)
Copyright © 2022 DolphinDB. All rights reserved.