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 |
---|
StreamingCommand.HandleSpec(String handleName)
Create a new
StreamingCommand.HandleSpec with a given name using the default
PigStorage serializer/deserializer. |
StreamingCommand.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 StreamingCommand.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 StreamingCommand.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
.HandleSpec
public void setSpec(String spec)
HandleSpec
.spec
- the serializer/deserializer spec of the
HandleSpec
Copyright © 2007-2012 The Apache Software Foundation