Class MetadataServiceGrpc.MetadataServiceFutureStub (3.16.0)

public static final class MetadataServiceGrpc.MetadataServiceFutureStub extends AbstractFutureStub<MetadataServiceGrpc.MetadataServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service MetadataService.

Service for reading and writing metadata entries.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > MetadataServiceGrpc.MetadataServiceFutureStub

Methods

addContextArtifactsAndExecutions(AddContextArtifactsAndExecutionsRequest request)

public ListenableFuture<AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutions(AddContextArtifactsAndExecutionsRequest request)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameter
NameDescription
requestAddContextArtifactsAndExecutionsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<AddContextArtifactsAndExecutionsResponse>

addContextChildren(AddContextChildrenRequest request)

public ListenableFuture<AddContextChildrenResponse> addContextChildren(AddContextChildrenRequest request)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameter
NameDescription
requestAddContextChildrenRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<AddContextChildrenResponse>

addExecutionEvents(AddExecutionEventsRequest request)

public ListenableFuture<AddExecutionEventsResponse> addExecutionEvents(AddExecutionEventsRequest request)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameter
NameDescription
requestAddExecutionEventsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<AddExecutionEventsResponse>

build(Channel channel, CallOptions callOptions)

protected MetadataServiceGrpc.MetadataServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
MetadataServiceGrpc.MetadataServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createArtifact(CreateArtifactRequest request)

public ListenableFuture<Artifact> createArtifact(CreateArtifactRequest request)

Creates an Artifact associated with a MetadataStore.

Parameter
NameDescription
requestCreateArtifactRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Artifact>

createContext(CreateContextRequest request)

public ListenableFuture<Context> createContext(CreateContextRequest request)

Creates a Context associated with a MetadataStore.

Parameter
NameDescription
requestCreateContextRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Context>

createExecution(CreateExecutionRequest request)

public ListenableFuture<Execution> createExecution(CreateExecutionRequest request)

Creates an Execution associated with a MetadataStore.

Parameter
NameDescription
requestCreateExecutionRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Execution>

createMetadataSchema(CreateMetadataSchemaRequest request)

public ListenableFuture<MetadataSchema> createMetadataSchema(CreateMetadataSchemaRequest request)

Creates a MetadataSchema.

Parameter
NameDescription
requestCreateMetadataSchemaRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<MetadataSchema>

createMetadataStore(CreateMetadataStoreRequest request)

public ListenableFuture<Operation> createMetadataStore(CreateMetadataStoreRequest request)

Initializes a MetadataStore, including allocation of resources.

Parameter
NameDescription
requestCreateMetadataStoreRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteArtifact(DeleteArtifactRequest request)

public ListenableFuture<Operation> deleteArtifact(DeleteArtifactRequest request)

Deletes an Artifact.

Parameter
NameDescription
requestDeleteArtifactRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteContext(DeleteContextRequest request)

public ListenableFuture<Operation> deleteContext(DeleteContextRequest request)

Deletes a stored Context.

Parameter
NameDescription
requestDeleteContextRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteExecution(DeleteExecutionRequest request)

public ListenableFuture<Operation> deleteExecution(DeleteExecutionRequest request)

Deletes an Execution.

Parameter
NameDescription
requestDeleteExecutionRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteMetadataStore(DeleteMetadataStoreRequest request)

public ListenableFuture<Operation> deleteMetadataStore(DeleteMetadataStoreRequest request)

Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).

Parameter
NameDescription
requestDeleteMetadataStoreRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

getArtifact(GetArtifactRequest request)

public ListenableFuture<Artifact> getArtifact(GetArtifactRequest request)

Retrieves a specific Artifact.

Parameter
NameDescription
requestGetArtifactRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Artifact>

getContext(GetContextRequest request)

public ListenableFuture<Context> getContext(GetContextRequest request)

Retrieves a specific Context.

Parameter
NameDescription
requestGetContextRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Context>

getExecution(GetExecutionRequest request)

public ListenableFuture<Execution> getExecution(GetExecutionRequest request)

Retrieves a specific Execution.

Parameter
NameDescription
requestGetExecutionRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Execution>

getMetadataSchema(GetMetadataSchemaRequest request)

public ListenableFuture<MetadataSchema> getMetadataSchema(GetMetadataSchemaRequest request)

Retrieves a specific MetadataSchema.

Parameter
NameDescription
requestGetMetadataSchemaRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<MetadataSchema>

