8282import com .arangodb .util .GraphQueryUtil ;
8383import com .arangodb .util .GraphVerticesOptions ;
8484import com .arangodb .util .ImportOptions ;
85+ import com .arangodb .util .ImportOptionsJson ;
8586import com .arangodb .util .ImportOptionsRaw ;
8687import com .arangodb .util .MapBuilder ;
8788import com .arangodb .util .ShortestPathOptions ;
@@ -2977,7 +2978,7 @@ public List<UserEntity> getUsers() throws ArangoException {
29772978 */
29782979 public ImportResultEntity importDocuments (final String collection , final Collection <?> values )
29792980 throws ArangoException {
2980- return importDriver .importDocuments (getDefaultDatabase (), collection , values , new ImportOptions ());
2981+ return importDriver .importDocuments (getDefaultDatabase (), collection , values , new ImportOptionsJson ());
29812982 }
29822983
29832984 /**
@@ -2987,16 +2988,16 @@ public ImportResultEntity importDocuments(final String collection, final Collect
29872988 * the collection as a string
29882989 * @param values
29892990 * a list of Objects that will be stored as documents
2990- * @param importOptions
2991+ * @param importOptionsJson
29912992 * options for importing documents
29922993 * @return ImportResultEntity
29932994 * @throws ArangoException
29942995 */
29952996 public ImportResultEntity importDocuments (
29962997 final String collection ,
29972998 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 );
30003001 }
30013002
30023003 /**
@@ -3019,7 +3020,7 @@ public ImportResultEntity importDocumentsRaw(
30193020 }
30203021
30213022 /**
3022- * Creates documents in the collection.
3023+ * Creates documents in a collection.
30233024 *
30243025 * @param collection
30253026 * the collection as a string
@@ -3031,7 +3032,49 @@ public ImportResultEntity importDocumentsRaw(
30313032 public ImportResultEntity importDocumentsByHeaderValues (
30323033 final String collection ,
30333034 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 );
30353078 }
30363079
30373080 /**
0 commit comments