public static class EncoderHelpers.Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Object> |
copyToList(org.apache.spark.sql.catalyst.util.ArrayData arrayData,
org.apache.spark.sql.types.DataType type) |
static Instant |
maxTimestamp(java.lang.Iterable<BoundedWindow> windows)
The end of the only window (max timestamp).
|
static PaneInfo |
paneInfoFromBytes(byte[] bytes) |
static byte[] |
paneInfoToBytes(PaneInfo pane) |
static java.util.HashMap<java.lang.Object,java.lang.Object> |
toMap(org.apache.spark.sql.catalyst.util.ArrayData keys,
org.apache.spark.sql.catalyst.util.ArrayData values,
org.apache.spark.sql.types.DataType keyType,
org.apache.spark.sql.types.DataType valueType) |
static scala.collection.Seq<java.lang.Object> |
toSeq(org.apache.spark.sql.catalyst.util.ArrayData arrayData) |
static scala.collection.Seq<java.lang.Object> |
toSeq(java.util.Collection<java.lang.Object> col) |
static java.util.TreeMap<java.lang.Object,java.lang.Object> |
toTreeMap(org.apache.spark.sql.catalyst.util.ArrayData keys,
org.apache.spark.sql.catalyst.util.ArrayData values,
org.apache.spark.sql.types.DataType keyType,
org.apache.spark.sql.types.DataType valueType) |
public static PaneInfo paneInfoFromBytes(byte[] bytes)
public static byte[] paneInfoToBytes(PaneInfo pane)
public static Instant maxTimestamp(java.lang.Iterable<BoundedWindow> windows)
public static java.util.List<java.lang.Object> copyToList(org.apache.spark.sql.catalyst.util.ArrayData arrayData, org.apache.spark.sql.types.DataType type)
public static scala.collection.Seq<java.lang.Object> toSeq(org.apache.spark.sql.catalyst.util.ArrayData arrayData)
public static scala.collection.Seq<java.lang.Object> toSeq(java.util.Collection<java.lang.Object> col)
public static java.util.TreeMap<java.lang.Object,java.lang.Object> toTreeMap(org.apache.spark.sql.catalyst.util.ArrayData keys, org.apache.spark.sql.catalyst.util.ArrayData values, org.apache.spark.sql.types.DataType keyType, org.apache.spark.sql.types.DataType valueType)
public static java.util.HashMap<java.lang.Object,java.lang.Object> toMap(org.apache.spark.sql.catalyst.util.ArrayData keys, org.apache.spark.sql.catalyst.util.ArrayData values, org.apache.spark.sql.types.DataType keyType, org.apache.spark.sql.types.DataType valueType)