getMetadataStore(GetMetadataStoreRequest request)

public ListenableFuture<MetadataStore> getMetadataStore(GetMetadataStoreRequest request)

Retrieves a specific MetadataStore.

Parameter
NameDescription
requestGetMetadataStoreRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<MetadataStore>

listArtifacts(ListArtifactsRequest request)

public ListenableFuture<ListArtifactsResponse> listArtifacts(ListArtifactsRequest request)

Lists Artifacts in the MetadataStore.

Parameter
NameDescription
requestListArtifactsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListArtifactsResponse>

listContexts(ListContextsRequest request)

public ListenableFuture<ListContextsResponse> listContexts(ListContextsRequest request)

Lists Contexts on the MetadataStore.

Parameter
NameDescription
requestListContextsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListContextsResponse>

listExecutions(ListExecutionsRequest request)

public ListenableFuture<ListExecutionsResponse> listExecutions(ListExecutionsRequest request)

Lists Executions in the MetadataStore.

Parameter
NameDescription
requestListExecutionsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListExecutionsResponse>

listMetadataSchemas(ListMetadataSchemasRequest request)

public ListenableFuture<ListMetadataSchemasResponse> listMetadataSchemas(ListMetadataSchemasRequest request)

Lists MetadataSchemas.

Parameter
NameDescription
requestListMetadataSchemasRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListMetadataSchemasResponse>

listMetadataStores(ListMetadataStoresRequest request)

public ListenableFuture<ListMetadataStoresResponse> listMetadataStores(ListMetadataStoresRequest request)

Lists MetadataStores for a Location.

Parameter
NameDescription
requestListMetadataStoresRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListMetadataStoresResponse>

purgeArtifacts(PurgeArtifactsRequest request)

public ListenableFuture<Operation> purgeArtifacts(PurgeArtifactsRequest request)

Purges Artifacts.

Parameter
NameDescription
requestPurgeArtifactsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

purgeContexts(PurgeContextsRequest request)

public ListenableFuture<Operation> purgeContexts(PurgeContextsRequest request)

Purges Contexts.

Parameter
NameDescription
requestPurgeContextsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

purgeExecutions(PurgeExecutionsRequest request)

public ListenableFuture<Operation> purgeExecutions(PurgeExecutionsRequest request)

Purges Executions.

Parameter
NameDescription
requestPurgeExecutionsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

queryArtifactLineageSubgraph(QueryArtifactLineageSubgraphRequest request)

public ListenableFuture<LineageSubgraph> queryArtifactLineageSubgraph(QueryArtifactLineageSubgraphRequest request)

Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.

Parameter
NameDescription
requestQueryArtifactLineageSubgraphRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<LineageSubgraph>

queryContextLineageSubgraph(QueryContextLineageSubgraphRequest request)

public ListenableFuture<LineageSubgraph> queryContextLineageSubgraph(QueryContextLineageSubgraphRequest request)

Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.

Parameter
NameDescription
requestQueryContextLineageSubgraphRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<LineageSubgraph>

queryExecutionInputsAndOutputs(QueryExecutionInputsAndOutputsRequest request)

public ListenableFuture<LineageSubgraph> queryExecutionInputsAndOutputs(QueryExecutionInputsAndOutputsRequest request)

Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph that also contains the Execution and connecting Events.

Parameter
NameDescription
requestQueryExecutionInputsAndOutputsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<LineageSubgraph>

removeContextChildren(RemoveContextChildrenRequest request)

public ListenableFuture<RemoveContextChildrenResponse> removeContextChildren(RemoveContextChildrenRequest request)

Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.

Parameter
NameDescription
requestRemoveContextChildrenRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<RemoveContextChildrenResponse>

updateArtifact(UpdateArtifactRequest request)

public ListenableFuture<Artifact> updateArtifact(UpdateArtifactRequest request)

Updates a stored Artifact.

Parameter
NameDescription
requestUpdateArtifactRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Artifact>

updateContext(UpdateContextRequest request)

public ListenableFuture<Context> updateContext(UpdateContextRequest request)

Updates a stored Context.

Parameter
NameDescription
requestUpdateContextRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Context>

updateExecution(UpdateExecutionRequest request)

public ListenableFuture<Execution> updateExecution(UpdateExecutionRequest request)

Updates a stored Execution.

Parameter
NameDescription
requestUpdateExecutionRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Execution>