Uses of Class
dev.frostlake.metastore.model.StreamRecord
Packages that use StreamRecord
-
Uses of StreamRecord in dev.frostlake.metastore.model
Methods in dev.frostlake.metastore.model that return types with arguments of type StreamRecordModifier and TypeMethodDescriptionStream.getRecords()Stream.getUnconsumedAppendsWith(List<StreamRecord> extraRaw) The unconsumed records that APPENDED a row, in the order the appends happened, with the values each row was appended WITH — the append-only view of the change window.Stream.getUnconsumedNetRecords()The unconsumed change records consolidated to the NET delta per logical row, which is what a SELECT from a stream returns in Snowflake: a row inserted then updated inside the window is a single INSERT of its final image (ISUPDATE false); inserted then deleted cancels out entirely; a pre-existing row updated repeatedly nets to one DELETE(original)+INSERT(final) pair (ISUPDATE true); updated then deleted nets to a plain DELETE of the original image.Stream.getUnconsumedNetRecordsWith(List<StreamRecord> extraRaw) The net unconsumed records asStream.getUnconsumedNetRecords(), but withextraRawtransient change records (e.g. the current transaction's not-yet-committed base-table changes) folded in AFTER the committed unconsumed ones, so a stream read inside a transaction reflects that transaction's own uncommitted DML — the deferred-apply equivalent of read-your-writes for streams.Stream.getUnconsumedRecords()Methods in dev.frostlake.metastore.model with parameters of type StreamRecordModifier and TypeMethodDescriptionvoidStream.addRecord(StreamRecord record) static booleanStream.isAppend(StreamRecord record) Whether a change record APPENDED a row: an INSERT that no UPDATE produced.Method parameters in dev.frostlake.metastore.model with type arguments of type StreamRecordModifier and TypeMethodDescriptionvoidStream.consumeSeen(long committedCut, List<StreamRecord> seenTransient) Consume exactly what a reader SAW, not everything present at commit: advance past the committed prefix visible at read time (committedCutrecords) and remove the records this transaction's commit re-emitted for changes that were already buffered when the read happened (seenTransient— matched by change kind, values and capture tag, at or after the cut).Stream.getUnconsumedAppendsWith(List<StreamRecord> extraRaw) The unconsumed records that APPENDED a row, in the order the appends happened, with the values each row was appended WITH — the append-only view of the change window.Stream.getUnconsumedNetRecordsWith(List<StreamRecord> extraRaw) The net unconsumed records asStream.getUnconsumedNetRecords(), but withextraRawtransient change records (e.g. the current transaction's not-yet-committed base-table changes) folded in AFTER the committed unconsumed ones, so a stream read inside a transaction reflects that transaction's own uncommitted DML — the deferred-apply equivalent of read-your-writes for streams. -
Uses of StreamRecord in dev.frostlake.transaction
Methods in dev.frostlake.transaction that return types with arguments of type StreamRecordModifier and TypeMethodDescriptionTransactionWriteSet.bufferedChangeRecords(String table, TableStorage base, String captureName) Synthesize the stream change records fortable's buffered (not-yet-committed) changes, exactly asTransactionWriteSet.applyTo(dev.frostlake.storage.StorageEngine)would track them at commit — an update as a DELETE(old)+INSERT(new) pair, a delete as a DELETE(old), an insert as an INSERT(new) — but WITHOUT mutating storage or any stream.StreamReadScope.getSeenTransient()Constructor parameters in dev.frostlake.transaction with type arguments of type StreamRecordModifierConstructorDescriptionStreamReadScope(long committedCut, List<StreamRecord> seenTransient)