public static class StreamingCommand.HandleSpec extends Object implements Comparable<StreamingCommand.HandleSpec>, Serializable, Cloneable
StreamingCommand.Handle to communicate
with the external process.
It specifies the stream-handle which can be one of stdin/
stdout/stderr or a named file and also the
serializer/deserializer specification to be used to read/write data
to/from the stream.| Constructor and Description |
|---|
HandleSpec(String handleName)
Create a new
StreamingCommand.HandleSpec with a given name using the default
PigStorage serializer/deserializer. |
HandleSpec(String handleName,
String spec)
Create a new
StreamingCommand.HandleSpec with a given name using the default
PigStorage serializer/deserializer. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
compareTo(StreamingCommand.HandleSpec o) |
boolean |
equals(Object obj) |
String |
getName()
Get the name of the
HandleSpec. |
String |
getSpec()
Get the serializer/deserializer spec of the
HandleSpec. |
int |
hashCode() |
void |
setName(String name)
Set the name of the
HandleSpec. |
void |
setSpec(String spec)
Set the serializer/deserializer spec of the
HandleSpec. |
String |
toString() |
public HandleSpec(String handleName)
StreamingCommand.HandleSpec with a given name using the default
PigStorage serializer/deserializer.handleName - name of the handle (one of stdin,
stdout or a file-path)public HandleSpec(String handleName, String spec)
StreamingCommand.HandleSpec with a given name using the default
PigStorage serializer/deserializer.handleName - name of the handle (one of stdin,
stdout or a file-path)spec - serializer/deserializer specpublic int compareTo(StreamingCommand.HandleSpec o)
compareTo in interface Comparable<StreamingCommand.HandleSpec>public String getName()
HandleSpec.HandleSpec (one of
stdin, stdout or a file-path)public void setName(String name)
HandleSpec.name - name of the HandleSpec (one of
stdin, stdout or a file-path)public String getSpec()
HandleSpec.HandleSpecpublic void setSpec(String spec)
HandleSpec.spec - the serializer/deserializer spec of the
HandleSpecCopyright © 2007-2017 The Apache Software Foundation