com.pilosa:roaring

This library implements Roaring Bitmaps with Pilosa 64 bit extension, compatible with Pilosa Roaring Bitmap imports.

License

License

GroupId

GroupId

com.pilosa
ArtifactId

ArtifactId

roaring
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

com.pilosa:roaring
This library implements Roaring Bitmaps with Pilosa 64 bit extension, compatible with Pilosa Roaring Bitmap imports.
Project URL

Project URL

https://github.com/pilosa/java-pilosa-roaring
Project Organization

Project Organization

Pilosa Corp.
Source Code Management

Source Code Management

https://github.com/pilosa/java-pilosa/tree/master

Download roaring

How to add to project

<!-- https://jarcasting.com/artifacts/com.pilosa/roaring/ -->
<dependency>
    <groupId>com.pilosa</groupId>
    <artifactId>roaring</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.pilosa/roaring/
implementation 'com.pilosa:roaring:0.2.2'
// https://jarcasting.com/artifacts/com.pilosa/roaring/
implementation ("com.pilosa:roaring:0.2.2")
'com.pilosa:roaring:jar:0.2.2'
<dependency org="com.pilosa" name="roaring" rev="0.2.2">
  <artifact name="roaring" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.pilosa', module='roaring', version='0.2.2')
)
libraryDependencies += "com.pilosa" % "roaring" % "0.2.2"
[com.pilosa/roaring "0.2.2"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Java Client for Pilosa

Javadocs

Java client for Pilosa high performance distributed index.

What's New?

See: CHANGELOG

Requirements

  • JDK 7 and higher
  • Maven 3 and higher

Install

Add the following dependency in your pom.xml:

<dependencies>
    <dependency>
        <groupId>com.pilosa</groupId>
        <artifactId>pilosa-client</artifactId>
        <version>1.4.0</version>
    </dependency>
</dependencies>

Usage

Quick overview

Assuming Pilosa server is running at localhost:10101 (the default):

// Create the default client
PilosaClient client = PilosaClient.defaultClient();

// Retrieve the schema
Schema schema = client.readSchema();

// Create an Index object
Index myindex = schema.index("myindex");

// Create a Field object
Field myfield = myindex.field("myfield");

// make sure the index and field exists on the server
client.syncSchema(schema);

// Send a Set query. PilosaException is thrown if execution of the query fails.
client.query(myfield.set(5, 42));

// Send a Row query. PilosaException is thrown if execution of the query fails.
QueryResponse response = client.query(myfield.row(5));

// Get the result
QueryResult result = response.getResult();

// Act on the result
if (result != null) {
    List<Long> columns = result.getRow().getColumns();
    System.out.println("Got columns: " + columns);
}

// You can batch queries to improve throughput
response = client.query(
    myindex.batchQuery(
        myfield.row(5),
        myfield.row(10)
    )
);
for (Object r : response.getResults()) {
    // Act on the result
}

Documentation

Data Model and Queries

See: Data Model and Queries

Executing Queries

See: Server Interaction

Importing and Exporting Data

See: Importing Data

Contributing

See: CONTRIBUTING

License

See: LICENSE

com.pilosa

Pilosa

Versions

Version
0.2.2
0.2.1
0.2
0.1