Package io.hstream
Class HRecord
- java.lang.Object
-
- io.hstream.HRecord
-
public class HRecord extends Object
A data structure like json object.
-
-
Constructor Summary
Constructors Constructor Description HRecord(com.google.protobuf.Struct delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String key)
HRecord
filterWithKeys(Predicate<String> p)
boolean
getBoolean(String name)
com.google.protobuf.Struct
getDelegate()
double
getDouble(String name)
HArray
getHArray(String name)
HRecord
getHRecord(String name)
int
getInt(String name)
Set<String>
getKeySet()
long
getLong(String name)
String
getString(String name)
static HRecordBuilder
newBuilder()
byte[]
toByteArray()
com.google.protobuf.ByteString
toByteString()
String
toCompactJsonString()
String
toJsonString()
String
toString()
-
-
-
Method Detail
-
newBuilder
public static HRecordBuilder newBuilder()
-
getDelegate
public com.google.protobuf.Struct getDelegate()
-
toJsonString
public String toJsonString()
-
toCompactJsonString
public String toCompactJsonString()
-
contains
public boolean contains(String key)
-
getBoolean
public boolean getBoolean(String name)
-
getInt
public int getInt(String name)
-
getLong
public long getLong(String name)
-
getDouble
public double getDouble(String name)
-
toByteString
public com.google.protobuf.ByteString toByteString()
-
toByteArray
public byte[] toByteArray()
-
-