Skip to content

Commit

Permalink
minor improve
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies committed Oct 23, 2024
1 parent 7b6fdea commit c9822eb
Show file tree
Hide file tree
Showing 40 changed files with 882 additions and 709 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
import org.apache.hugegraph.store.client.grpc.KvCloseableIterator;
import org.apache.hugegraph.store.grpc.stream.ScanStreamReq;

/**
* @version 0.2.0
*/
public interface HgKvStore {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@

import org.apache.hugegraph.store.client.util.HgStoreClientUtil;

/**
* created on 2021/10/14
*
* @version 1.3.0 add canceled assert
*/
public class HgOwnerKey implements Serializable {

private final byte[] owner; // TODO: consider remove? since it seems to be useless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
import org.apache.hugegraph.store.client.util.HgAssert;
import org.apache.hugegraph.store.grpc.common.ScanOrderType;

/**
* 2022/3/4
*
* @version 0.5.0
*/
public interface HgScanQuery {

static HgScanQuery tableOf(String table) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@

import javax.annotation.concurrent.NotThreadSafe;

/**
* created on 2021/10/26
*
* @version 1.0.0
*/
@NotThreadSafe
public final class HgNodePartitionerBuilder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@

import org.apache.hugegraph.store.HgStoreSession;

/**
* created on 2021/10/11
*
* @version 0.2.0
*/
public interface HgStoreNode {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@
import lombok.extern.slf4j.Slf4j;

/**
* // TODO: Mapping to Store-Node-Cluster, one to one.
* <p>
* created on 2021/10/11
*
* @version 0.2.0
* TODO: Mapping to Store-Node-Cluster, one to one.
*/
@ThreadSafe
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@

package org.apache.hugegraph.store.client;

/**
* created on 2021/10/12
*
* @version 1.0.0
*/
public interface HgStoreNodeNotifier {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@

import org.apache.hugegraph.store.client.util.HgStoreClientConst;

/**
* created on 2021/10/12
*
* @version 1.0.0
*/
public interface HgStoreNodePartitioner {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@

import org.apache.hugegraph.store.HgStoreSession;

/**
* created on 2021/10/11
*
* @version 0.1.0
*/
public interface HgStoreNodeSession extends HgStoreSession {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@

import lombok.extern.slf4j.Slf4j;

/**
* created on 2022/01/19
*
* @version 0.6.0 added batch scan on 2022/03/03
*/
@Slf4j
@NotThreadSafe
class NodeTxSessionProxy implements HgStoreSession {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@

import lombok.extern.slf4j.Slf4j;

/**
* Proxy iterator orderly, to switch next one will happen when the current one is empty.
* <p>
* created on 2022/03/10
*
* @version 0.1.0
*/
@Slf4j
public class SequencedIterator implements HgKvIterator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@

import lombok.extern.slf4j.Slf4j;

/**
* created on 2021/10/24
*
* @version 0.1.1
*/
@Slf4j
public class ShiftWorkIteratorProxy implements HgKvIterator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
import org.apache.hugegraph.store.HgKvEntry;
import org.apache.hugegraph.store.HgKvIterator;

/**
* created on 2021/10/21
*
* @version 0.1.0
*/
class TopWorkIteratorProxy implements HgKvIterator {

private static final byte[] EMPTY_BYTES = new byte[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@

import lombok.extern.slf4j.Slf4j;

/**
* created on 2021/10/20
*
* @version 0.2.1
*/
@Slf4j
class GrpcKvIteratorImpl implements HgKvPagingIterator<HgKvEntry>, HgKvOrderedIterator<HgKvEntry> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@

import lombok.extern.slf4j.Slf4j;

/**
* created on 2022/01/19
*
* @version 0.6.0 added batch get on 2022/04/06
*/
@Slf4j
@NotThreadSafe
class GrpcStoreNodeSessionImpl implements HgStoreNodeSession {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@
import io.grpc.ManagedChannel;
import lombok.extern.slf4j.Slf4j;

/**
* created on 2021/11/18
*
* @version 0.5.0
*/
@Slf4j
@ThreadSafe
class GrpcStoreSessionClient extends AbstractGrpcClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
import io.grpc.stub.AbstractBlockingStub;
import lombok.extern.slf4j.Slf4j;

/**
* created on 2021/10/19
*
* @version 1.1.1 added synchronized in getChannel.
*/
@Slf4j
@ThreadSafe
public class GrpcStoreStreamClient extends AbstractGrpcClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@
import io.grpc.stub.StreamObserver;
import lombok.extern.slf4j.Slf4j;

/**
* Batch streaming query client implementation class
* <p>
* created on 2022/07/23
*
* @version 3.0.0
*/
@Slf4j
@NotThreadSafe
public class KvBatchScanner implements Closeable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.apache.hugegraph.store.HgScanQuery;
import org.apache.hugegraph.store.client.HgStoreNodeSession;
import org.apache.hugegraph.store.client.type.HgStoreClientException;
import org.apache.hugegraph.store.client.util.Base58;
import org.apache.hugegraph.store.util.Base58Encoder;
import org.apache.hugegraph.store.client.util.HgStoreClientConfig;
import org.apache.hugegraph.store.grpc.common.Kv;
import org.apache.hugegraph.store.grpc.stream.HgStoreStreamGrpc;
Expand All @@ -47,11 +47,6 @@
import io.grpc.stub.StreamObserver;
import lombok.extern.slf4j.Slf4j;

/**
* created on 2022/03/23
*
* @version 5.0.0
*/
@Slf4j
@NotThreadSafe
class KvBatchScanner5 {
Expand Down Expand Up @@ -107,7 +102,7 @@ private static class OrderBroker {

if (log.isDebugEnabled()) {
if (scanQuery.getPrefixList() != null && scanQuery.getPrefixList().size() > 0) {
brokerId = Base58.encode(scanQuery.getPrefixList().get(0).getKey());
brokerId = Base58Encoder.convertToBase58(scanQuery.getPrefixList().get(0).getKey());

log.debug(
"[ANALYSIS START] [{}] firstKey: {}, keyLength: {}, table: {}, node: {}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@
import io.grpc.stub.StreamObserver;
import lombok.extern.slf4j.Slf4j;

/**
* created on 2021/10/21
*
* @version 0.6.1 [email protected] on 2022/04/05
*/
@Slf4j
@NotThreadSafe
class KvPageScanner implements KvCloseableIterator<Kv>, HgPageSize, HgSeekAble {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@

import lombok.extern.slf4j.Slf4j;

/**
* 2021/11/18
*
* @version 0.3.0 on 2022/01/27
*/
@Slf4j
final class NotifyingExecutor {

Expand Down
Loading

0 comments on commit c9822eb

Please sign in to comment.