public class SparkWriteConf
extends java.lang.Object
If a config is set at multiple levels, the following order of precedence is used (top to bottom):
Note this class is NOT meant to be serialized and sent to executors.
Constructor and Description |
---|
SparkWriteConf(org.apache.spark.sql.SparkSession spark,
Table table,
java.util.Map<java.lang.String,java.lang.String> writeOptions) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkNullability() |
boolean |
checkOrdering() |
DistributionMode |
copyOnWriteDeleteDistributionMode() |
DistributionMode |
copyOnWriteMergeDistributionMode() |
DistributionMode |
copyOnWriteUpdateDistributionMode() |
FileFormat |
dataFileFormat() |
FileFormat |
deleteFileFormat() |
DistributionMode |
distributionMode() |
java.util.Map<java.lang.String,java.lang.String> |
extraSnapshotMetadata() |
boolean |
fanoutWriterEnabled() |
boolean |
handleTimestampWithoutZone()
Enables writing a timestamp with time zone as a timestamp without time zone.
|
java.lang.String |
overwriteMode() |
DistributionMode |
positionDeleteDistributionMode() |
java.lang.String |
rewrittenFileSetId() |
long |
targetDataFileSize() |
long |
targetDeleteFileSize() |
boolean |
useTableDistributionAndOrdering() |
boolean |
wapEnabled() |
java.lang.String |
wapId() |
public SparkWriteConf(org.apache.spark.sql.SparkSession spark, Table table, java.util.Map<java.lang.String,java.lang.String> writeOptions)
public boolean checkNullability()
public boolean checkOrdering()
public boolean handleTimestampWithoutZone()
Generally, this is not safe as a timestamp without time zone is supposed to represent the wall-clock time, i.e. no matter the reader/writer timezone 3PM should always be read as 3PM, but a timestamp with time zone represents instant semantics, i.e. the timestamp is adjusted so that the corresponding time in the reader timezone is displayed.
When set to false (default), an exception must be thrown if the table contains a timestamp without time zone.
public java.lang.String overwriteMode()
public boolean wapEnabled()
public java.lang.String wapId()
public FileFormat dataFileFormat()
public long targetDataFileSize()
public boolean fanoutWriterEnabled()
public FileFormat deleteFileFormat()
public long targetDeleteFileSize()
public java.util.Map<java.lang.String,java.lang.String> extraSnapshotMetadata()
public java.lang.String rewrittenFileSetId()
public DistributionMode distributionMode()
public DistributionMode copyOnWriteDeleteDistributionMode()
public DistributionMode copyOnWriteUpdateDistributionMode()
public DistributionMode copyOnWriteMergeDistributionMode()
public DistributionMode positionDeleteDistributionMode()
public boolean useTableDistributionAndOrdering()