public class MultithreadedTableWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MultithreadedTableWriter.Mode |
static class |
MultithreadedTableWriter.Status |
static class |
MultithreadedTableWriter.ThreadStatus |
| Constructor and Description |
|---|
MultithreadedTableWriter(String hostName,
int port,
String userId,
String password,
String dbName,
String tableName,
boolean useSSL,
boolean enableHighAvailability,
String[] highAvailabilitySites,
int batchSize,
float throttle,
int threadCount,
String partitionCol) |
MultithreadedTableWriter(String hostName,
int port,
String userId,
String password,
String dbName,
String tableName,
boolean useSSL,
boolean enableHighAvailability,
String[] highAvailabilitySites,
int batchSize,
float throttle,
int threadCount,
String partitionCol,
int[] compressTypes) |
MultithreadedTableWriter(String hostName,
int port,
String userId,
String password,
String dbName,
String tableName,
boolean useSSL,
boolean enableHighAvailability,
String[] highAvailabilitySites,
int batchSize,
float throttle,
int threadCount,
String partitionCol,
int[] compressTypes,
Callback callbackHandler) |
MultithreadedTableWriter(String hostName,
int port,
String userId,
String password,
String dbName,
String tableName,
boolean useSSL,
boolean enableHighAvailability,
String[] highAvailabilitySites,
int batchSize,
float throttle,
int threadCount,
String partitionCol,
int[] compressTypes,
MultithreadedTableWriter.Mode mode,
String[] pModeOption) |
| Modifier and Type | Method and Description |
|---|---|
List<List<Entity>> |
getFailedData() |
MultithreadedTableWriter.Status |
getStatus() |
List<List<Entity>> |
getUnwrittenData() |
ErrorCodeInfo |
insert(Object... args) |
ErrorCodeInfo |
insertUnwrittenData(List<List<Entity>> records) |
void |
waitForThreadCompletion() |
public MultithreadedTableWriter(String hostName, int port, String userId, String password, String dbName, String tableName, boolean useSSL, boolean enableHighAvailability, String[] highAvailabilitySites, int batchSize, float throttle, int threadCount, String partitionCol, int[] compressTypes, MultithreadedTableWriter.Mode mode, String[] pModeOption) throws Exception
Exceptionpublic MultithreadedTableWriter(String hostName, int port, String userId, String password, String dbName, String tableName, boolean useSSL, boolean enableHighAvailability, String[] highAvailabilitySites, int batchSize, float throttle, int threadCount, String partitionCol, int[] compressTypes) throws Exception
Exceptionpublic MultithreadedTableWriter(String hostName, int port, String userId, String password, String dbName, String tableName, boolean useSSL, boolean enableHighAvailability, String[] highAvailabilitySites, int batchSize, float throttle, int threadCount, String partitionCol) throws Exception
Exceptionpublic MultithreadedTableWriter(String hostName, int port, String userId, String password, String dbName, String tableName, boolean useSSL, boolean enableHighAvailability, String[] highAvailabilitySites, int batchSize, float throttle, int threadCount, String partitionCol, int[] compressTypes, Callback callbackHandler) throws Exception
Exceptionpublic List<List<Entity>> getFailedData() throws InterruptedException
InterruptedExceptionpublic MultithreadedTableWriter.Status getStatus()
public void waitForThreadCompletion()
throws InterruptedException
InterruptedExceptionpublic ErrorCodeInfo insertUnwrittenData(List<List<Entity>> records)
public ErrorCodeInfo insert(Object... args)
Copyright © 2023 DolphinDB. All rights reserved.