Sign in
apache
/
pig
/
refs/tags/release-0.17.0
/
.
/
test
/
e2e
/
pig
/
udfs
/
groovy
/
scriptingudf.groovy
blob: 6e488a1ac2353db378a19d897d7c91808edd31c5 [
file
] [
log
] [
blame
]
import
org
.
apache
.
pig
.
scripting
.
groovy
.
OutputSchemaFunction
;
class
GroovyUDFs
{
@OutputSchemaFunction
(
'squareSchema'
)
public
static
square
(
x
)
{
return
x
*
x
;
}
public
static
squareSchema
(
input
)
{
return
input
;
}
}