Class SbeUtil
- java.lang.Object
-
- org.deeplearning4j.ui.model.stats.impl.SbeUtil
-
public class SbeUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]
EMPTY_BYTES
static Charset
UTF8
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Serializable
fromBytesSerializable(byte[] bytes)
static int
length(byte[] bytes)
static int
length(byte[][] bytes)
static int
length(byte[][][] bytes)
static int
length(String str)
static int
length(String[] arr)
static byte[]
toBytes(boolean present, String str)
static byte[][]
toBytes(boolean present, String[] str)
static byte[][][]
toBytes(Map<String,String> map)
static byte[]
toBytesSerializable(Serializable serializable)
-
-
-
Field Detail
-
UTF8
public static final Charset UTF8
-
EMPTY_BYTES
public static final byte[] EMPTY_BYTES
-
-
Method Detail
-
length
public static int length(byte[] bytes)
-
length
public static int length(byte[][] bytes)
-
length
public static int length(byte[][][] bytes)
-
length
public static int length(String str)
-
length
public static int length(String[] arr)
-
toBytes
public static byte[] toBytes(boolean present, String str)
-
toBytes
public static byte[][] toBytes(boolean present, String[] str)
-
toBytesSerializable
public static byte[] toBytesSerializable(Serializable serializable)
-
fromBytesSerializable
public static Serializable fromBytesSerializable(byte[] bytes)
-
-