package xml
Type Members
-
case class
SchemaOfXml(child: Expression, options: Map[String, String]) extends UnaryExpression with CodegenFallback with QueryErrorsBase with Product with Serializable
A function infers schema of XML string.
A function infers schema of XML string.
- Annotations
- @ExpressionDescription()
-
class
UDFXPathUtil extends AnyRef
Utility class for all XPath UDFs.
Utility class for all XPath UDFs. Each UDF instance should keep an instance of this class.
This is based on Hive's UDFXPathUtil implementation.
-
case class
XPathBoolean(xml: Expression, path: Expression) extends XPathExtract with Predicate with Product with Serializable
- Annotations
- @ExpressionDescription()
-
case class
XPathDouble(xml: Expression, path: Expression) extends XPathExtract with Product with Serializable
- Annotations
- @ExpressionDescription()
-
abstract
class
XPathExtract extends BinaryExpression with ExpectsInputTypes with CodegenFallback with NullIntolerant
Base class for xpath_boolean, xpath_double, xpath_int, etc.
Base class for xpath_boolean, xpath_double, xpath_int, etc.
This is not the world's most efficient implementation due to type conversion, but works.
-
case class
XPathFloat(xml: Expression, path: Expression) extends XPathExtract with Product with Serializable
- Annotations
- @ExpressionDescription()
-
case class
XPathInt(xml: Expression, path: Expression) extends XPathExtract with Product with Serializable
- Annotations
- @ExpressionDescription()
-
case class
XPathList(xml: Expression, path: Expression) extends XPathExtract with Product with Serializable
- Annotations
- @ExpressionDescription()
-
case class
XPathLong(xml: Expression, path: Expression) extends XPathExtract with Product with Serializable
- Annotations
- @ExpressionDescription()
-
case class
XPathShort(xml: Expression, path: Expression) extends XPathExtract with Product with Serializable
- Annotations
- @ExpressionDescription()
-
case class
XPathString(xml: Expression, path: Expression) extends XPathExtract with Product with Serializable
- Annotations
- @ExpressionDescription()
-
case class
XmlToStructs(schema: DataType, options: Map[String, String], child: Expression, timeZoneId: Option[String] = None) extends UnaryExpression with TimeZoneAwareExpression with CodegenFallback with ExpectsInputTypes with NullIntolerant with QueryErrorsBase with Product with Serializable
Converts an XML input string to a StructType with the specified schema.
Converts an XML input string to a StructType with the specified schema. It is assumed that the XML input string constitutes a single record; so the rowTag option will be not applicable.
- Annotations
- @ExpressionDescription()