public class WriterConfig extends Object
| 构造器和说明 |
|---|
WriterConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
BatchRequestType |
getBatchRequestType() |
int |
getBucketCount() |
int |
getBufferSize()
Get the size of the memory buffer queue for a TableStoreWriter, which must be a power of 2.
|
int |
getCallbackThreadCount() |
int |
getCallbackThreadPoolQueueSize() |
int |
getClientMaxConnections() |
int |
getConcurrency()
Get the maximum request concurrency for a TableStoreWriter.
|
DispatchMode |
getDispatchMode() |
int |
getFlushInterval()
Set the automatic flush time interval for the writer, in milliseconds.
|
int |
getLogInterval() |
int |
getMaxAttrColumnSize()
Get the maximum size limit of the attribute column value, in units of Byte.
|
int |
getMaxBatchRowsCount()
Get the maximum number of rows for a single batch RPC request import.
|
int |
getMaxBatchSize()
Get the maximum data size for a single batch RPC request, in units of Byte.
|
int |
getMaxColumnsCount()
Get the maximum number of columns per row limit.
|
int |
getMaxPKColumnSize()
Get the maximum size limit of the primary key column value in bytes.
|
WriteMode |
getWriteMode() |
WriterRetryStrategy |
getWriterRetryStrategy() |
boolean |
isAllowDuplicatedRowInBatchRequest() |
boolean |
isEnableSchemaCheck()
Get whether the schema check is enabled at the SDK level when writing data.
|
void |
setAllowDuplicatedRowInBatchRequest(boolean allowDuplicatedRowInBatchRequest) |
void |
setBatchRequestType(BatchRequestType batchRequestType) |
void |
setBucketCount(int bucketCount) |
void |
setBufferSize(int bufferSize)
Set the size of the buffer queue in memory for a TableStoreWriter.
|
void |
setCallbackThreadCount(int callbackThreadCount) |
void |
setCallbackThreadPoolQueueSize(int callbackThreadPoolQueueSize) |
void |
setClientMaxConnections(int clientMaxConnections) |
void |
setConcurrency(int concurrency)
Sets the maximum request concurrency for a TableStoreWriter.
|
void |
setDispatchMode(DispatchMode dispatchMode) |
void |
setEnableSchemaCheck(boolean enableSchemaCheck)
Set whether to enable schema checking at the SDK level when writing data
|
void |
setFlushInterval(int flushInterval)
Get the automatic flush interval of the writer, in milliseconds.
|
void |
setLogInterval(int logInterval) |
void |
setMaxAttrColumnSize(int maxAttrColumnSize)
Set the maximum size limit for the value of the attribute column, in units of Byte.
|
void |
setMaxBatchRowsCount(int maxBatchRowsCount)
Set the maximum number of rows for a single batch RPC request.
|
void |
setMaxBatchSize(int maxBatchSize)
Set the maximum data size for a single batch RPC request, in units of Byte.
|
void |
setMaxColumnsCount(int maxColumnsCount)
Set the maximum column count limit for a row.
|
void |
setMaxPKColumnSize(int maxPKColumnSize)
Set the maximum size limit for the value of the primary key column, in units of Byte.
|
void |
setWriteMode(WriteMode writeMode) |
void |
setWriterRetryStrategy(WriterRetryStrategy writerRetryStrategy) |
public int getMaxPKColumnSize()
public void setMaxPKColumnSize(int maxPKColumnSize)
maxPKColumnSize - The maximum size limit for the value of the primary key column.public int getMaxAttrColumnSize()
public void setMaxAttrColumnSize(int maxAttrColumnSize)
maxAttrColumnSize - The maximum size limit for the value of the attribute column.public int getMaxColumnsCount()
public void setMaxColumnsCount(int maxColumnsCount)
maxColumnsCount - The maximum column count limit for a row.public int getMaxBatchRowsCount()
public void setMaxBatchRowsCount(int maxBatchRowsCount)
maxBatchRowsCount - The maximum number of rows for a single batch RPC request.public int getMaxBatchSize()
public void setMaxBatchSize(int maxBatchSize)
maxBatchSize - The maximum data size for a single batch RPC request.public int getConcurrency()
public void setConcurrency(int concurrency)
concurrency - The maximum request concurrency for a TableStoreWriter.public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize - The size of the buffer queue in memory for a TableStoreWriter.public int getFlushInterval()
public void setFlushInterval(int flushInterval)
flushInterval - The automatic flush interval of the writer.public boolean isEnableSchemaCheck()
public void setEnableSchemaCheck(boolean enableSchemaCheck)
enableSchemaCheck - Whether to enable schema checking at the SDK level when writing datapublic int getBucketCount()
public void setBucketCount(int bucketCount)
public DispatchMode getDispatchMode()
public void setDispatchMode(DispatchMode dispatchMode)
public WriteMode getWriteMode()
public void setWriteMode(WriteMode writeMode)
public BatchRequestType getBatchRequestType()
public void setBatchRequestType(BatchRequestType batchRequestType)
public int getLogInterval()
public void setLogInterval(int logInterval)
public int getCallbackThreadCount()
public void setCallbackThreadCount(int callbackThreadCount)
public int getCallbackThreadPoolQueueSize()
public void setCallbackThreadPoolQueueSize(int callbackThreadPoolQueueSize)
public WriterRetryStrategy getWriterRetryStrategy()
public void setWriterRetryStrategy(WriterRetryStrategy writerRetryStrategy)
public int getClientMaxConnections()
public void setClientMaxConnections(int clientMaxConnections)
public boolean isAllowDuplicatedRowInBatchRequest()
public void setAllowDuplicatedRowInBatchRequest(boolean allowDuplicatedRowInBatchRequest)
Copyright © 2025. All Rights Reserved.