object functions
- Alphabetic
- By Inheritance
- functions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
from_protobuf(data: Column, options: Map[String, String]): Column
Converts a binary column of Protobuf format into its corresponding catalyst value.
Converts a binary column of Protobuf format into its corresponding catalyst value. The Protobuf schema is read from schema registry configured in
options. The following options are supported and the first two options are required:-
schema.registry.subject: [Required] Subject for the schema in the registry. -
schema.registry.address: [Required] Schema registry address. -
schema.registry.protobuf.name: [Optional] Specifies Protobuf name explicitly. This is useful when the schema in registry contains multiple protobufs. By default, the first Protobuf defined in the schema is selected. This option allows selecting any other Protobuf included in the the schema. E.g. consider a sample schema registered as below:package com.example.protos; message Person { string name = 1; Location loc = 2; } message Location { string city = 1; int32 zipcode = 2; }Ifschema.registry.protobuf.nameis not set, the first protobufPersonis used. Ifschema.registry.protobuf.nameis set to"Location"(or its full name"com.example.protos.Location"),LocationProtobuf is used. Similarly any imported Protobuf can also be specified.
- data
the binary column.
- options
Options including required configuration for schema registry as mentioned above.
- Annotations
- @Experimental()
- Since
3.5.0 (DBR 14.2)
-
-
def
from_protobuf(data: Column, messageClassName: String, options: Map[String, String]): Column
Converts a binary column of Protobuf format into its corresponding catalyst value.
Converts a binary column of Protobuf format into its corresponding catalyst value.
messageClassNamepoints to Protobuf Java class. The jar containing Java class should be shaded. Specifically,com.google.protobuf.*should be shaded toorg.sparkproject.spark_protobuf.protobuf.*. https://github.com/rangadi/shaded-protobuf-classes is useful to create shaded jar from Protobuf files.- data
the binary column.
- messageClassName
The full name for Protobuf Java class. E.g.
com.example.protos.ExampleEvent. The jar with these classes needs to be shaded as described above.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
from_protobuf(data: Column, messageName: String, binaryFileDescriptorSet: Array[Byte]): Column
Converts a binary column of Protobuf format into its corresponding catalyst value.The Protobuf definition is provided through Protobuf
FileDescriptorSet.Converts a binary column of Protobuf format into its corresponding catalyst value.The Protobuf definition is provided through Protobuf
FileDescriptorSet.- data
the binary column.
- messageName
the protobuf MessageName to look for in the descriptor set.
- binaryFileDescriptorSet
Serialized Protobuf descriptor (
FileDescriptorSet). Typically contents of file created usingprotocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
from_protobuf(data: Column, messageClassName: String): Column
Converts a binary column of Protobuf format into its corresponding catalyst value.
Converts a binary column of Protobuf format into its corresponding catalyst value.
messageClassNamepoints to Protobuf Java class. The jar containing Java class should be shaded. Specifically,com.google.protobuf.*should be shaded toorg.sparkproject.spark_protobuf.protobuf.*. https://github.com/rangadi/shaded-protobuf-classes is useful to create shaded jar from Protobuf files.- data
the binary column.
- messageClassName
The full name for Protobuf Java class. E.g.
com.example.protos.ExampleEvent. The jar with these classes needs to be shaded as described above.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
from_protobuf(data: Column, messageName: String, descFilePath: String): Column
Converts a binary column of Protobuf format into its corresponding catalyst value.
Converts a binary column of Protobuf format into its corresponding catalyst value. The Protobuf definition is provided through Protobuf descriptor file.
- data
the binary column.
- messageName
the protobuf MessageName to look for in descriptor file.
- descFilePath
The Protobuf descriptor file. This file is usually created using
protocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
from_protobuf(data: Column, messageName: String, binaryFileDescriptorSet: Array[Byte], options: Map[String, String]): Column
Converts a binary column of Protobuf format into its corresponding catalyst value.The Protobuf definition is provided through Protobuf
FileDescriptorSet.Converts a binary column of Protobuf format into its corresponding catalyst value.The Protobuf definition is provided through Protobuf
FileDescriptorSet.- data
the binary column.
- messageName
the protobuf MessageName to look for in the descriptor set.
- binaryFileDescriptorSet
Serialized Protobuf descriptor (
FileDescriptorSet). Typically contents of file created usingprotocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
from_protobuf(data: Column, messageName: String, descFilePath: String, options: Map[String, String]): Column
Converts a binary column of Protobuf format into its corresponding catalyst value.
Converts a binary column of Protobuf format into its corresponding catalyst value. The Protobuf definition is provided through Protobuf descriptor file.
- data
the binary column.
- messageName
the protobuf message name to look for in descriptor file.
- descFilePath
The Protobuf descriptor file. This file is usually created using
protocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
to_protobuf(data: Column, options: Map[String, String]): Column
Converts a column into binary protobuf.
Converts a column into binary protobuf. The schema for the column should match Protobuf schema. The Protobuf schema is read from schema registry configured in
options. See documentation forfrom_protobuf()about description of schema registry options.- data
the binary column.
- options
Options including required configuration for schema registry as described in documentation for
from_protobuf().
- Annotations
- @Experimental()
- Since
3.5.0 (DBR 14.2)
-
def
to_protobuf(data: Column, messageClassName: String, options: Map[String, String]): Column
Converts a column into binary of protobuf format.
Converts a column into binary of protobuf format.
messageClassNamepoints to Protobuf Java class. The jar containing Java class should be shaded. Specifically,com.google.protobuf.*should be shaded toorg.sparkproject.spark_protobuf.protobuf.*. https://github.com/rangadi/shaded-protobuf-classes is useful to create shaded jar from Protobuf files.- data
the data column.
- messageClassName
The full name for Protobuf Java class. E.g.
com.example.protos.ExampleEvent. The jar with these classes needs to be shaded as described above.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
to_protobuf(data: Column, messageClassName: String): Column
Converts a column into binary of protobuf format.
Converts a column into binary of protobuf format.
messageClassNamepoints to Protobuf Java class. The jar containing Java class should be shaded. Specifically,com.google.protobuf.*should be shaded toorg.sparkproject.spark_protobuf.protobuf.*. https://github.com/rangadi/shaded-protobuf-classes is useful to create shaded jar from Protobuf files.- data
the data column.
- messageClassName
The full name for Protobuf Java class. E.g.
com.example.protos.ExampleEvent. The jar with these classes needs to be shaded as described above.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
to_protobuf(data: Column, messageName: String, binaryFileDescriptorSet: Array[Byte], options: Map[String, String]): Column
Converts a column into binary of protobuf format.The Protobuf definition is provided through Protobuf
FileDescriptorSet.Converts a column into binary of protobuf format.The Protobuf definition is provided through Protobuf
FileDescriptorSet.- data
the binary column.
- messageName
the protobuf MessageName to look for in the descriptor set.
- binaryFileDescriptorSet
Serialized Protobuf descriptor (
FileDescriptorSet). Typically contents of file created usingprotocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
to_protobuf(data: Column, messageName: String, descFilePath: String, options: Map[String, String]): Column
Converts a column into binary of protobuf format.
Converts a column into binary of protobuf format. The Protobuf definition is provided through Protobuf descriptor file.
- data
the data column.
- messageName
the protobuf MessageName to look for in descriptor file.
- descFilePath
The Protobuf descriptor file. This file is usually created using
protocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
to_protobuf(data: Column, messageName: String, binaryFileDescriptorSet: Array[Byte]): Column
Converts a column into binary of protobuf format.The Protobuf definition is provided through Protobuf
FileDescriptorSet.Converts a column into binary of protobuf format.The Protobuf definition is provided through Protobuf
FileDescriptorSet.- data
the binary column.
- messageName
the protobuf MessageName to look for in the descriptor set.
- binaryFileDescriptorSet
Serialized Protobuf descriptor (
FileDescriptorSet). Typically contents of file created usingprotocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
def
to_protobuf(data: Column, messageName: String, descFilePath: String): Column
Converts a column into binary of protobuf format.
Converts a column into binary of protobuf format. The Protobuf definition is provided through Protobuf descriptor file.
- data
the data column.
- messageName
the protobuf MessageName to look for in descriptor file.
- descFilePath
The Protobuf descriptor file. This file is usually created using
protocwith--descriptor_set_outand--include_importsoptions.
- Annotations
- @Experimental()
- Since
3.5.0
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated