public class MultithreadedTableWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
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) |
| 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) 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 List<List<Entity>> getUnwrittenData() throws InterruptedException
InterruptedExceptionpublic 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 © 2022 DolphinDB. All rights reserved.