82
82
import com .arangodb .util .GraphQueryUtil ;
83
83
import com .arangodb .util .GraphVerticesOptions ;
84
84
import com .arangodb .util .ImportOptions ;
85
+ import com .arangodb .util .ImportOptionsJson ;
85
86
import com .arangodb .util .ImportOptionsRaw ;
86
87
import com .arangodb .util .MapBuilder ;
87
88
import com .arangodb .util .ShortestPathOptions ;
@@ -2977,7 +2978,7 @@ public List<UserEntity> getUsers() throws ArangoException {
2977
2978
*/
2978
2979
public ImportResultEntity importDocuments (final String collection , final Collection <?> values )
2979
2980
throws ArangoException {
2980
- return importDriver .importDocuments (getDefaultDatabase (), collection , values , new ImportOptions ());
2981
+ return importDriver .importDocuments (getDefaultDatabase (), collection , values , new ImportOptionsJson ());
2981
2982
}
2982
2983
2983
2984
/**
@@ -2987,16 +2988,16 @@ public ImportResultEntity importDocuments(final String collection, final Collect
2987
2988
* the collection as a string
2988
2989
* @param values
2989
2990
* a list of Objects that will be stored as documents
2990
- * @param importOptions
2991
+ * @param importOptionsJson
2991
2992
* options for importing documents
2992
2993
* @return ImportResultEntity
2993
2994
* @throws ArangoException
2994
2995
*/
2995
2996
public ImportResultEntity importDocuments (
2996
2997
final String collection ,
2997
2998
final Collection <?> values ,
2998
- final ImportOptions importOptions ) throws ArangoException {
2999
- return importDriver .importDocuments (getDefaultDatabase (), collection , values , importOptions );
2999
+ final ImportOptionsJson importOptionsJson ) throws ArangoException {
3000
+ return importDriver .importDocuments (getDefaultDatabase (), collection , values , importOptionsJson );
3000
3001
}
3001
3002
3002
3003
/**
@@ -3019,7 +3020,7 @@ public ImportResultEntity importDocumentsRaw(
3019
3020
}
3020
3021
3021
3022
/**
3022
- * Creates documents in the collection.
3023
+ * Creates documents in a collection.
3023
3024
*
3024
3025
* @param collection
3025
3026
* the collection as a string
@@ -3031,7 +3032,49 @@ public ImportResultEntity importDocumentsRaw(
3031
3032
public ImportResultEntity importDocumentsByHeaderValues (
3032
3033
final String collection ,
3033
3034
final Collection <? extends Collection <?>> headerValues ) throws ArangoException {
3034
- return importDriver .importDocumentsByHeaderValues (getDefaultDatabase (), collection , headerValues );
3035
+ return importDriver .importDocumentsByHeaderValues (getDefaultDatabase (), collection , headerValues ,
3036
+ new ImportOptions ());
3037
+ }
3038
+
3039
+ /**
3040
+ * Creates documents in a collection.
3041
+ *
3042
+ * @param collection
3043
+ * the collection as a string
3044
+ * @param headerValues
3045
+ * a list of lists that will be stored as documents
3046
+ * @param importOptions
3047
+ * options for importing documents
3048
+ * @return ImportResultEntity
3049
+ * @throws ArangoException
3050
+ */
3051
+ public ImportResultEntity importDocumentsByHeaderValues (
3052
+ final String collection ,
3053
+ final Collection <? extends Collection <?>> headerValues ,
3054
+ ImportOptions importOptions ) throws ArangoException {
3055
+ return importDriver .importDocumentsByHeaderValues (getDefaultDatabase (), collection , headerValues ,
3056
+ importOptions );
3057
+ }
3058
+
3059
+ /**
3060
+ * Creates documents in a collection.
3061
+ *
3062
+ * @param collection
3063
+ * the collection as a string
3064
+ * @param headerValues
3065
+ * raw JSON data that contains a list of lists that will be
3066
+ * stored as documents
3067
+ * @param importOptions
3068
+ * options for importing documents
3069
+ * @return ImportResultEntity
3070
+ * @throws ArangoException
3071
+ */
3072
+ public ImportResultEntity importDocumentsByHeaderValuesRaw (
3073
+ final String collection ,
3074
+ String headerValues ,
3075
+ ImportOptions importOptions ) throws ArangoException {
3076
+ return importDriver .importDocumentsByHeaderValuesRaw (getDefaultDatabase (), collection , headerValues ,
3077
+ importOptions );
3035
3078
}
3036
3079
3037
3080
/**
0 commit comments