|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.streaming.StreamingCommand.HandleSpec
public static class StreamingCommand.HandleSpec
Specification about the usage of the 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 specMethod Detail |
---|
public int compareTo(StreamingCommand.HandleSpec o)
compareTo
in interface Comparable<StreamingCommand.HandleSpec>
public String toString()
toString
in class Object
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
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |