Packages

final class SqlCommand extends GeneratedMessage with SqlCommandOrBuilder

A SQL Command is used to trigger the eager evaluation of SQL commands in Spark.

When the SQL provide as part of the message is a command it will be immediately evaluated
and the result will be collected and returned as part of a LocalRelation. If the result is
not a command, the operation will simply return a SQL Relation. This allows the client to be
almost oblivious to the server-side behavior.

Protobuf type spark.connect.SqlCommand

Linear Supertypes
SqlCommandOrBuilder, GeneratedMessage, Serializable, AbstractMessage, Message, MessageOrBuilder, AbstractMessageLite[MessageType, BuilderType], MessageLite, MessageLiteOrBuilder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SqlCommand
  2. SqlCommandOrBuilder
  3. GeneratedMessage
  4. Serializable
  5. AbstractMessage
  6. Message
  7. MessageOrBuilder
  8. AbstractMessageLite
  9. MessageLite
  10. MessageLiteOrBuilder
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(obj: AnyRef): Boolean
    Definition Classes
    SqlCommand → AbstractMessage → Message → AnyRef → Any
    Annotations
    @Override()
  8. def findInitializationErrors(): List[String]
    Definition Classes
    AbstractMessage → MessageOrBuilder
  9. def getAllFields(): Map[FieldDescriptor, AnyRef]
    Definition Classes
    GeneratedMessage → MessageOrBuilder
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def getDefaultInstanceForType(): SqlCommand
    Definition Classes
    SqlCommand → MessageOrBuilder → MessageLiteOrBuilder
    Annotations
    @Override()
  12. def getDescriptorForType(): Descriptor
    Definition Classes
    GeneratedMessage → MessageOrBuilder
  13. def getField(field: FieldDescriptor): AnyRef
    Definition Classes
    GeneratedMessage → MessageOrBuilder
  14. def getInitializationErrorString(): String
    Definition Classes
    AbstractMessage → MessageOrBuilder
  15. def getInput(): Relation

    (Optional) The relation that this SQL command will be built on.
    

    (Optional) The relation that this SQL command will be built on.
    

    .spark.connect.Relation input = 6;

    returns

    The input.

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override()
  16. def getInputOrBuilder(): RelationOrBuilder

    (Optional) The relation that this SQL command will be built on.
    

    (Optional) The relation that this SQL command will be built on.
    

    .spark.connect.Relation input = 6;

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override()
  17. def getOneofFieldDescriptor(oneof: OneofDescriptor): FieldDescriptor
    Definition Classes
    GeneratedMessage → AbstractMessage → MessageOrBuilder
  18. def getParserForType(): Parser[SqlCommand]
    Definition Classes
    SqlCommand → GeneratedMessage → Message → MessageLite
    Annotations
    @Override()
  19. def getRepeatedField(field: FieldDescriptor, index: Int): AnyRef
    Definition Classes
    GeneratedMessage → MessageOrBuilder
  20. def getRepeatedFieldCount(field: FieldDescriptor): Int
    Definition Classes
    GeneratedMessage → MessageOrBuilder
  21. def getSerializedSize(): Int
    Definition Classes
    SqlCommand → GeneratedMessage → AbstractMessage → MessageLite
    Annotations
    @Override()
  22. def getUnknownFields(): UnknownFieldSet
    Definition Classes
    GeneratedMessage → MessageOrBuilder
  23. def hasField(field: FieldDescriptor): Boolean
    Definition Classes
    GeneratedMessage → MessageOrBuilder
  24. def hasInput(): Boolean

    (Optional) The relation that this SQL command will be built on.
    

    (Optional) The relation that this SQL command will be built on.
    

    .spark.connect.Relation input = 6;

    returns

    Whether the input field is set.

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override()
  25. def hasOneof(oneof: OneofDescriptor): Boolean
    Definition Classes
    GeneratedMessage → AbstractMessage → MessageOrBuilder
  26. def hashCode(): Int
    Definition Classes
    SqlCommand → AbstractMessage → Message → AnyRef → Any
    Annotations
    @Override()
  27. def internalGetFieldAccessorTable(): FieldAccessorTable
    Attributes
    protected[proto]
    Definition Classes
    SqlCommand → GeneratedMessage
    Annotations
    @Override()
  28. def internalGetMapFieldReflection(number: Int): MapFieldReflectionAccessor
    Attributes
    protected[proto]
    Definition Classes
    SqlCommand → GeneratedMessage
    Annotations
    @SuppressWarnings() @Override()
  29. final def isInitialized(): Boolean
    Definition Classes
    SqlCommand → GeneratedMessage → AbstractMessage → MessageLiteOrBuilder
    Annotations
    @Override()
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def newBuilderForType(parent: BuilderParent): Builder
    Attributes
    protected[proto]
    Definition Classes
    SqlCommand → AbstractMessage
    Annotations
    @Override()
  33. def newBuilderForType(): Builder
    Definition Classes
    SqlCommand → Message → MessageLite
    Annotations
    @Override()
  34. def newInstance(unused: UnusedPrivateParameter): AnyRef
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessage
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  37. def parseUnknownField(input: CodedInputStream, unknownFields: Builder, extensionRegistry: ExtensionRegistryLite, tag: Int): Boolean
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessage
    Annotations
    @throws(classOf[java.io.IOException])
  38. def parseUnknownFieldProto3(input: CodedInputStream, unknownFields: Builder, extensionRegistry: ExtensionRegistryLite, tag: Int): Boolean
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessage
    Annotations
    @throws(classOf[java.io.IOException])
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toBuilder(): Builder
    Definition Classes
    SqlCommand → Message → MessageLite
    Annotations
    @Override()
  41. def toByteArray(): Array[Byte]
    Definition Classes
    AbstractMessageLite → MessageLite
  42. def toByteString(): ByteString
    Definition Classes
    AbstractMessageLite → MessageLite
  43. final def toString(): String
    Definition Classes
    AbstractMessage → Message → AnyRef → Any
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    AbstractMessageLite → MessageLite
    Annotations
    @throws(classOf[java.io.IOException])
  48. def writeReplace(): AnyRef
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessage
    Annotations
    @throws(classOf[java.io.ObjectStreamException])
  49. def writeTo(output: CodedOutputStream): Unit
    Definition Classes
    SqlCommand → GeneratedMessage → AbstractMessage → MessageLite
    Annotations
    @Override()
  50. def writeTo(output: OutputStream): Unit
    Definition Classes
    AbstractMessageLite → MessageLite
    Annotations
    @throws(classOf[java.io.IOException])

