public static class StreamingCommand.HandleSpec extends java.lang.Object implements java.lang.Comparable<StreamingCommand.HandleSpec>, java.io.Serializable, java.lang.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 |
|---|
StreamingCommand.HandleSpec(java.lang.String handleName)
Create a new
StreamingCommand.HandleSpec with a given name using the default
PigStorage serializer/deserializer. |
StreamingCommand.HandleSpec(java.lang.String handleName,
java.lang.String spec)
Create a new
StreamingCommand.HandleSpec with a given name using the default
PigStorage serializer/deserializer. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
compareTo(StreamingCommand.HandleSpec o) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Get the name of the
HandleSpec. |
java.lang.String |
getSpec()
Get the serializer/deserializer spec of the
HandleSpec. |
int |
hashCode() |
void |
setName(java.lang.String name)
Set the name of the
HandleSpec. |
void |
setSpec(java.lang.String spec)
Set the serializer/deserializer spec of the
HandleSpec. |
java.lang.String |
toString() |
public StreamingCommand.HandleSpec(java.lang.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 StreamingCommand.HandleSpec(java.lang.String handleName,
java.lang.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 java.lang.Comparable<StreamingCommand.HandleSpec>public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
HandleSpec.HandleSpec (one of
stdin, stdout or a file-path)public void setName(java.lang.String name)
HandleSpec.name - name of the HandleSpec (one of
stdin, stdout or a file-path)public java.lang.String getSpec()
HandleSpec.HandleSpecpublic void setSpec(java.lang.String spec)
HandleSpec.spec - the serializer/deserializer spec of the
HandleSpecpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.ObjectCopyright © 2007-2012 The Apache Software Foundation