Package org.rumbledb.items.structured
Class HomogeneousItemDataFrame
java.lang.Object
org.rumbledb.items.structured.HomogeneousItemDataFrame
- All Implemented Interfaces:
Serializable,RuntimeDataFrame<Item>
public class HomogeneousItemDataFrame
extends Object
implements RuntimeDataFrame<Item>, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHomogeneousItemDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame) HomogeneousItemDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame, ItemType itemType) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsVariantType(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame) longcount()voiddistinct()static HomogeneousItemDataFrameevaluateSQL(String sqlQuery, ItemType outputType) getKeys()getSQLColumnProjection(boolean trailingComma) booleanbooleanrepartition(int n) List<org.apache.spark.sql.Row>take(int n) org.apache.spark.api.java.JavaRDD<Item>toRDD(ExceptionMetadata metadata) Converts this JSONiq DataFrame to its logical item representation.union(HomogeneousItemDataFrame other) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rumbledb.runtime.dataframe.RuntimeDataFrame
getDataFrame, toList
-
Constructor Details
-
HomogeneousItemDataFrame
public HomogeneousItemDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame, ItemType itemType) -
HomogeneousItemDataFrame
public HomogeneousItemDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame)
-
-
Method Details
-
emptyDataFrame
-
toRDD
Converts this JSONiq DataFrame to its logical item representation.- Specified by:
toRDDin interfaceRuntimeDataFrame<Item>- Parameters:
metadata- query metadata used if a row cannot be decoded- Returns:
- an RDD containing the represented items
-
count
public long count() -
getKeys
-
getSQLColumnProjection
-
createOrReplaceTempView
-
evaluateSQL
-
isEmptySequence
public boolean isEmptySequence() -
getExactlyOneItem
-
distinct
-
union
-
hasKey
-
take
-
repartition
-
getColumns
- Returns:
- list of FLWOR columns in the schema
-
containsVariantType
public static boolean containsVariantType(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame)
-