New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added apoc.load.directory.async.*
procedures
#1843
Conversation
…e/false) yield url
…e/false) yield url
…e/false) yield url
…e/false) yield url
@@ -0,0 +1,5 @@ | |||
¦xref::overview/apoc.load.directory.async/apoc.load.directory.async.remove.adoc[apoc.load.directory.async.remove icon:book[]] + | |||
|
|||
`apoc.load.directory.async.remove(name) YIELD name, status, pattern, cypher, urlDir, config, error` - Remove a folder listener by name and return remaining listener |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`apoc.load.directory.async.remove(name) YIELD name, status, pattern, cypher, urlDir, config, error` - Remove a folder listener by name and return remaining listener | |
`apoc.load.directory.async.remove(name) YIELD name, status, pattern, cypher, urlDir, config, error` - Remove a folder listener by name and return remaining listeners, if any |
@@ -0,0 +1,254 @@ | |||
The first parameter is the name of our custom watch listener. | |||
If I call a procedure with the same name as an existing one, this will be overwritten. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I call a procedure with the same name as an existing one, this will be overwritten. | |
If we use an already existing listener name, that listener will be overwritten. |
using we
like the in the rest of the document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applies to the other documentation pages below
|
||
We can use as query parameter, another load procedure, like `apoc.load.csv` or `apoc.load.json`. | ||
|
||
Here is two examples. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is two examples. | |
Here are two examples. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applies to the other documentation pages below
|
||
=== Examples of interoperability with other procedures | ||
|
||
We can use as query parameter, another load procedure, like `apoc.load.csv` or `apoc.load.json`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use as query parameter, another load procedure, like `apoc.load.csv` or `apoc.load.json`. | |
We can use another load procedure as query parameter, like `apoc.load.csv` or `apoc.load.json`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applies to the other documentation pages below
|
||
=== Error handling | ||
|
||
When for some reason, the listener fails, its `status` field change from `RUNNING` to `ERROR`, and the associated error is put |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When for some reason, the listener fails, its `status` field change from `RUNNING` to `ERROR`, and the associated error is put | |
When for some reason, the listener fails, its `status` field change from `RUNNING` to `ERROR`, and the associated error is output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applies to the other documentation pages below
=== Error handling | ||
|
||
When for some reason, the listener fails, its `status` field change from `RUNNING` to `ERROR`, and the associated error is put | ||
so if we execute `call apoc.load.directory.async.list`, we obtain, for example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so if we execute `call apoc.load.directory.async.list`, we obtain, for example: | |
If we execute `call apoc.load.directory.async.list`, we obtain, for example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applies to the other documentation pages below
@@ -0,0 +1,9 @@ | |||
The procedure support the following config parameters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The procedure support the following config parameters: | |
The procedure supports the following config parameters: |
Future removed = storage.remove(loadDirectoryItem); | ||
if (removed == null) { | ||
String name = loadDirectoryItem.getName(); | ||
throw new RuntimeException("Listener with name: " + name + " doesn't exists"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new RuntimeException("Listener with name: " + name + " doesn't exists"); | |
throw new RuntimeException("Listener with name: " + name + " doesn't exist"); |
Based on #1639 (comment)
apoc.load.directory.add(name, cypher, pattern, urlDir, configMap)
apoc.load.directory.remove(name)
apoc.load.directory.list()
andapoc.load.directory.removeAll()
apoc.load.csv('filename with spaces.csv')
liketestWithSpacesInFileName
inLoadCsvTest.java