@InterfaceAudience.Public public abstract class EntityDescriptor<T extends EntityDescriptor<T>> extends Object implements org.apache.hadoop.io.Writable
| Modifier and Type | Field and Description |
|---|---|
protected String |
historyText |
| Constructor and Description |
|---|
EntityDescriptor() |
EntityDescriptor(String className) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName() |
UserPayload |
getUserPayload() |
void |
readFields(DataInput in) |
T |
setHistoryText(String historyText)
Provide a human-readable version of the user payload that can be
used in the TEZ UI
|
T |
setUserPayload(UserPayload userPayload)
Set user payload for this entity descriptor
|
String |
toString() |
void |
write(DataOutput out) |
protected String historyText
@InterfaceAudience.Private public EntityDescriptor()
public EntityDescriptor(String className)
public UserPayload getUserPayload()
public T setUserPayload(UserPayload userPayload)
userPayload - User Payloadpublic T setHistoryText(String historyText)
historyText - History text
For better support in the UI, the history text should be a json-encoded string.
The following keys in the json object will be recognized:
"desc" : A string-value describing the entity
"config" : A key-value map to represent configurationpublic String getClassName()
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.