org.springframework.data.hadoop.pig
Class PigScript

java.lang.Object
  extended by org.springframework.data.hadoop.pig.PigScript

public class PigScript
extends Object

Holder class for a pig script.

Author:
Costin Leau

Constructor Summary
PigScript(Resource resource)
          Constructs a new PigScript instance from the given resource.
PigScript(Resource resource, Map<?,?> args)
          Constructs a new PigScript instance.
PigScript(Resource resource, Properties args)
          Constructs a new PigScript instance.
 
Method Summary
 Map<String,String> getArguments()
          Returns the arguments associated with this script.
 Resource getResource()
          Returns the script resource.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PigScript

public PigScript(Resource resource)
Constructs a new PigScript instance from the given resource.

Parameters:
resource - script resource.

PigScript

public PigScript(Resource resource,
                 Properties args)
Constructs a new PigScript instance. Both the script content and its parameters are supplied.

Parameters:
resource - script content.
args - script arguments.

PigScript

public PigScript(Resource resource,
                 Map<?,?> args)
Constructs a new PigScript instance.

Parameters:
resource -
args -
Method Detail

getResource

public Resource getResource()
Returns the script resource.

Returns:
Returns the resource

getArguments

public Map<String,String> getArguments()
Returns the arguments associated with this script.

Returns:
Returns the arguments for this script.

toString

public String toString()
Overrides:
toString in class Object