All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.ydb.table.rpc.SchemeRpc Maven / Gradle / Ivy

package com.yandex.ydb.table.rpc;

import java.util.concurrent.CompletableFuture;

import com.yandex.ydb.core.Result;
import com.yandex.ydb.core.rpc.Rpc;
import com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathRequest;
import com.yandex.ydb.scheme.SchemeOperationProtos.DescribePathResponse;
import com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryRequest;
import com.yandex.ydb.scheme.SchemeOperationProtos.ListDirectoryResponse;
import com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryRequest;
import com.yandex.ydb.scheme.SchemeOperationProtos.MakeDirectoryResponse;
import com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryRequest;
import com.yandex.ydb.scheme.SchemeOperationProtos.RemoveDirectoryResponse;


/**
 * @author Sergey Polovko
 */
public interface SchemeRpc extends Rpc {

    /**
     * Make directory.
     */
    CompletableFuture> makeDirectory(MakeDirectoryRequest request, long deadlineAfter);

    /**
     * Remove directory.
     */
    CompletableFuture> removeDirectory(RemoveDirectoryRequest request, long deadlineAfter);

    /**
     * Returns information about given directory and objects inside it.
     */
    CompletableFuture> describeDirectory(ListDirectoryRequest request, long deadlineAfter);

    /**
     * Returns information about object with given path.
     */
    CompletableFuture> describePath(DescribePathRequest request, long deadlineAfter);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy