Package org.apache.arrow.flight.grpc
Class RequestContextAdapter
java.lang.Object
org.apache.arrow.flight.grpc.RequestContextAdapter
- All Implemented Interfaces:
RequestContext
Adapter for holding key value pairs.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
REQUEST_CONTEXT_KEY
-
-
Constructor Details
-
RequestContextAdapter
public RequestContextAdapter()
-
-
Method Details
-
put
Description copied from interface:RequestContext
Register a variable and a value.- Specified by:
put
in interfaceRequestContext
- Parameters:
key
- the variable name.value
- the value.
-
get
Description copied from interface:RequestContext
Retrieve a registered variable.- Specified by:
get
in interfaceRequestContext
- Parameters:
key
- the variable name.- Returns:
- the value, or null if not found.
-
keySet
Description copied from interface:RequestContext
Retrieves the keys that have been registered to this context.- Specified by:
keySet
in interfaceRequestContext
- Returns:
- the keys used in this context.
-
remove
Description copied from interface:RequestContext
Deletes a registered variable.- Specified by:
remove
in interfaceRequestContext
- Returns:
- the value associated with the deleted variable, or null if the key doesn't exist.
-