.build(); Kv.Operand request = Kv.Operand.newBuilder() .setKey(transferMeta.getDataDesc().getTaggedVariableName()) .build(); byte[] value = response.getValue().toByteArray();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
while (keyValueIterator.hasNext()) { KeyValue<Bytes, byte[]> keyValue = keyValueIterator.next(); Kv.Operand operand = Kv.Operand.newBuilder().setKey(ByteString.copyFrom(keyValue.key.get())) .setValue(ByteString.copyFrom(keyValue.value)).build(); responseObserver.onNext(operand); ++count; bytesCount += operand.getKey().size(); bytesCount += operand.getValue().size(); if (bytesCount >= threshold) { break;
StoreInfo storeInfo = StoreInfo.fromStorageLocator(createTableStorageLocator); Kv.Operand request = Kv.Operand.newBuilder() .setKey(finalTransferMeta.getDataDesc().getTaggedVariableName()) .setValue(serializedObjectResult)
@Override public void onNext(Kv.Operand operand) { int dispatchedFragment = dispatchPolicy.executePolicy(storeInfo, operand.getKey());
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "get", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getGetMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getGetMethod; if ((getGetMethod = KVServiceGrpc.getGetMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getGetMethod = KVServiceGrpc.getGetMethod) == null) { KVServiceGrpc.getGetMethod = getGetMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "get")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("get")) .build(); } } } return getGetMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "putAll", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutAllMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutAllMethod; if ((getPutAllMethod = KVServiceGrpc.getPutAllMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutAllMethod = KVServiceGrpc.getPutAllMethod) == null) { KVServiceGrpc.getPutAllMethod = getPutAllMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "putAll")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("putAll")) .build(); } } } return getPutAllMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "iterate", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Range.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Range, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getIterateMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Range, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getIterateMethod; if ((getIterateMethod = KVServiceGrpc.getIterateMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getIterateMethod = KVServiceGrpc.getIterateMethod) == null) { KVServiceGrpc.getIterateMethod = getIterateMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Range, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "iterate")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Range.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("iterate")) .build(); } } } return getIterateMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "delete", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getDeleteMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getDeleteMethod; if ((getDeleteMethod = KVServiceGrpc.getDeleteMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getDeleteMethod = KVServiceGrpc.getDeleteMethod) == null) { KVServiceGrpc.getDeleteMethod = getDeleteMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "delete")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("delete")) .build(); } } } return getDeleteMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "put", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod; if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { KVServiceGrpc.getPutMethod = getPutMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "put")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("put")) .build(); } } } return getPutMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "iterate", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Range.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Range, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getIterateMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Range, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getIterateMethod; if ((getIterateMethod = KVServiceGrpc.getIterateMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getIterateMethod = KVServiceGrpc.getIterateMethod) == null) { KVServiceGrpc.getIterateMethod = getIterateMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Range, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "iterate")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Range.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("iterate")) .build(); } } } return getIterateMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "get", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getGetMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getGetMethod; if ((getGetMethod = KVServiceGrpc.getGetMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getGetMethod = KVServiceGrpc.getGetMethod) == null) { KVServiceGrpc.getGetMethod = getGetMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "get")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("get")) .build(); } } } return getGetMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "putIfAbsent", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getPutIfAbsentMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getPutIfAbsentMethod; if ((getPutIfAbsentMethod = KVServiceGrpc.getPutIfAbsentMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutIfAbsentMethod = KVServiceGrpc.getPutIfAbsentMethod) == null) { KVServiceGrpc.getPutIfAbsentMethod = getPutIfAbsentMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "putIfAbsent")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("putIfAbsent")) .build(); } } } return getPutIfAbsentMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "put", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod; if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { KVServiceGrpc.getPutMethod = getPutMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "put")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("put")) .build(); } } } return getPutMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "putIfAbsent", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getPutIfAbsentMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getPutIfAbsentMethod; if ((getPutIfAbsentMethod = KVServiceGrpc.getPutIfAbsentMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutIfAbsentMethod = KVServiceGrpc.getPutIfAbsentMethod) == null) { KVServiceGrpc.getPutIfAbsentMethod = getPutIfAbsentMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "putIfAbsent")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("putIfAbsent")) .build(); } } } return getPutIfAbsentMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "delete", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getDeleteMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand> getDeleteMethod; if ((getDeleteMethod = KVServiceGrpc.getDeleteMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getDeleteMethod = KVServiceGrpc.getDeleteMethod) == null) { KVServiceGrpc.getDeleteMethod = getDeleteMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Operand>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "delete")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("delete")) .build(); } } } return getDeleteMethod; }