class InitialSnapshot extends Snapshot
An initial snapshot with only metadata specified. Useful for creating a DataFrame from an existing parquet table during its conversion to delta.
- Alphabetic
- By Inheritance
- InitialSnapshot
- Snapshot
- DeltaLogging
- DatabricksLogging
- DeltaProgressReporter
- Logging
- DeltaFileFormat
- PartitionFiltering
- StateCache
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
-
class
CachedDS[A] extends AnyRef
- Definition Classes
- StateCache
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allFiles: Dataset[AddFile]
All of the files present in this Snapshot.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cacheDS[A](ds: Dataset[A], name: String): CachedDS[A]
Create a CachedDS instance for the given Dataset and the name.
Create a CachedDS instance for the given Dataset and the name.
- Definition Classes
- StateCache
-
lazy val
checkpointFileIndexOpt: Option[DeltaLogFileIndex]
- Attributes
- protected
- Definition Classes
- Snapshot
-
val
checksumOpt: Option[VersionChecksum]
- Definition Classes
- Snapshot
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
lazy val
computedState: State
Computes some statistics around the transaction log, therefore on the actions made on this Delta table.
Computes some statistics around the transaction log, therefore on the actions made on this Delta table.
- Attributes
- protected
- Definition Classes
- InitialSnapshot → Snapshot
-
def
dataSchema: StructType
Returns the data schema of the table, the schema of the columns written out to file.
Returns the data schema of the table, the schema of the columns written out to file.
- Definition Classes
- Snapshot
-
lazy val
deltaFileIndexOpt: Option[DeltaLogFileIndex]
- Attributes
- protected
- Definition Classes
- Snapshot
-
val
deltaLog: DeltaLog
- Definition Classes
- InitialSnapshot → Snapshot
-
def
emptyActions: Dataset[SingleAction]
- Attributes
- protected
- Definition Classes
- Snapshot
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fileFormat: FileFormat
Return the underlying Spark
FileFormatof the Delta table.Return the underlying Spark
FileFormatof the Delta table.- Definition Classes
- DeltaFileFormat
-
lazy val
fileIndices: Seq[DeltaLogFileIndex]
- Attributes
- protected
- Definition Classes
- Snapshot
-
def
filesForScan(projection: Seq[Attribute], filters: Seq[Expression], keepStats: Boolean = false): DeltaScan
- Definition Classes
- PartitionFiltering
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getNumPartitions: Int
- Attributes
- protected
- Definition Classes
- Snapshot
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
init(): Unit
Performs validations during initialization
Performs validations during initialization
- Attributes
- protected
- Definition Classes
- Snapshot
-
def
initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
logConsole(line: String): Unit
- Definition Classes
- DatabricksLogging
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
- Definition Classes
- Snapshot → Logging
-
def
logError(msg: ⇒ String): Unit
- Definition Classes
- Snapshot → Logging
-
def
logInfo(msg: ⇒ String): Unit
- Definition Classes
- Snapshot → Logging
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
- val logPath: Path
-
val
logSegment: LogSegment
- Definition Classes
- Snapshot
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
- Definition Classes
- Snapshot → Logging
-
def
logWarning(msg: ⇒ String): Unit
- Definition Classes
- Snapshot → Logging
-
val
metadata: Metadata
- Definition Classes
- InitialSnapshot → Snapshot
-
val
minFileRetentionTimestamp: Long
- Definition Classes
- Snapshot
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
numIndexedCols: Int
Number of columns to collect stats on for data skipping
Number of columns to collect stats on for data skipping
- Definition Classes
- Snapshot
-
def
numOfFiles: Long
- Definition Classes
- Snapshot
-
def
numOfMetadata: Long
- Definition Classes
- Snapshot
-
def
numOfProtocol: Long
- Definition Classes
- Snapshot
-
def
numOfRemoves: Long
- Definition Classes
- Snapshot
-
def
numOfSetTransactions: Long
- Definition Classes
- Snapshot
-
val
path: Path
- Definition Classes
- Snapshot
-
def
protocol: Protocol
- Definition Classes
- Snapshot
-
def
recordDeltaEvent(deltaLog: DeltaLog, opType: String, tags: Map[TagDefinition, String] = Map.empty, data: AnyRef = null): Unit
Used to record the occurrence of a single event or report detailed, operation specific statistics.
Used to record the occurrence of a single event or report detailed, operation specific statistics.
- Attributes
- protected
- Definition Classes
- DeltaLogging
-
def
recordDeltaOperation[A](deltaLog: DeltaLog, opType: String, tags: Map[TagDefinition, String] = Map.empty)(thunk: ⇒ A): A
Used to report the duration as well as the success or failure of an operation.
Used to report the duration as well as the success or failure of an operation.
- Attributes
- protected
- Definition Classes
- DeltaLogging
-
def
recordEvent(metric: MetricDefinition, additionalTags: Map[TagDefinition, String] = Map.empty, blob: String = null, trimBlob: Boolean = true): Unit
- Definition Classes
- DatabricksLogging
-
def
recordOperation[S](opType: OpType, opTarget: String = null, extraTags: Map[TagDefinition, String], isSynchronous: Boolean = true, alwaysRecordStats: Boolean = false, allowAuthTags: Boolean = false, killJvmIfStuck: Boolean = false, outputMetric: MetricDefinition = null, silent: Boolean = true)(thunk: ⇒ S): S
- Definition Classes
- DatabricksLogging
-
def
recordUsage(metric: MetricDefinition, quantity: Double, additionalTags: Map[TagDefinition, String] = Map.empty, blob: String = null, forceSample: Boolean = false, trimBlob: Boolean = true, silent: Boolean = false): Unit
- Definition Classes
- DatabricksLogging
-
def
redactedPath: String
- Definition Classes
- Snapshot
-
def
schema: StructType
Returns the schema of the table.
Returns the schema of the table.
- Definition Classes
- Snapshot
-
def
setTransactions: Seq[SetTransaction]
- Definition Classes
- Snapshot
-
def
sizeInBytes: Long
- Definition Classes
- Snapshot
-
def
spark: SparkSession
- Attributes
- protected
- Definition Classes
- Snapshot → StateCache
-
def
state: Dataset[SingleAction]
The current set of actions in this Snapshot.
The current set of actions in this Snapshot.
- Definition Classes
- InitialSnapshot → Snapshot
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
timestamp: Long
- Definition Classes
- Snapshot
-
def
toString(): String
- Definition Classes
- Snapshot → AnyRef → Any
-
def
tombstones: Dataset[RemoveFile]
All unexpired tombstones.
All unexpired tombstones.
- Definition Classes
- Snapshot
-
lazy val
transactions: Map[String, Long]
A map to look up transaction version by appId.
A map to look up transaction version by appId.
- Definition Classes
- Snapshot
-
def
uncache(): Unit
Drop any cached data for this Snapshot.
Drop any cached data for this Snapshot.
- Definition Classes
- StateCache
-
val
version: Long
- Definition Classes
- Snapshot
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withStatusCode[T](statusCode: String, defaultMessage: String, data: Map[String, Any] = Map.empty)(body: ⇒ T): T
Report a log to indicate some command is running.
Report a log to indicate some command is running.
- Definition Classes
- DeltaProgressReporter