Skip to content

Commit

Permalink
Fix config maps for graphml procs (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-neo4j authored Dec 20, 2024
1 parent e43ecc4 commit 444989b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 24 deletions.
45 changes: 25 additions & 20 deletions core/src/main/java/apoc/export/graphml/ExportGraphML.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ public Stream<ExportProgressInfo> all(
"""
{
stream = false :: BOOLEAN,
batchSize = 20000 :: INTEGER,
bulkImport = false :: BOOLEAN,
format = 'cypher-shell' :: STRING,
timeoutSeconds = 100 :: INTEGER,
compression = 'None' :: STRING,
compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],
charset = 'UTF_8' :: STRING,
sampling = false :: BOOLEAN,
samplingConfig :: MAP
source :: MAP,
target :: MAP,
useTypes :: BOOLEAN,
caption :: LIST<STRING>
}
""")
Map<String, Object> config)
Expand All @@ -170,13 +171,14 @@ public Stream<ExportProgressInfo> data(
"""
{
stream = false :: BOOLEAN,
batchSize = 20000 :: INTEGER,
bulkImport = false :: BOOLEAN,
format = 'cypher-shell' :: STRING,
timeoutSeconds = 100 :: INTEGER,
compression = 'None' :: STRING,
compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],
charset = 'UTF_8' :: STRING,
sampling = false :: BOOLEAN,
samplingConfig :: MAP
source :: MAP,
target :: MAP,
useTypes :: BOOLEAN,
caption :: LIST<STRING>
}
""")
Map<String, Object> config)
Expand All @@ -198,13 +200,14 @@ public Stream<ExportProgressInfo> graph(
"""
{
stream = false :: BOOLEAN,
batchSize = 20000 :: INTEGER,
bulkImport = false :: BOOLEAN,
format = 'cypher-shell' :: STRING,
timeoutSeconds = 100 :: INTEGER,
compression = 'None' :: STRING,
compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],
charset = 'UTF_8' :: STRING,
sampling = false :: BOOLEAN,
samplingConfig :: MAP
source :: MAP,
target :: MAP,
useTypes :: BOOLEAN,
caption :: LIST<STRING>
}
""")
Map<String, Object> config)
Expand All @@ -230,13 +233,15 @@ public Stream<ExportProgressInfo> query(
"""
{
stream = false :: BOOLEAN,
batchSize = 20000 :: INTEGER,
bulkImport = false :: BOOLEAN,
format = 'cypher-shell' :: STRING,
timeoutSeconds = 100 :: INTEGER,
compression = 'None' :: STRING,
compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],
charset = 'UTF_8' :: STRING,
sampling = false :: BOOLEAN,
samplingConfig :: MAP
source :: MAP,
target :: MAP,
useTypes :: BOOLEAN,
caption :: LIST<STRING>,
nodesOfRelationships = false :: BOOLEAN
}
""")
Map<String, Object> config)
Expand Down
8 changes: 4 additions & 4 deletions core/src/test/resources/procedures/common/procedures.json
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@
"type" : "STRING"
}, {
"name" : "config",
"description" : "{\n stream = false :: BOOLEAN,\n batchSize = 20000 :: INTEGER,\n bulkImport = false :: BOOLEAN,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'None' :: STRING,\n charset = 'UTF_8' :: STRING,\n sampling = false :: BOOLEAN,\n samplingConfig :: MAP\n}\n",
"description" : "{\n stream = false :: BOOLEAN,\n format = 'cypher-shell' :: STRING,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],\n charset = 'UTF_8' :: STRING,\n source :: MAP,\n target :: MAP,\n useTypes :: BOOLEAN,\n caption :: LIST<STRING>\n}\n",
"isDeprecated" : false,
"type" : "MAP"
} ]
Expand Down Expand Up @@ -2941,7 +2941,7 @@
"type" : "STRING"
}, {
"name" : "config",
"description" : "{\n stream = false :: BOOLEAN,\n batchSize = 20000 :: INTEGER,\n bulkImport = false :: BOOLEAN,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'None' :: STRING,\n charset = 'UTF_8' :: STRING,\n sampling = false :: BOOLEAN,\n samplingConfig :: MAP\n}\n",
"description" : "{\n stream = false :: BOOLEAN,\n format = 'cypher-shell' :: STRING,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],\n charset = 'UTF_8' :: STRING,\n source :: MAP,\n target :: MAP,\n useTypes :: BOOLEAN,\n caption :: LIST<STRING>\n}\n",
"isDeprecated" : false,
"type" : "MAP"
} ]
Expand Down Expand Up @@ -3024,7 +3024,7 @@
"type" : "STRING"
}, {
"name" : "config",
"description" : "{\n stream = false :: BOOLEAN,\n batchSize = 20000 :: INTEGER,\n bulkImport = false :: BOOLEAN,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'None' :: STRING,\n charset = 'UTF_8' :: STRING,\n sampling = false :: BOOLEAN,\n samplingConfig :: MAP\n}\n",
"description" : "{\n stream = false :: BOOLEAN,\n format = 'cypher-shell' :: STRING,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],\n charset = 'UTF_8' :: STRING,\n source :: MAP,\n target :: MAP,\n useTypes :: BOOLEAN,\n caption :: LIST<STRING>\n}\n",
"isDeprecated" : false,
"type" : "MAP"
} ]
Expand Down Expand Up @@ -3107,7 +3107,7 @@
"type" : "STRING"
}, {
"name" : "config",
"description" : "{\n stream = false :: BOOLEAN,\n batchSize = 20000 :: INTEGER,\n bulkImport = false :: BOOLEAN,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'None' :: STRING,\n charset = 'UTF_8' :: STRING,\n sampling = false :: BOOLEAN,\n samplingConfig :: MAP\n}\n",
"description" : "{\n stream = false :: BOOLEAN,\n format = 'cypher-shell' :: STRING,\n timeoutSeconds = 100 :: INTEGER,\n compression = 'NONE' :: ['NONE', 'BYTES', 'GZIP', 'BZIP2', 'DEFLATE', 'BLOCK_LZ4', 'FRAMED_SNAPPY'],\n charset = 'UTF_8' :: STRING,\n source :: MAP,\n target :: MAP,\n useTypes :: BOOLEAN,\n caption :: LIST<STRING>,\n nodesOfRelationships = false :: BOOLEAN\n}\n",
"isDeprecated" : false,
"type" : "MAP"
} ]
Expand Down

0 comments on commit 444989b

Please sign in to comment.