public class ImportOptions extends Object implements OptionsInterface
Modifier and Type | Class and Description |
---|---|
static class |
ImportOptions.OnDuplicate |
Constructor and Description |
---|
ImportOptions() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getComplete()
(optional) If set to true, it will make the whole import fail if any
error occurs.
|
Boolean |
getDetails()
(optional) If set to true, the result will include an attribute details
with details about documents that could not be imported.
|
ImportOptions.OnDuplicate |
getOnDuplicate()
(optional) Controls what action is carried out in case of a unique key
constraint violation.
|
Boolean |
getOverwrite()
overwrite (optional): If this parameter has a value of true, then all
data in the collection will be removed prior to the import.
|
Boolean |
getWaitForSync()
(optional) Wait until documents have been synced to disk before
returning.
|
ImportOptions |
setComplete(Boolean complete)
(optional) If set to true, it will make the whole import fail if any
error occurs.
|
ImportOptions |
setDetails(Boolean details)
(optional) If set to true, the result will include an attribute details
with details about documents that could not be imported.
|
ImportOptions |
setOnDuplicate(ImportOptions.OnDuplicate onDuplicate)
(optional) Controls what action is carried out in case of a unique key
constraint violation.
|
ImportOptions |
setOverwrite(Boolean overwrite)
overwrite (optional): If this parameter has a value of true, then all
data in the collection will be removed prior to the import.
|
ImportOptions |
setWaitForSync(Boolean waitForSync)
(optional) Wait until documents have been synced to disk before
returning.
|
Map<String,Object> |
toMap() |
public Boolean getOverwrite()
public ImportOptions setOverwrite(Boolean overwrite)
overwrite
- public Boolean getWaitForSync()
public ImportOptions setWaitForSync(Boolean waitForSync)
waitForSync
- public ImportOptions.OnDuplicate getOnDuplicate()
public ImportOptions setOnDuplicate(ImportOptions.OnDuplicate onDuplicate)
onDuplicate
- public Boolean getComplete()
public ImportOptions setComplete(Boolean complete)
complete
- public Boolean getDetails()
public ImportOptions setDetails(Boolean details)
details
- public Map<String,Object> toMap()
toMap
in interface OptionsInterface
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.