public abstract class SQLImplicits extends Object implements LowPrioritySQLImplicits
Dataset
s.
Modifier and Type | Class and Description |
---|---|
class |
SQLImplicits.StringToColumn
Converts $"col name" into a
Column . |
Constructor and Description |
---|
SQLImplicits() |
Modifier and Type | Method and Description |
---|---|
<T> DatasetHolder<T> |
localSeqToDatasetHolder(scala.collection.Seq<T> s,
Encoder<T> evidence$8)
Creates a
Dataset from a local Seq. |
Encoder<boolean[]> |
newBooleanArrayEncoder() |
Encoder<Object> |
newBooleanEncoder() |
Encoder<scala.collection.Seq<Object>> |
newBooleanSeqEncoder()
Deprecated.
use
newSequenceEncoder |
Encoder<Boolean> |
newBoxedBooleanEncoder() |
Encoder<Byte> |
newBoxedByteEncoder() |
Encoder<Double> |
newBoxedDoubleEncoder() |
Encoder<Float> |
newBoxedFloatEncoder() |
Encoder<Integer> |
newBoxedIntEncoder() |
Encoder<Long> |
newBoxedLongEncoder() |
Encoder<Short> |
newBoxedShortEncoder() |
Encoder<byte[]> |
newByteArrayEncoder() |
Encoder<Object> |
newByteEncoder() |
Encoder<scala.collection.Seq<Object>> |
newByteSeqEncoder()
Deprecated.
use
newSequenceEncoder |
Encoder<java.sql.Date> |
newDateEncoder() |
Encoder<double[]> |
newDoubleArrayEncoder() |
Encoder<Object> |
newDoubleEncoder() |
Encoder<scala.collection.Seq<Object>> |
newDoubleSeqEncoder()
Deprecated.
use
newSequenceEncoder |
Encoder<java.time.Duration> |
newDurationEncoder() |
Encoder<float[]> |
newFloatArrayEncoder() |
Encoder<Object> |
newFloatEncoder() |
Encoder<scala.collection.Seq<Object>> |
newFloatSeqEncoder()
Deprecated.
use
newSequenceEncoder |
Encoder<java.time.Instant> |
newInstantEncoder() |
Encoder<int[]> |
newIntArrayEncoder() |
Encoder<Object> |
newIntEncoder() |
Encoder<scala.collection.Seq<Object>> |
newIntSeqEncoder()
Deprecated.
use
newSequenceEncoder |
Encoder<java.math.BigDecimal> |
newJavaDecimalEncoder() |
<A extends Enum<?>> |
newJavaEnumEncoder(scala.reflect.api.TypeTags.TypeTag<A> evidence$1) |
Encoder<java.time.LocalDate> |
newLocalDateEncoder() |
Encoder<long[]> |
newLongArrayEncoder() |
Encoder<Object> |
newLongEncoder() |
Encoder<scala.collection.Seq<Object>> |
newLongSeqEncoder()
Deprecated.
use
newSequenceEncoder |
<T extends scala.collection.Map<?,?>> |
newMapEncoder(scala.reflect.api.TypeTags.TypeTag<T> evidence$4) |
Encoder<java.time.Period> |
newPeriodEncoder() |
<A extends scala.Product> |
newProductArrayEncoder(scala.reflect.api.TypeTags.TypeTag<A> evidence$6) |
<A extends scala.Product> |
newProductSeqEncoder(scala.reflect.api.TypeTags.TypeTag<A> evidence$2)
Deprecated.
use
newSequenceEncoder |
Encoder<scala.math.BigDecimal> |
newScalaDecimalEncoder() |
<T extends scala.collection.Seq<?>> |
newSequenceEncoder(scala.reflect.api.TypeTags.TypeTag<T> evidence$3) |
<T extends scala.collection.immutable.Set<?>> |
newSetEncoder(scala.reflect.api.TypeTags.TypeTag<T> evidence$5)
Notice that we serialize
Set to Catalyst array. |
Encoder<short[]> |
newShortArrayEncoder() |
Encoder<Object> |
newShortEncoder() |
Encoder<scala.collection.Seq<Object>> |
newShortSeqEncoder()
Deprecated.
use
newSequenceEncoder |
Encoder<String[]> |
newStringArrayEncoder() |
Encoder<String> |
newStringEncoder() |
Encoder<scala.collection.Seq<String>> |
newStringSeqEncoder()
Deprecated.
use
newSequenceEncoder |
Encoder<java.sql.Timestamp> |
newTimeStampEncoder() |
<T> DatasetHolder<T> |
rddToDatasetHolder(RDD<T> rdd,
Encoder<T> evidence$7)
Creates a
Dataset from an RDD. |
ColumnName |
symbolToColumn(scala.Symbol s)
An implicit conversion that turns a Scala
Symbol into a Column . |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newProductEncoder
public <T> DatasetHolder<T> localSeqToDatasetHolder(scala.collection.Seq<T> s, Encoder<T> evidence$8)
Dataset
from a local Seq.s
- (undocumented)evidence$8
- (undocumented)public Encoder<boolean[]> newBooleanArrayEncoder()
public Encoder<Object> newBooleanEncoder()
public Encoder<scala.collection.Seq<Object>> newBooleanSeqEncoder()
newSequenceEncoder
public Encoder<Boolean> newBoxedBooleanEncoder()
public Encoder<Byte> newBoxedByteEncoder()
public Encoder<Double> newBoxedDoubleEncoder()
public Encoder<Float> newBoxedFloatEncoder()
public Encoder<Integer> newBoxedIntEncoder()
public Encoder<Long> newBoxedLongEncoder()
public Encoder<Short> newBoxedShortEncoder()
public Encoder<byte[]> newByteArrayEncoder()
public Encoder<Object> newByteEncoder()
public Encoder<scala.collection.Seq<Object>> newByteSeqEncoder()
newSequenceEncoder
public Encoder<java.sql.Date> newDateEncoder()
public Encoder<double[]> newDoubleArrayEncoder()
public Encoder<Object> newDoubleEncoder()
public Encoder<scala.collection.Seq<Object>> newDoubleSeqEncoder()
newSequenceEncoder
public Encoder<java.time.Duration> newDurationEncoder()
public Encoder<float[]> newFloatArrayEncoder()
public Encoder<Object> newFloatEncoder()
public Encoder<scala.collection.Seq<Object>> newFloatSeqEncoder()
newSequenceEncoder
public Encoder<java.time.Instant> newInstantEncoder()
public Encoder<int[]> newIntArrayEncoder()
public Encoder<Object> newIntEncoder()
public Encoder<scala.collection.Seq<Object>> newIntSeqEncoder()
newSequenceEncoder
public Encoder<java.math.BigDecimal> newJavaDecimalEncoder()
public <A extends Enum<?>> Encoder<A> newJavaEnumEncoder(scala.reflect.api.TypeTags.TypeTag<A> evidence$1)
public Encoder<java.time.LocalDate> newLocalDateEncoder()
public Encoder<long[]> newLongArrayEncoder()
public Encoder<Object> newLongEncoder()
public Encoder<scala.collection.Seq<Object>> newLongSeqEncoder()
newSequenceEncoder
public <T extends scala.collection.Map<?,?>> Encoder<T> newMapEncoder(scala.reflect.api.TypeTags.TypeTag<T> evidence$4)
public Encoder<java.time.Period> newPeriodEncoder()
public <A extends scala.Product> Encoder<Object> newProductArrayEncoder(scala.reflect.api.TypeTags.TypeTag<A> evidence$6)
public <A extends scala.Product> Encoder<scala.collection.Seq<A>> newProductSeqEncoder(scala.reflect.api.TypeTags.TypeTag<A> evidence$2)
newSequenceEncoder
evidence$2
- (undocumented)public Encoder<scala.math.BigDecimal> newScalaDecimalEncoder()
public <T extends scala.collection.Seq<?>> Encoder<T> newSequenceEncoder(scala.reflect.api.TypeTags.TypeTag<T> evidence$3)
public <T extends scala.collection.immutable.Set<?>> Encoder<T> newSetEncoder(scala.reflect.api.TypeTags.TypeTag<T> evidence$5)
Set
to Catalyst array. The set property is only kept when
manipulating the domain objects. The serialization format doesn't keep the set property.
When we have a Catalyst array which contains duplicated elements and convert it to
Dataset[Set[T}
by using the encoder, the elements will be de-duplicated.
evidence$5
- (undocumented)public Encoder<short[]> newShortArrayEncoder()
public Encoder<Object> newShortEncoder()
public Encoder<scala.collection.Seq<Object>> newShortSeqEncoder()
newSequenceEncoder
public Encoder<String[]> newStringArrayEncoder()
public Encoder<String> newStringEncoder()
public Encoder<scala.collection.Seq<String>> newStringSeqEncoder()
newSequenceEncoder
public Encoder<java.sql.Timestamp> newTimeStampEncoder()
public <T> DatasetHolder<T> rddToDatasetHolder(RDD<T> rdd, Encoder<T> evidence$7)
Dataset
from an RDD.
rdd
- (undocumented)evidence$7
- (undocumented)public ColumnName symbolToColumn(scala.Symbol s)
Symbol
into a Column
.s
- (undocumented)