com.pilosa:roaring

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

Лицензия

Лицензия

Группа

Группа

com.pilosa
Идентификатор

Идентификатор

roaring
Последняя версия

Последняя версия

0.2.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.pilosa:roaring
This library implements Roaring Bitmaps with Pilosa 64 bit extension, compatible with Pilosa Roaring Bitmap imports.
Ссылка на сайт

Ссылка на сайт

https://github.com/pilosa/java-pilosa-roaring
Организация-разработчик

Организация-разработчик

Pilosa Corp.
Система контроля версий

Система контроля версий

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

Скачать roaring

Как подключить последнюю версию

<!-- 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"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.2.2
0.2.1
0.2
0.1