Spring for Apache Hadoop

org.springframework.data.hadoop.hive
Class HiveScript

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

public class HiveScript
extends java.lang.Object

Holder class for a Hive script.

Author:
Costin Leau

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

Constructor Detail

HiveScript

public HiveScript(org.springframework.core.io.Resource resource)
Constructs a new HiveScript instance from the given resource.

Parameters:
resource - script resource.

HiveScript

public HiveScript(org.springframework.core.io.Resource resource,
                  java.util.Map<?,?> args)

HiveScript

public HiveScript(org.springframework.core.io.Resource resource,
                  java.util.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 org.springframework.core.io.Resource getResource()
Returns the script resource.

Returns:
Returns the resource

getArguments

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

Returns:
Returns the arguments for this script.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Spring for Apache Hadoop