appslandia-scaling

AppsLandia Scaling

License

License

GroupId

GroupId

com.appslandia
ArtifactId

ArtifactId

appslandia-scaling
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

appslandia-scaling
AppsLandia Scaling
Project URL

Project URL

https://github.com/haducloc/appslandia-scaling
Source Code Management

Source Code Management

https://github.com/haducloc/appslandia-scaling.git

Download appslandia-scaling

How to add to project

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

Dependencies

provided (2)

Group / Artifact Type Version
com.appslandia : appslandia-common jar 7.9
org.rocksdb : rocksdbjni jar 6.14.6

test (1)

Group / Artifact Type Version
junit : junit jar 4.13.1

Project Modules

There are no modules declared in this project.

Appslandia Scaling

Features

  • Facebook RocksDB Utilizing

Installation

Maven

<dependency>
    <groupId>com.appslandia</groupId>
    <artifactId>appslandia-scaling</artifactId>
    <version>{LATEST_VERSION}</version>
</dependency>

<dependency>
    <groupId>com.appslandia</groupId>
    <artifactId>appslandia-common</artifactId>
    <version>{LATEST_VERSION}</version>
</dependency>

Gradle

dependencies {
  compile 'com.appslandia:appslandia-scaling:{LATEST_VERSION}'
  compile 'com.appslandia:appslandia-common:{LATEST_VERSION}'
}

Sample Usage

RocksDB

List<ColumnFamilyDescriptor> descriptors = new ArrayList<>();

// DEFAULT_COLUMN_FAMILY is required at index 0
descriptors.add(RocksUtils.newCfDescriptor(RocksManager.DEFAULT_COLUMN_FAMILY, new ColumnFamilyOptions()));
descriptors.add(RocksUtils.newCfDescriptor("other_column_family", new ColumnFamilyOptions()));

DBOptions dbOptions = RocksUtils.newDBOptions().setCreateIfMissing(true).setCreateMissingColumnFamilies(true);
boolean readOnlyMode = false;
RocksCloseable rocksCloseable = RocksUtils.newRocksCloseable().add(descriptors).add(dbOptions);

try (RocksManager db = RocksManager.open("database_dir", dbOptions, readOnlyMode, descriptors, rocksCloseable)) {

	// db.put, db.get, db.delete, db.newRocksIterator, db.newRocksEntryIterator, etc.
	
} catch (RocksDBException ex) {
	ex.printStackTrace();
}

Questions?

Please feel free to contact me if you have any questions or comments. Email: [email protected]

License

This code is distributed under the terms and conditions of the MIT license.

Versions

Version
1.3
1.2
1.1
1.0