org.springframework.data.hadoop.hive
Class HiveScript

java.lang.Object
  extended by org.springframework.data.hadoop.hive.HiveScript

public class HiveScript
extends Object

Holder class for a Hive script.

Author:
Costin Leau

Constructor Summary
HiveScript(Resource resource)
          Constructs a new HiveScript instance from the given resource.
HiveScript(Resource resource, Map<?,?> args)
           
HiveScript(Resource resource, Properties args)
          Constructs a new HiveScript 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

HiveScript

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

Parameters:
resource - script resource.

HiveScript

public HiveScript(Resource resource,
                  Map<?,?> args)

HiveScript

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

Parameters:
resource - script content.
args - script arguments.
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