public class UDFJson extends UDF
Constructor and Description |
---|
UDFJson() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.Text |
evaluate(String jsonString,
String pathString)
Extract json object from a json string based on json path specified, and
return json string of the extracted json object.
|
getRequiredFiles, getRequiredJars, getResolver, setResolver
public org.apache.hadoop.io.Text evaluate(String jsonString, String pathString)
jsonString
- the json string.pathString
- the json path expression.Copyright © 2021 The Apache Software Foundation. All rights reserved.