All Projects → arangodb → java-velocypack

arangodb / java-velocypack

Licence: Apache-2.0 license
No description or website provided.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to java-velocypack

arangodb-java-driver-async
ArangoDB Asynchronous Java driver
Stars: ✭ 45 (+164.71%)
Mutual labels:  arangodb, vpack
Kube Arangodb
ArangoDB Kubernetes Operator - Start ArangoDB on Kubernetes in 5min
Stars: ✭ 150 (+782.35%)
Mutual labels:  arangodb
Go Driver
The official ArangoDB go driver.
Stars: ✭ 266 (+1464.71%)
Mutual labels:  arangodb
Arangochair
🥑 arangochair is a Node.js module that adds changefeed capability to ArangoDB and make it realtime push ready
Stars: ✭ 85 (+400%)
Mutual labels:  arangodb
Velocypack
A fast and compact format for serialization and storage
Stars: ✭ 347 (+1941.18%)
Mutual labels:  arangodb
Cruddl
Create a GraphQL API for your database, using the GraphQL SDL to model your schema.
Stars: ✭ 98 (+476.47%)
Mutual labels:  arangodb
aql-intellij-plugin
Intellij plugin for AQL, ArangoDB language support
Stars: ✭ 27 (+58.82%)
Mutual labels:  arangodb
Pyarango
Python Driver for ArangoDB with built-in validation
Stars: ✭ 183 (+976.47%)
Mutual labels:  arangodb
Arangodb
🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
Stars: ✭ 11,880 (+69782.35%)
Mutual labels:  arangodb
Foxxy
foxxy : create your app with ArangoDB Foxx RiotJS UIKIT3 Brunch Yarn
Stars: ✭ 47 (+176.47%)
Mutual labels:  arangodb
Pims
An ORM for document-oriented database systems, written in and for TypeScript.
Stars: ✭ 9 (-47.06%)
Mutual labels:  arangodb
Python Arango
Python Driver for ArangoDB
Stars: ✭ 349 (+1952.94%)
Mutual labels:  arangodb
Orango
ArangoDB Object Modeling for Node.js, Foxx and Modern Web Browsers
Stars: ✭ 103 (+505.88%)
Mutual labels:  arangodb
Recallgraph
A versioning data store for time-variant graph data.
Stars: ✭ 277 (+1529.41%)
Mutual labels:  arangodb
Arangodb Java Driver
The official ArangoDB Java driver.
Stars: ✭ 174 (+923.53%)
Mutual labels:  arangodb
Arangodb View
🥑 fast, simple, easy, 'reduced to the max' alternative webinterface / interface for the web / frontend for ArangoDB
Stars: ✭ 18 (+5.88%)
Mutual labels:  arangodb
Arangoclient.net
ArangoDB .NET Client with LINQ support
Stars: ✭ 94 (+452.94%)
Mutual labels:  arangodb
arangors
Easy to use rust driver for arangoDB
Stars: ✭ 120 (+605.88%)
Mutual labels:  arangodb
Arangodb Php
PHP ODM for ArangoDB
Stars: ✭ 178 (+947.06%)
Mutual labels:  arangodb
Arango
Golang driver for ArangoDB
Stars: ✭ 125 (+635.29%)
Mutual labels:  arangodb

ArangoDB VelocyPack Java

Maven Central

Java implementation for VelocyPack.

Maven

To add the dependency to your project with maven, add the following code to your pom.xml:

<dependencies>
  <dependency>
    <groupId>com.arangodb</groupId>
    <artifactId>velocypack</artifactId>
    <version>x.y.z</version>
  </dependency>
</dependencies>

Compile

mvn clean install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true -B

Usage

build VelocyPack - Object

  VPackBuilder builder = new VPackBuilder();
  builder.add(ValueType.OBJECT); // object start
  builder.add("foo", "bar"); // add field "foo" with value "bar"
  builder.close(); // object end

  VPackSlice slice = builder.slice(); // create slice

working with VPackSlice - Object

  VPackSlice slice = ...
  int size = slice.size(); // number of fields
  VPackSlice foo = slice.get("foo"); // get field "foo"
  String value = foo.getAsString(); // get value from "foo"

  // iterate over the fields
  for (final Iterator<Entry<String, VPackSlice>> iterator = slice.objectIterator(); iterator.hasNext();) {
    Entry<String, VPackSlice> field = iterator.next();
    ...
  }

build VelocyPack - Array

  VPackBuilder builder = new VPackBuilder();
  builder.add(ValueType.ARRAY); // array start
  builder.add(1); // add value 1
  builder.add(2); // add value 2
  builder.add(3); // add value 3
  builder.close(); // array end

  VPackSlice slice = builder.slice(); // create slice

working with VPackSlice - Array

  VPackSlice slice = ...
  int size = slice.size(); // number of values

  // iterate over values
  for (int i = 0; i < slice.size(); i++) {
    VPackSlice value = slice.get(i);
    ...
  }

  // iterate over values with Iterator
  for (final Iterator<VPackSlice> iterator = slice.arrayIterator(); iterator.hasNext();) {
    VPackSlice value = iterator.next();
    ...
  }

build VelocyPack - nested Objects

  VPackBuilder builder = new VPackBuilder();
  builder.add(ValueType.OBJECT); // object start
  builder.add("foo", ValueType.OBJECT); // add object in field "foo"
  builder.add("bar", 1); // add field "bar" with value 1 to object "foo"
  builder.close(); // object "foo" end
  builder.close(); // object end

  VPackSlice slice = builder.slice(); // create slice

Learn more

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].