Module org.apache.arrow.flight.core
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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
REQUEST_CONTEXT_KEY
-
-
Constructor Details
-
RequestContextAdapter
public RequestContextAdapter()
-
-
Method Details
-
put
Description copied from interface:RequestContextRegister a variable and a value.- Specified by:
putin interfaceRequestContext- Parameters:
key- the variable name.value- the value.
-
get
Description copied from interface:RequestContextRetrieve a registered variable.- Specified by:
getin interfaceRequestContext- Parameters:
key- the variable name.- Returns:
- the value, or null if not found.
-
keySet
Description copied from interface:RequestContextRetrieves the keys that have been registered to this context.- Specified by:
keySetin interfaceRequestContext- Returns:
- the keys used in this context.
-
remove
Description copied from interface:RequestContextDeletes a registered variable.- Specified by:
removein interfaceRequestContext- Returns:
- the value associated with the deleted variable, or null if the key doesn't exist.
-