Package org.rumbledb.items.structured
Class JSoundDataFrame
java.lang.Object
org.rumbledb.items.structured.JSoundDataFrame
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJSoundDataFrame
(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame) JSoundDataFrame
(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame, ItemType itemType) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsVariantType
(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame) long
count()
void
distinct()
static JSoundDataFrame
evaluateSQL
(String sqlQuery, ItemType outputType) org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getKeys()
getSQLColumnProjection
(boolean trailingComma) boolean
boolean
org.apache.spark.api.java.JavaRDD<org.apache.spark.sql.Row>
javaRDD()
repartition
(int n) List<org.apache.spark.sql.Row>
take
(int n) union
(JSoundDataFrame other)
-
Constructor Details
-
JSoundDataFrame
public JSoundDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame, ItemType itemType) -
JSoundDataFrame
public JSoundDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataFrame)
-
-
Method Details
-
emptyDataFrame
-
getDataFrame
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDataFrame() -
javaRDD
public org.apache.spark.api.java.JavaRDD<org.apache.spark.sql.Row> javaRDD() -
count
public long count() -
getItemType
-
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)
-