Class Collection
java.lang.Object
org.rumbledb.runtime.update.primitives.Collection
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollection(String collectionPath) Constructor for Collection using physical path.Collection(Mode mode, String collectionPath) Constructor for Collection using logical path. -
Method Summary
Modifier and TypeMethodDescriptiongetMode()voidinsertUnordered(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> contents) Inserts the given contents into the collection according to its mode.
-
Constructor Details
-
Collection
Constructor for Collection using logical path.- Parameters:
mode- The storage mode of the collection (HIVE, DELTA, etc.)collectionPath- The logical path of the collection
-
Collection
Constructor for Collection using physical path.- Parameters:
collectionPath- The physical path of the collection
-
-
Method Details
-
getMode
- Returns:
- The storage mode of the collection
-
getLogicalName
- Returns:
- The logical name of the collection
-
getPhysicalName
- Returns:
- The physical name of the collection
-
insertUnordered
public void insertUnordered(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> contents) Inserts the given contents into the collection according to its mode. This method does not handle ordering of the inserted contents.- Parameters:
contents- The dataset to insert into the collection
-