Class JSONPathFieldSpec
- java.lang.Object
-
- org.apache.druid.java.util.common.parsers.JSONPathFieldSpec
-
public class JSONPathFieldSpec extends Object
-
-
Constructor Summary
Constructors Constructor Description JSONPathFieldSpec(JSONPathFieldType type, String name, String expr)JSONPathFieldSpec(JSONPathFieldType type, String name, String expr, List<String> nodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JSONPathFieldSpeccreateJqField(String name, String expr)static JSONPathFieldSpeccreateNestedField(String name, String expr)static JSONPathFieldSpeccreateRootField(String name)static JSONPathFieldSpeccreateTreeField(String name, List<String> nodes)booleanequals(Object o)static JSONPathFieldSpecfromString(String name)static StringgetCompilePath(String expr)StringgetExpr()StringgetName()List<String>getNodes()JSONPathFieldTypegetType()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
JSONPathFieldSpec
public JSONPathFieldSpec(JSONPathFieldType type, String name, String expr, List<String> nodes)
-
JSONPathFieldSpec
public JSONPathFieldSpec(JSONPathFieldType type, String name, String expr)
-
-
Method Detail
-
getType
public JSONPathFieldType getType()
-
getName
public String getName()
-
getExpr
public String getExpr()
-
fromString
public static JSONPathFieldSpec fromString(String name)
-
createNestedField
public static JSONPathFieldSpec createNestedField(String name, String expr)
-
createJqField
public static JSONPathFieldSpec createJqField(String name, String expr)
-
createRootField
public static JSONPathFieldSpec createRootField(String name)
-
createTreeField
public static JSONPathFieldSpec createTreeField(String name, List<String> nodes)
-
-