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 JSONPathFieldSpec
createJqField(String name, String expr)
static JSONPathFieldSpec
createNestedField(String name, String expr)
static JSONPathFieldSpec
createRootField(String name)
static JSONPathFieldSpec
createTreeField(String name, List<String> nodes)
boolean
equals(Object o)
static JSONPathFieldSpec
fromString(String name)
static String
getCompilePath(String expr)
String
getExpr()
String
getName()
List<String>
getNodes()
JSONPathFieldType
getType()
int
hashCode()
String
toString()
-
-
-
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)
-
-