Deprecated Value Members

  1. def containsArgs(key: String): Boolean

    (Optional) A map of parameter names to literal expressions.
    

    (Optional) A map of parameter names to literal expressions.
    

    map<string, .spark.connect.Expression.Literal> args = 2 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  2. def containsNamedArguments(key: String): Boolean

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    map<string, .spark.connect.Expression> named_arguments = 4 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  3. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  4. def getArgs(): Map[String, Literal]

    Use #getArgsMap() instead.

    Use #getArgsMap() instead.

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  5. def getArgsCount(): Int

    (Optional) A map of parameter names to literal expressions.
    

    (Optional) A map of parameter names to literal expressions.
    

    map<string, .spark.connect.Expression.Literal> args = 2 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Deprecated
    Deprecated
  6. def getArgsMap(): Map[String, Literal]

    (Optional) A map of parameter names to literal expressions.
    

    (Optional) A map of parameter names to literal expressions.
    

    map<string, .spark.connect.Expression.Literal> args = 2 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  7. def getArgsOrDefault(key: String, defaultValue: Literal): Literal

    (Optional) A map of parameter names to literal expressions.
    

    (Optional) A map of parameter names to literal expressions.
    

    map<string, .spark.connect.Expression.Literal> args = 2 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  8. def getArgsOrThrow(key: String): Literal

    (Optional) A map of parameter names to literal expressions.
    

    (Optional) A map of parameter names to literal expressions.
    

    map<string, .spark.connect.Expression.Literal> args = 2 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  9. def getNamedArguments(): Map[String, Expression]

    Use #getNamedArgumentsMap() instead.

    Use #getNamedArgumentsMap() instead.

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  10. def getNamedArgumentsCount(): Int

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    map<string, .spark.connect.Expression> named_arguments = 4 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Deprecated
    Deprecated
  11. def getNamedArgumentsMap(): Map[String, Expression]

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    map<string, .spark.connect.Expression> named_arguments = 4 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  12. def getNamedArgumentsOrDefault(key: String, defaultValue: Expression): Expression

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    map<string, .spark.connect.Expression> named_arguments = 4 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  13. def getNamedArgumentsOrThrow(key: String): Expression

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    (Optional) A map of parameter names to expressions.
    It cannot coexist with `pos_arguments`.
    

    map<string, .spark.connect.Expression> named_arguments = 4 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  14. def getPosArgs(index: Int): Literal

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    repeated .spark.connect.Expression.Literal pos_args = 3 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  15. def getPosArgsCount(): Int

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    repeated .spark.connect.Expression.Literal pos_args = 3 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  16. def getPosArgsList(): List[Literal]

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    repeated .spark.connect.Expression.Literal pos_args = 3 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  17. def getPosArgsOrBuilder(index: Int): LiteralOrBuilder

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    repeated .spark.connect.Expression.Literal pos_args = 3 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  18. def getPosArgsOrBuilderList(): List[_ <: LiteralOrBuilder]

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    (Optional) A sequence of literal expressions for positional parameters in the SQL query text.
    

    repeated .spark.connect.Expression.Literal pos_args = 3 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  19. def getPosArguments(index: Int): Expression

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    repeated .spark.connect.Expression pos_arguments = 5 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  20. def getPosArgumentsCount(): Int

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    repeated .spark.connect.Expression pos_arguments = 5 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  21. def getPosArgumentsList(): List[Expression]

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    repeated .spark.connect.Expression pos_arguments = 5 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  22. def getPosArgumentsOrBuilder(index: Int): ExpressionOrBuilder

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    repeated .spark.connect.Expression pos_arguments = 5 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  23. def getPosArgumentsOrBuilderList(): List[_ <: ExpressionOrBuilder]

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    (Optional) A sequence of expressions for positional parameters in the SQL query text.
    It cannot coexist with `named_arguments`.
    

    repeated .spark.connect.Expression pos_arguments = 5 [deprecated = true];

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  24. def getSql(): String

    (Required) SQL Query.
    

    (Required) SQL Query.
    

    string sql = 1 [deprecated = true];

    returns

    The sql.

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  25. def getSqlBytes(): ByteString

    (Required) SQL Query.
    

    (Required) SQL Query.
    

    string sql = 1 [deprecated = true];

    returns

    The bytes for sql.

    Definition Classes
    SqlCommandSqlCommandOrBuilder
    Annotations
    @Override() @Deprecated
    Deprecated
  26. def internalGetMapField(fieldNumber: Int): MapField[_ <: AnyRef, _ <: AnyRef]
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessage
    Annotations
    @Deprecated
    Deprecated
  27. def mergeFromAndMakeImmutableInternal(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): Unit
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessage
    Annotations
    @throws(classOf[com.google.protobuf.InvalidProtocolBufferException]) @Deprecated
    Deprecated

Inherited from SqlCommandOrBuilder

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from AbstractMessage

Inherited from Message

Inherited from MessageOrBuilder

Inherited from AbstractMessageLite[MessageType, BuilderType]

Inherited from MessageLite

Inherited from MessageLiteOrBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped