| Package | Description |
|---|---|
| tech.ydb.core | |
| tech.ydb.core.grpc | |
| tech.ydb.core.impl | |
| tech.ydb.core.impl.call | |
| tech.ydb.core.operation | |
| tech.ydb.core.utils |
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.Error<V> |
static class |
Result.Fail<V> |
static class |
Result.Success<V> |
static class |
Result.Unexpected<V> |
| Modifier and Type | Method and Description |
|---|---|
static <V> Result<V> |
Result.error(String message,
Throwable throwable) |
static <V> Result<V> |
Result.fail(Status status) |
static <V> Result<V> |
Result.fail(UnexpectedResultException unexpected) |
<U> Result<U> |
Result.map(Function<T,U> mapper) |
static <V> Result<V> |
Result.success(V value) |
static <V> Result<V> |
Result.success(V value,
Status status) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Function<Status,CompletableFuture<Result<T>>> |
Status.bindValue(T value)
Create functor to compose the successful status to completed future with specified value.
|
static <T,U> Function<Result<T>,CompletableFuture<Result<U>>> |
Result.compose(Function<T,CompletableFuture<Result<U>>> mapper)
Create functor to compose the successful result to next completable future with another result.
|
static <T,U> Function<Result<T>,CompletableFuture<Result<U>>> |
Result.compose(Function<T,CompletableFuture<Result<U>>> mapper)
Create functor to compose the successful result to next completable future with another result.
|
static <T> Function<Status,CompletableFuture<Result<T>>> |
Status.composeResult(Supplier<CompletableFuture<Result<T>>> supplier)
Create functor to compose the successful status to next completable future with result.
|
static <T> Function<Result<T>,CompletableFuture<Status>> |
Result.composeStatus(Function<T,CompletableFuture<Status>> mapper)
Create functor to compose the successful result to next completable future with status.
|
static <T,U> Function<Result<T>,CompletableFuture<Result<U>>> |
Result.composeValue(U value)
Create functor to compose the successful result to completed future with specified value.
|
static <T,U> Function<Result<T>,CompletableFuture<Result<U>>> |
Result.composeValue(U value)
Create functor to compose the successful result to completed future with specified value.
|
<U> CompletableFuture<Result<U>> |
Result.mapResultFuture(Function<T,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Success.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Fail.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Unexpected.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Error.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
| Modifier and Type | Method and Description |
|---|---|
static <T,U> Function<Result<T>,CompletableFuture<Result<U>>> |
Result.compose(Function<T,CompletableFuture<Result<U>>> mapper)
Create functor to compose the successful result to next completable future with another result.
|
static <T> Function<Status,CompletableFuture<Result<T>>> |
Status.composeResult(Supplier<CompletableFuture<Result<T>>> supplier)
Create functor to compose the successful status to next completable future with result.
|
<U> CompletableFuture<Result<U>> |
Result.mapResultFuture(Function<T,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Success.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Fail.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Unexpected.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
<U> CompletableFuture<Result<U>> |
Result.Error.mapResultFuture(Function<V,CompletableFuture<Result<U>>> mapper) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Result<T> |
GrpcStatuses.toResult(io.grpc.Status status) |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
GrpcTransport.unaryCall(io.grpc.MethodDescriptor<ReqT,RespT> method,
GrpcRequestSettings settings,
ReqT request) |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
BaseGrpcTransport.unaryCall(io.grpc.MethodDescriptor<ReqT,RespT> method,
GrpcRequestSettings settings,
ReqT request) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Result<RespT>> |
UnaryCall.startCall(ReqT request,
io.grpc.Metadata headers) |
| Modifier and Type | Method and Description |
|---|---|
Result<R> |
StatusExtractor.apply(Result<R> result) |
| Modifier and Type | Method and Description |
|---|---|
static <R> Function<Result<R>,Operation<Status>> |
OperationBinder.bindAsync(GrpcTransport transport,
Function<R,tech.ydb.proto.OperationProtos.Operation> method) |
static <R,M extends com.google.protobuf.Message> |
OperationBinder.bindAsync(GrpcTransport transport,
Function<R,tech.ydb.proto.OperationProtos.Operation> method,
Class<M> resultClass) |
static <R,M extends com.google.protobuf.Message> |
OperationBinder.bindAsync(GrpcTransport transport,
Function<R,tech.ydb.proto.OperationProtos.Operation> method,
Class<M> resultClass) |
static <R> Function<Result<R>,Status> |
OperationBinder.bindSync(Function<R,tech.ydb.proto.OperationProtos.Operation> method) |
static <R,M extends com.google.protobuf.Message> |
OperationBinder.bindSync(Function<R,tech.ydb.proto.OperationProtos.Operation> method,
Class<M> resultClass) |
static <R,M extends com.google.protobuf.Message> |
OperationBinder.bindSync(Function<R,tech.ydb.proto.OperationProtos.Operation> method,
Class<M> resultClass) |
CompletableFuture<Result<Boolean>> |
Operation.fetch() |
| Modifier and Type | Method and Description |
|---|---|
Result<R> |
StatusExtractor.apply(Result<R> result) |
Status |
StatusMapper.apply(Result<R> result) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
boolean a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
boolean a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
boolean a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
boolean a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
boolean a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
int a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
int a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
int a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
int a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
int a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
long a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
long a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
long a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
long a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
long a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
Object... args)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
Object a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
Object a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
Object a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
Object a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
Results.getValueOrThrow(Result<T> result,
String template,
Object a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
Copyright © 2024. All rights reserved.