Class CreateCollectionPrimitive
java.lang.Object
org.rumbledb.runtime.update.primitives.CreateCollectionPrimitive
- All Implemented Interfaces:
UpdatePrimitive
-
Constructor Summary
ConstructorsConstructorDescriptionCreateCollectionPrimitive(String collectionName, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> contents, boolean isTable, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()voidvoidorg.apache.spark.sql.Dataset<org.apache.spark.sql.Row>booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rumbledb.runtime.update.primitives.UpdatePrimitive
arrayIndexingApplyDelta, arrayIndexingUpdateSchemaDelta, getCollectionName, getContent, getContentList, getIntSelector, getRowOrder, getRowOrderRangeBase, getRowOrderRangeMax, getSelector, getTarget, getTargetDataFrame, isDeleteArray, isDeleteObject, isDeleteTuple, isEditTuple, isInsertAfterIntoCollection, isInsertArray, isInsertBeforeIntoCollection, isInsertFirstIntoCollection, isInsertLastIntoCollection, isInsertObject, isInsertTuple, isRenameObject, isReplaceArray, isReplaceObject, isTruncateCollection, updatesSchemaDelta
-
Constructor Details
-
CreateCollectionPrimitive
public CreateCollectionPrimitive(String collectionName, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> contents, boolean isTable, ExceptionMetadata metadata)
-
-
Method Details
-
isCreateCollection
public boolean isCreateCollection()- Specified by:
isCreateCollectionin interfaceUpdatePrimitive
-
getCollectionPath
- Specified by:
getCollectionPathin interfaceUpdatePrimitive
-
hasSelector
public boolean hasSelector()- Specified by:
hasSelectorin interfaceUpdatePrimitive
-
getContentDataFrame
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getContentDataFrame()- Specified by:
getContentDataFramein interfaceUpdatePrimitive
-
apply
public void apply()- Specified by:
applyin interfaceUpdatePrimitive
-
applyItem
public void applyItem()- Specified by:
applyItemin interfaceUpdatePrimitive
-
applyDelta
public void applyDelta()- Specified by:
applyDeltain interfaceUpdatePrimitive
-