[arangodb-google] Re: Get multiple using reactive approach

2016-10-14 Thread mpv1989
We are currently working on an asynchronous java-driver which works with the Java 8 API *CompletableFuture *and also supports our api for multiple document operations. You can find the github repo here . The first release is scheduled for

[arangodb-google] Re: Can't get new 4.0 JAVA driver to work for me

2016-10-25 Thread mpv1989
Hi David, you have to start the server with an endpoint using VelocyStream protocol (see here ). With ArangoDB 3.1 final release we will release the driver in version 4.1.0 with no need of this. As long as you work with vers

[arangodb-google] Re: Can't get new 4.0 JAVA driver to work for me

2016-10-26 Thread mpv1989
it properly on Windows when ArangoDB is > running as service? > > Dne středa 26. října 2016 8:54:53 UTC+2 mpv1989 napsal(a): >> >> Hi David, >> >> you have to start the server with an endpoint using VelocyStream protocol >> (see here >> <https:

[arangodb-google] Re: Can't get new 4.0 JAVA driver to work for me

2016-10-26 Thread mpv1989
; browser based admin UI cant connect to server now :-( > > #endpoint = tcp://127.0.0.1:8529 > endpoint = vpp+tcp://127.0.0.1:8529 > > > > > Dne středa 26. října 2016 10:24:35 UTC+2 mpv1989 napsal(a): >> >> You can configure it over a configuration file. (s

[arangodb-google] Re: Can't get new 4.0 JAVA driver to work for me

2016-10-26 Thread mpv1989
t connect to server now :-( > > #endpoint = tcp://127.0.0.1:8529 > endpoint = vpp+tcp://127.0.0.1:8529 > > > > > Dne středa 26. října 2016 10:24:35 UTC+2 mpv1989 napsal(a): >> >> You can configure it over a configuration file. (see here >> <https://do

[arangodb-google] Re: BaseDocuments in v4 Java Driver

2016-10-27 Thread mpv1989
Hi Rob, If your return type is not a document you have 4 options: 1. use String as return type, which give you a raw json ArangoCursor cursor = arangoDB.db().query("your query", null, null, String.class); 2. use VPackSlice as return type, get the documents from it and deserialize them with the

[arangodb-google] Re: Java driver AQL templatizing NOT IN / IN operators

2016-10-27 Thread mpv1989
Hi, if I understand you correctly, you mean to export the array of ids into bindVars. This code work for Java driver 4.0.0 and above. The ArrayList *ids *will be parsed into ["id1","id2",...] Collection ids = new ArrayList(); ids.add("id1"); ids.add("id2"); ... Map bindVars = new MapBuilder().

[arangodb-google] Re: BaseDocuments in v4 Java Driver

2016-11-02 Thread mpv1989
This is a bug in the DB in version 3.1.RC2 and 3.1.RC3. It is fixed in final version 3.1, which we release at the moment. It should be available in the next 1-2 days. With that version you need the java driver in version 4.1.0, because we changed the velocystream protocol in the DB version 3.1,

[arangodb-google] Re: Java 3.1.x driver & replication factor settings ?

2016-11-08 Thread mpv1989
The missing replication factor in the options of createCollection is a bug. I will add it and release a bugfix-release within the next days. https://github.com/arangodb/arangodb-java-driver/issues/67 Am Montag, 7. November 2016 21:12:10 UTC+1 schrieb An Tran: > > Hi, > > I just created a 3-node A

[arangodb-google] Re: ArangoDB java driver get error code

2016-11-30 Thread mpv1989
Hi Christoph, in version 4.1.2 every information of the error is part of the exception.erroMessage. The format is: "Response: {errorCode}, Error: {errorNumber} - {errorMessage}" If no error occurs but the responseCode is 300 or above the errorMessage only contains: "Response Code: {responseCod

[arangodb-google] Re: ArangoDB java driver get error code

2016-12-01 Thread mpv1989
to get the code? > > best regards > Christoph > > Am Mittwoch, 30. November 2016 09:18:22 UTC+1 schrieb mpv1989: >> >> Hi Christoph, >> >> in version 4.1.2 every information of the error is part of the >> exception.erroMessage. >> The format is

[arangodb-google] Re: Error During Iterating Through Resultset

2016-12-07 Thread mpv1989
Hi, When you iterate over the cursor, the cursor ask the server every 1000 documents (default batch size) for the next 1000 documents. The cursor will be removed on the server automatically after a specific amount of time (time-to-live). When this time expired between your iteration steps you g

[arangodb-google] Re: Error During Iterating Through Resultset

2016-12-09 Thread mpv1989
...@gmail.com: > > Thanks Mark for your reply. Your suggestion resolved the cursor issue. > However, the whole process still too slow. Do you have any suggestion to > speedup the performance? > > Regards, > Nader > -- > > On Wednesday, December 7, 2016 at 12:10:15 PM

[arangodb-google] Re: Java - Batch insert edges

2017-01-11 Thread mpv1989
Hi, currently the only way to insert multiple edges/vertices at the same time is by using the multi-document operation in `ArangoCollection`. But we are planning to expand the graph api in the java driver with multi-document operations within the next releases. db.collection("follows").insertD

[arangodb-google] Re: Spring data support question

2017-02-09 Thread mpv1989
We're still working on it. There is currently a concept phase. We hope to start the implementation soon but we currently can't say when we can publish a first test version. Am Mittwoch, 8. Februar 2017 13:09:40 UTC+1 schrieb David Marko: > > It's been a while I heard there is some effort to brin

[arangodb-google] Re: Java driver: Location of additional attributes in compound documents

2017-02-16 Thread mpv1989
Hi, your expectation is totally right. This is a bug in the java-driver. I will fix it for version 4.1.10, which should be released within the next week. Thank you and regards, Mark Am Mittwoch, 15. Februar 2017 18:35:45 UTC+1 schrieb Vasco Veloso: > > Hello, > > If I have a compound document su

[arangodb-google] Re: Run Java code on Cluster

2017-03-02 Thread mpv1989
There should be a menu entry "Cluster" in the UI. To run your program against the cluster you have to set the host and port in the java-driver to one of your coordinators. ArangoDB arangodb = new ArangoDB.Builder().host("ip.to.your.coordinator", 8530).build();

[arangodb-google] Re: Drop collection if exists

2017-03-13 Thread mpv1989
The method `ArangoCollection.drop()` throws an exception if the collection does not exists. For tests it should be enough to surround the call with `try { ... } catch(ArangoDBException e){}` Am Freitag, 10. März 2017 22:11:58 UTC+1 schrieb Kevin Sheppard: > > Is there "drop collection if exists"

[arangodb-google] Re: Good job on the Java Driver

2017-03-17 Thread mpv1989
Hello, thank you for the feedback. Have you already taken a look at our async java-driver ? It requires Java 8 and works with `CompletableFuture` and the cursor api already support streams. ArangoDBAsync arangoDB = new ArangoDBAsync.Builde

[arangodb-google] Re: Using duplicate intermediate vertex?

2017-03-23 Thread mpv1989
You could return all vertices of every path `p` und flatten them into one array. see docu here RETURN FLATTEN(FOR v,e,p IN 1..3 OUTBOUND "columns/0" `table1` RETURN p. vertices[*].title) or alternative see docu here

[arangodb-google] Re: Why arangodb breadth first traversal is not ordered node from left to right?

2017-03-24 Thread mpv1989
The order of breadth first within one depth is not guaranteed. You will always get `A` first and then `B`,`C`,`D`,`E` in any order followed by `F`,`G`,`H` in any order. The only way to get the node's in your preferred order is by using `sort`. Am Sonntag, 19. März 2017 07:12:34 UTC+1 schrieb Fr

[arangodb-google] Re: VPack Stack Overflow

2017-03-29 Thread mpv1989
Hello, you can use the annotation `Expose` on that field and set `serialize` and `deserialize` to `false` to ignore the field for serialization. You can find an example in the docs . Best, Mark Am

[arangodb-google] Re: VPack Stack Overflow

2017-04-12 Thread mpv1989
I see no generic and clean way to handle this with json. I would recommend the workaround with a custom `VPackDeserializer` for the self pointing class. This doesn't need any additional information stored in the document. public static class SelfPointingTestEntity { private String foo;

[arangodb-google] Re: VelocityPack Java Driver Deserialization Issue

2017-04-13 Thread mpv1989
Thanks for reporting this bug. I was already able to find and fix it. You can test it with the snapshot version `4.1.12-SNAPSHOT`. I also released version `4.1.12` which should be available on maven central repo within the next hours. Be

[arangodb-google] Re: is there somesthing like "while" cycle?

2017-04-25 Thread mpv1989
I see no way to make your query smaller/better without using a graph. Your case fits perfect to a graph model. The query you want to implement is a typical graph traversal . Am Montag, 24. April 2017 22:34:44 UTC+2 schrieb Александр Пер

[arangodb-google] Re: About Foxx queues

2017-04-27 Thread mpv1989
Hi Thomas, 1. Yes, they are stored in the system collection _jobs. System collections are usually replicated to at least one other node. 2. The behavior of a failed job can be defined when creating a job (see docs ).

[arangodb-google] Re: I have a problem when adding a repeating job to a queue in a foxx - why does this job only run once instead of repeating?

2017-06-14 Thread mpv1989
Hi, the parameters in your call `queue.push` are wrong. repeatTimes, repeatUntil, repeatDelay, success and failure have to be in the same object as third param. let jobId = queue.push( {mount: '/test', name: 'sync'}, {}, { repeatTimes: Infinity, repeatUntil: Date.now

[arangodb-google] Re: Find documents by attribute in Java

2017-11-02 Thread mpv1989
With the method query() you can run AQL: ArangoDB arango = new ArangoDB.Builder().build(); ArangoCursor cursor = arango.db().query("FOR p IN Person FILTER p.name == 'myname' RETURN { name: p.name }", null, null, BaseDocument .class); Instead of BaseDocument you can use Map or any java POJO that

[arangodb-google] Re: Java Driver wihout a maximum lifetime of request?

2018-04-16 Thread mpv1989
You can configure a timeout when creating your driver instance. int timeout = 60 * 1000; //milliseconds ArangoDB arango = new ArangoDB.Builder().timeout(timeout).build(); On Monday, 16 April 2018 14:56:54 UTC+2, Jefferson wrote: > > When the network is down, the subsequent request frozen, i nee

[arangodb-google] Re: Java Driver wihout a maximum lifetime of request?

2018-04-18 Thread mpv1989
That is strange. The driver operation should throw an ArangoDBException if the server is not reachable. Which version of the driver are you using? On Wednesday, 18 April 2018 10:33:53 UTC+2, Jefferson wrote: > > With Java Sync Driver, when the internet is off, any operation with Java > Client do

[arangodb-google] Re: Class ArangoDBAsync can access databases without autentication

2018-04-18 Thread mpv1989
What are the starting parameters of your ArangoDB instances in your cluster? On Wednesday, 18 April 2018 11:50:07 UTC+2, Jefferson wrote: > > I see a big problem here, i create a cluster with 3 nodes, and i used the > Java Client normaly (with problem of offline...), but when i test the Async >

[arangodb-google] Re: Class ArangoDBAsync can access databases without autentication

2018-04-18 Thread mpv1989
sert work well, > when the internet is off, the timeout wont work, and when i use the > ArangoDBAsync, the methods > like:"arangoDB.db("testedatabase").collection("myCollection").insertDocuments(documents);" > > dont need a try catch, but if i use the Java Cl

[arangodb-google] Re: Java Driver wihout a maximum lifetime of request?

2018-04-18 Thread mpv1989
gt; when i use Async and the internet is off, nothing happens, no erros, no > response, and i set timeout to 1 second timeout(1000), the version tha im > using is: compile group: 'com.arangodb', name: > 'arangodb-java-driver-async', version: '4.3.7' &

[arangodb-google] Re: Java Driver wihout a maximum lifetime of request?

2018-04-19 Thread mpv1989
eira, 18 de abril de 2018 21:07:29 UTC-3, Jefferson escreveu: >> >> Sorry, i see now that you said Sync driver, the Async will receive this >> fix or don't need? >> >> Em quarta-feira, 18 de abril de 2018 08:33:43 UTC-3, mpv1989 escreveu: >>> >

[arangodb-google] Re: Class ArangoDBAsync can access databases without autentication

2018-04-19 Thread mpv1989
il 2018 19:28:23 UTC+2, Jefferson wrote: > > Ok, i will test your sugestion, but why the Async Driver can access > databases with wrong autentication (user and passwd) and the Sync Driver > need a valid autentication (expected)? > > Em quarta-feira, 18 de abril de 2018 08:3