public class DocumentImportOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DocumentImportOptions.OnDuplicate |
Constructor and Description |
---|
DocumentImportOptions() |
Modifier and Type | Method and Description |
---|---|
DocumentImportOptions |
complete(Boolean complete) |
DocumentImportOptions |
details(Boolean details) |
DocumentImportOptions |
fromPrefix(String fromPrefix) |
Boolean |
getComplete() |
Boolean |
getDetails() |
String |
getFromPrefix() |
DocumentImportOptions.OnDuplicate |
getOnDuplicate() |
Boolean |
getOverwrite() |
String |
getToPrefix() |
Boolean |
getWaitForSync() |
DocumentImportOptions |
onDuplicate(DocumentImportOptions.OnDuplicate onDuplicate) |
DocumentImportOptions |
overwrite(Boolean overwrite) |
DocumentImportOptions |
toPrefix(String toPrefix) |
DocumentImportOptions |
waitForSync(Boolean waitForSync) |
public String getFromPrefix()
public DocumentImportOptions fromPrefix(String fromPrefix)
fromPrefix
- An optional prefix for the values in _from attributes. If specified, the value is automatically
prepended to each _from input value. This allows specifying just the keys for _from.public String getToPrefix()
public DocumentImportOptions toPrefix(String toPrefix)
toPrefix
- An optional prefix for the values in _to attributes. If specified, the value is automatically
prepended to each _to input value. This allows specifying just the keys for _to.public Boolean getOverwrite()
public DocumentImportOptions overwrite(Boolean overwrite)
overwrite
- If this parameter has a value of true, then all data in the collection will be removed prior to the
import. Note that any existing index definitions will be preseved.public Boolean getWaitForSync()
public DocumentImportOptions waitForSync(Boolean waitForSync)
waitForSync
- Wait until documents have been synced to disk before returning.public DocumentImportOptions.OnDuplicate getOnDuplicate()
public DocumentImportOptions onDuplicate(DocumentImportOptions.OnDuplicate onDuplicate)
onDuplicate
- Controls what action is carried out in case of a unique key constraint violation. Possible values are:
public Boolean getComplete()
public DocumentImportOptions complete(Boolean complete)
complete
- If set to true, it will make the whole import fail if any error occurs. Otherwise the import will
continue even if some documents cannot be imported.public Boolean getDetails()
public DocumentImportOptions details(Boolean details)
details
- If set to true, the result will include an attribute details with details about documents that could
not be imported.Copyright © 2016–2018 ArangoDB GmbH. All rights reserved.