Package org.apache.iceberg.spark
Class SparkWriteConf
java.lang.Object
org.apache.iceberg.spark.SparkWriteConf
A class for common Iceberg configs for Spark writes.
If a config is set at multiple levels, the following order of precedence is used (top to bottom):
- Write options
- Session configuration
- Table metadata
Note this class is NOT meant to be serialized and sent to executors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbranch()
boolean
boolean
boolean
copyOnWriteRequirements
(org.apache.spark.sql.connector.write.RowLevelOperation.Command command) boolean
int
positionDeltaRequirements
(org.apache.spark.sql.connector.write.RowLevelOperation.Command command) long
long
boolean
useFanoutWriter
(SparkWriteRequirements writeRequirements) boolean
wapId()
-
Constructor Details
-
SparkWriteConf
-
SparkWriteConf
-
-
Method Details
-
checkNullability
public boolean checkNullability() -
checkOrdering
public boolean checkOrdering() -
overwriteMode
-
wapEnabled
public boolean wapEnabled() -
wapId
-
mergeSchema
public boolean mergeSchema() -
outputSpecId
public int outputSpecId() -
dataFileFormat
-
targetDataFileSize
public long targetDataFileSize() -
useFanoutWriter
-
deleteFileFormat
-
targetDeleteFileSize
public long targetDeleteFileSize() -
extraSnapshotMetadata
-
rewrittenFileSetId
-
writeRequirements
-
copyOnWriteRequirements
public SparkWriteRequirements copyOnWriteRequirements(org.apache.spark.sql.connector.write.RowLevelOperation.Command command) -
positionDeltaRequirements
public SparkWriteRequirements positionDeltaRequirements(org.apache.spark.sql.connector.write.RowLevelOperation.Command command) -
validateFromSnapshotId
-
isolationLevel
-
caseSensitive
public boolean caseSensitive() -
branch
-
writeProperties
-
deleteGranularity
-