@Experimental(value=SCHEMAS) public class JsonUtils extends java.lang.Object
Row
.Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
static SimpleFunction<byte[],Row> |
getJsonBytesToRowFunction(Schema beamSchema)
Returns a
SimpleFunction mapping JSON byte[] arrays to Beam Row s. |
static SimpleFunction<java.lang.String,Row> |
getJsonStringToRowFunction(Schema beamSchema)
|
static SimpleFunction<Row,byte[]> |
getRowToJsonBytesFunction(Schema beamSchema)
Returns a
SimpleFunction mapping Beam Row s to JSON byte[] arrays. |
static SimpleFunction<Row,java.lang.String> |
getRowToJsonStringsFunction(Schema beamSchema)
|
public static SimpleFunction<byte[],Row> getJsonBytesToRowFunction(Schema beamSchema)
SimpleFunction
mapping JSON byte[] arrays to Beam Row
s.public static SimpleFunction<java.lang.String,Row> getJsonStringToRowFunction(Schema beamSchema)
public static SimpleFunction<Row,byte[]> getRowToJsonBytesFunction(Schema beamSchema)
SimpleFunction
mapping Beam Row
s to JSON byte[] arrays.public static SimpleFunction<Row,java.lang.String> getRowToJsonStringsFunction(Schema beamSchema)