Class FlattenerJsonProvider
- java.lang.Object
-
- org.apache.druid.java.util.common.parsers.FlattenerJsonProvider
-
- All Implemented Interfaces:
com.jayway.jsonpath.spi.json.JsonProvider
public abstract class FlattenerJsonProvider extends Object implements com.jayway.jsonpath.spi.json.JsonProvider
-
-
Constructor Summary
Constructors Constructor Description FlattenerJsonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectcreateArray()ObjectcreateMap()ObjectgetArrayIndex(Object o, int i)ObjectgetArrayIndex(Object o, int i, boolean b)Deprecated.intlength(Object o)Objectparse(InputStream inputStream, String s)Objectparse(String s)voidremoveProperty(Object o, Object o1)voidsetArrayIndex(Object o, int i, Object o1)voidsetProperty(Object o, Object o1, Object o2)Iterable<?>toIterable(Object o)StringtoJson(Object o)Objectunwrap(Object o)
-
-
-
Method Detail
-
createArray
public Object createArray()
- Specified by:
createArrayin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
createMap
public Object createMap()
- Specified by:
createMapin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
length
public int length(Object o)
- Specified by:
lengthin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
toIterable
public Iterable<?> toIterable(Object o)
- Specified by:
toIterablein interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
getArrayIndex
public Object getArrayIndex(Object o, int i)
- Specified by:
getArrayIndexin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
setArrayIndex
public void setArrayIndex(Object o, int i, Object o1)
- Specified by:
setArrayIndexin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
setProperty
public void setProperty(Object o, Object o1, Object o2)
- Specified by:
setPropertyin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
removeProperty
public void removeProperty(Object o, Object o1)
- Specified by:
removePropertyin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
getArrayIndex
@Deprecated public Object getArrayIndex(Object o, int i, boolean b)
Deprecated.- Specified by:
getArrayIndexin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
parse
public Object parse(String s) throws com.jayway.jsonpath.InvalidJsonException
- Specified by:
parsein interfacecom.jayway.jsonpath.spi.json.JsonProvider- Throws:
com.jayway.jsonpath.InvalidJsonException
-
parse
public Object parse(InputStream inputStream, String s) throws com.jayway.jsonpath.InvalidJsonException
- Specified by:
parsein interfacecom.jayway.jsonpath.spi.json.JsonProvider- Throws:
com.jayway.jsonpath.InvalidJsonException
-
toJson
public String toJson(Object o)
- Specified by:
toJsonin interfacecom.jayway.jsonpath.spi.json.JsonProvider
-
-