public class BulkInsertOptions extends Object
Constructor and Description |
---|
BulkInsertOptions() |
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize()
Number of documents to send in each bulk insert batch.
|
ChunkedBulkInsertOptions |
getChunkedBulkInsertOptions()
Represents options of the chunked functionality of the bulk insert operation,
which allows opening new connection for each chunk by amount of documents and total size.
|
int |
getWriteTimeoutMiliseconds()
Maximum timeout in milliseconds to wait for document write.
|
boolean |
isCheckReferencesInIndexes()
Indicates if referenced documents should be checked in indexes.
|
boolean |
isOverwriteExisting()
Indicates in existing documents should be overwritten.
|
boolean |
isSkipOverwriteIfUnchanged()
Determines whether should skip to overwrite a document when it is updated by exactly the same document (by comparing a content and metadata as well).
|
void |
setBatchSize(int batchSize)
Number of documents to send in each bulk insert batch.
|
void |
setCheckReferencesInIndexes(boolean checkReferencesInIndexes)
Indicates if referenced documents should be checked in indexes.
|
void |
setChunkedBulkInsertOptions(ChunkedBulkInsertOptions chunkedBulkInsertOptions)
Represents options of the chunked functionality of the bulk insert operation,
which allows opening new connection for each chunk by amount of documents and total size.
|
void |
setOverwriteExisting(boolean overwriteExisting)
Indicates in existing documents should be overwritten.
|
void |
setSkipOverwriteIfUnchanged(boolean skipOverwriteIfUnchanged)
Determines whether should skip to overwrite a document when it is updated by exactly the same document (by comparing a content and metadata as well).
|
void |
setWriteTimeoutMiliseconds(int writeTimeoutMiliseconds)
Maximum timeout in milliseconds to wait for document write.
|
public ChunkedBulkInsertOptions getChunkedBulkInsertOptions()
public void setChunkedBulkInsertOptions(ChunkedBulkInsertOptions chunkedBulkInsertOptions)
public boolean isSkipOverwriteIfUnchanged()
public void setSkipOverwriteIfUnchanged(boolean skipOverwriteIfUnchanged)
skipOverwriteIfUnchanged
- public boolean isOverwriteExisting()
public void setOverwriteExisting(boolean overwriteExisting)
overwriteExisting
- public boolean isCheckReferencesInIndexes()
public void setCheckReferencesInIndexes(boolean checkReferencesInIndexes)
checkReferencesInIndexes
- public int getBatchSize()
public void setBatchSize(int batchSize)
batchSize
- public int getWriteTimeoutMiliseconds()
public void setWriteTimeoutMiliseconds(int writeTimeoutMiliseconds)
writeTimeoutMiliseconds
- Copyright © 2016. All Rights Reserved.