Package org.apache.tika
Class TikaGrpc.TikaBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<TikaGrpc.TikaBlockingV2Stub>
org.apache.tika.TikaGrpc.TikaBlockingV2Stub
- Enclosing class:
- TikaGrpc
public static final class TikaGrpc.TikaBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<TikaGrpc.TikaBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Tika.
The Tika Grpc Service definition
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected TikaGrpc.TikaBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) deleteFetcher(DeleteFetcherRequest request) Delete a fetcher from the fetcher store.Delete a pipes iterator from the iterator store.fetchAndParse(FetchAndParseRequest request) Using a Fetcher in the fetcher store, send a FetchAndParse request.io.grpc.stub.BlockingClientCall<FetchAndParseRequest,FetchAndParseReply> Using a Fetcher in the fetcher store, send a FetchAndParse request.io.grpc.stub.BlockingClientCall<?,FetchAndParseReply> Using a Fetcher in the fetcher store, send a FetchAndParse request.getFetcher(GetFetcherRequest request) Get a fetcher's data from the fetcher store.Get the Fetcher Config schema for a given fetcher class.getPipesIterator(GetPipesIteratorRequest request) Get a pipes iterator's data from the iterator store.listFetchers(ListFetchersRequest request) List fetchers that are currently in the fetcher store.saveFetcher(SaveFetcherRequest request) Save a fetcher to the fetcher store.Save a pipes iterator to the iterator store.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected TikaGrpc.TikaBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TikaGrpc.TikaBlockingV2Stub>
-
saveFetcher
Save a fetcher to the fetcher store.
- Throws:
io.grpc.StatusException
-
getFetcher
Get a fetcher's data from the fetcher store.
- Throws:
io.grpc.StatusException
-
listFetchers
List fetchers that are currently in the fetcher store.
- Throws:
io.grpc.StatusException
-
deleteFetcher
public DeleteFetcherReply deleteFetcher(DeleteFetcherRequest request) throws io.grpc.StatusException Delete a fetcher from the fetcher store.
- Throws:
io.grpc.StatusException
-
fetchAndParse
public FetchAndParseReply fetchAndParse(FetchAndParseRequest request) throws io.grpc.StatusException Using a Fetcher in the fetcher store, send a FetchAndParse request. This will fetch, parse, and return the FetchParseTuple data output from Tika Pipes. This is a synchronous call that immediately returns 1 result.
- Throws:
io.grpc.StatusException
-
fetchAndParseServerSideStreaming
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,FetchAndParseReply> fetchAndParseServerSideStreaming(FetchAndParseRequest request) Using a Fetcher in the fetcher store, send a FetchAndParse request. This will fetch, parse, and return the FetchParseTuple data output from Tika Pipes. This will stream the data from the server in response.
-
fetchAndParseBiDirectionalStreaming
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<FetchAndParseRequest,FetchAndParseReply> fetchAndParseBiDirectionalStreaming()Using a Fetcher in the fetcher store, send a FetchAndParse request. This will fetch, parse, and return the FetchParseTuple data output from Tika Pipes. This serves a bi-directional stream of fetch inputs and parsed outputs.
-
getFetcherConfigJsonSchema
public GetFetcherConfigJsonSchemaReply getFetcherConfigJsonSchema(GetFetcherConfigJsonSchemaRequest request) throws io.grpc.StatusException Get the Fetcher Config schema for a given fetcher class.
- Throws:
io.grpc.StatusException
-
savePipesIterator
public SavePipesIteratorReply savePipesIterator(SavePipesIteratorRequest request) throws io.grpc.StatusException Save a pipes iterator to the iterator store.
- Throws:
io.grpc.StatusException
-
getPipesIterator
public GetPipesIteratorReply getPipesIterator(GetPipesIteratorRequest request) throws io.grpc.StatusException Get a pipes iterator's data from the iterator store.
- Throws:
io.grpc.StatusException
-
deletePipesIterator
public DeletePipesIteratorReply deletePipesIterator(DeletePipesIteratorRequest request) throws io.grpc.StatusException Delete a pipes iterator from the iterator store.
- Throws:
io.grpc.StatusException
-