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 |
---|---|
CollectionType |
getCreateCollectionType()
createCollectionType (optional): If this parameter has a value of
document or edge, it will determine the type of collection that is going
to be created when the createCollection option is set to true.
|
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 or yes, 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 |
setCreateCollectionType(CollectionType createCollectionType)
createCollectionType (optional): If this parameter has a value of
document or edge, it will determine the type of collection that is going
to be created when the createCollection option is set to true.
|
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 or yes, 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 CollectionType getCreateCollectionType()
public ImportOptions setCreateCollectionType(CollectionType createCollectionType)
createCollectionType
- 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 Map<String,Object> toMap()
toMap
in interface OptionsInterface
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.