@InterfaceAudience.Public @InterfaceStability.Unstable public class CallerContext extends Object
Modifier and Type | Method and Description |
---|---|
String |
contextAsSimpleString() |
static CallerContext |
create(String context,
String callerId,
String callerType,
String blob)
Instantiate the Caller Context
|
String |
getBlob() |
String |
getCallerId() |
String |
getCallerType() |
String |
getContext() |
CallerContext |
setBlob(String blob) |
CallerContext |
setCallerIdAndType(String callerId,
String callerType) |
CallerContext |
setContext(String context) |
String |
toString() |
public static CallerContext create(String context, String callerId, String callerType, @Nullable String blob)
context
- Context in which Tez is being invoked. For example, HIVE or PIG.callerId
- Caller ID. An ID to uniquely identifier the caller within the callerType
namespacecallerType
- Type of the caller. Should ideally be used along with callerId to uniquely
identify the caller. When used with YARN Timeline, this should map to
the Timeline Entity Type. For example, HIVE_QUERY_ID.blob
- Free-form text or a json-representation of relevant meta-data.
This can be used to describe the work being done. For example, for Hive,
this could be the Hive query text.public String getCallerType()
public String getCallerId()
public String getBlob()
public String getContext()
public CallerContext setContext(String context)
context
- Context in which Tez is being invoked. For example, HIVE or PIG.public CallerContext setCallerIdAndType(String callerId, String callerType)
callerId
- Caller ID. An ID to uniquely identifier the caller within the callerType
namespacecallerType
- Type of the caller. Should ideally be used along with callerId to uniquely
identify the caller. When used with YARN Timeline, this should map to
the Timeline Entity Type. For example, HIVE_QUERY_ID.public CallerContext setBlob(@Nullable String blob)
blob
- Free-form text or a json-representation of relevant meta-data.
This can be used to describe the work being done. For example, for Hive,
this could be the Hive query text.public String contextAsSimpleString()
Copyright © 2024 Apache Software Foundation. All rights reserved.