All Projects → tikv → client-java

tikv / client-java

Licence: Apache-2.0 license
TiKV Java Client

Programming Languages

java
68154 projects - #9 most used programming language
ANTLR
299 projects

Projects that are alternatives of or similar to client-java

Tikv
Distributed transactional key-value database, originally created to complement TiDB
Stars: ✭ 10,403 (+11207.61%)
Mutual labels:  cncf, tikv
Contour
Contour is a Kubernetes ingress controller using Envoy proxy.
Stars: ✭ 2,985 (+3144.57%)
Mutual labels:  cncf
Cloudskew
Create free cloud architecture diagrams
Stars: ✭ 183 (+98.91%)
Mutual labels:  cncf
Notary
Notary is a project that allows anyone to have trust over arbitrary collections of data
Stars: ✭ 2,715 (+2851.09%)
Mutual labels:  cncf
Jaeger
CNCF Jaeger, a Distributed Tracing Platform
Stars: ✭ 14,813 (+16001.09%)
Mutual labels:  cncf
Curriculum
📚Open Source Curriculum for CNCF Certification Courses
Stars: ✭ 3,257 (+3440.22%)
Mutual labels:  cncf
Brigade
Event-driven scripting for Kubernetes
Stars: ✭ 2,218 (+2310.87%)
Mutual labels:  cncf
hub
Hub contains reusable actions. It generates the manifest file used by ArtifactHub.
Stars: ✭ 18 (-80.43%)
Mutual labels:  cncf
Sig Release
Repo for SIG release
Stars: ✭ 244 (+165.22%)
Mutual labels:  cncf
Foundation
☁️♮🏛File non-technical issues related to CNCF
Stars: ✭ 208 (+126.09%)
Mutual labels:  cncf
Community
Helm community content
Stars: ✭ 211 (+129.35%)
Mutual labels:  cncf
Chubaofs
ChubaoFS (abbrev. CBFS) is a cloud native distributed file system and object store.
Stars: ✭ 2,482 (+2597.83%)
Mutual labels:  cncf
Hub
For the distributed charts search at hub.helm.sh
Stars: ✭ 239 (+159.78%)
Mutual labels:  cncf
Kops
Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
Stars: ✭ 13,601 (+14683.7%)
Mutual labels:  cncf
Netdata
Real-time performance monitoring, done right! https://www.netdata.cloud
Stars: ✭ 57,056 (+61917.39%)
Mutual labels:  cncf
Kuma
🐻 The Universal Service Mesh. CNCF Sandbox Project.
Stars: ✭ 2,516 (+2634.78%)
Mutual labels:  cncf
Aws Workshop For Kubernetes
AWS Workshop for Kubernetes
Stars: ✭ 2,450 (+2563.04%)
Mutual labels:  cncf
Harbor
An open source trusted cloud native registry project that stores, signs, and scans content.
Stars: ✭ 16,320 (+17639.13%)
Mutual labels:  cncf
kubernetes-101-workshop
Kubernetes 101 workshop for beginners.
Stars: ✭ 17 (-81.52%)
Mutual labels:  cncf
Kubernetes
Production-Grade Container Scheduling and Management
Stars: ✭ 83,715 (+90894.57%)
Mutual labels:  cncf

Maven Central Slack codecov

TiKV JAVA Client

A Java client for TiKV. It is supposed to:

  • Communicate via gRPC
  • Talk to Placement Driver searching for a region
  • Talk to TiKV for reading/writing data

Quick Start

TiKV Java Client is designed to communicate with PD and TiKV, please run PD and TiKV in advance.

Build Java client from source file:

mvn clean install -Dmaven.test.skip=true

Add maven dependency to pom.xml:

<dependency>
	<groupId>org.tikv</groupId>
	<artifactId>tikv-client-java</artifactId>
	<version>3.3.0</version>
</dependency>

Create a transactional KVClient and communicates with TiKV:

import org.tikv.common.TiConfiguration;
import org.tikv.common.TiSession;
import org.tikv.txn.KVClient;

public class Main {
	public static void main(String[] args) throws Exception {
		TiConfiguration conf = TiConfiguration.createDefault(YOUR_PD_ADDRESSES);
		TiSession session = TiSession.create(conf);
		KVClient client = session.createKVClient();
	}
}

Or create a RawKVClient if you don't need the transaction semantic:

import org.tikv.common.TiConfiguration;
import org.tikv.common.TiSession;
import org.tikv.raw.RawKVClient;

public class Main {
	public static void main(String[] args) throws Exception {
		TiConfiguration conf = TiConfiguration.createRawDefault(YOUR_PD_ADDRESSES);
		TiSession session = TiSession.create(conf);
		RawKVClient client = session.createRawClient();
	}
}

Find more demo in TiKV Java Client User Documents

Documentation

See Java Client Documents for references about how to config and monitor Java Client.

A Maven site is also available. It includes:

  1. API reference
  2. Spotbugs Reports
  3. Source Code Xref

Community

Forum

Contribute to TiKV Java Client

See Contribution Guide for references about how to contribute to this project.

License

Apache 2.0 license. See the LICENSE file for details.

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].