public class PigScript
extends java.lang.Object
| Constructor and Description |
|---|
PigScript(org.springframework.core.io.Resource resource)
Constructs a new
PigScript instance from the given
resource. |
PigScript(org.springframework.core.io.Resource resource,
java.util.Map<?,?> args)
Constructs a new
PigScript instance. |
PigScript(org.springframework.core.io.Resource resource,
java.util.Properties args)
Constructs a new
PigScript instance. |
| Modifier and Type | Method and Description |
|---|---|
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() |
public PigScript(org.springframework.core.io.Resource resource)
PigScript instance from the given
resource.resource - script resource.public PigScript(org.springframework.core.io.Resource resource,
java.util.Properties args)
PigScript instance. Both the script
content and its parameters are supplied.resource - script content.args - script arguments.public PigScript(org.springframework.core.io.Resource resource,
java.util.Map<?,?> args)
PigScript instance.resource - resourceargs - argumentspublic org.springframework.core.io.Resource getResource()
public java.util.Map<java.lang.String,java.lang.String> getArguments()
public java.lang.String toString()
toString in class java.lang.Object