Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mooncake-Labs/moonlink
/ functions
Functions
2,717 in github.com/Mooncake-Labs/moonlink
⨍
Functions
2,717
◇
Types & classes
409
↓ 21 callers
Function
assert_non_evictable_cache_handle_ref_count
Test util function to check non-evictable cache handle reference count.
src/moonlink/src/storage/cache/object_storage/test_utils.rs:110
↓ 21 callers
Function
create_table
Util function to create table via REST API.
src/moonlink_service/src/test_utils.rs:609
↓ 21 callers
Function
flush_stream_and_sync_no_apply
( table: &mut MooncakeTable, receiver: &mut Receiver<TableEvent>, xact_id: u32, lsn: Option<u6
src/moonlink/src/storage/mooncake_table/table_operation_test_utils.rs:169
↓ 21 callers
Function
get_disk_files_for_table
Test util function to get disk files for the given mooncake table.
src/moonlink/src/storage/mooncake_table/table_accessor_test_utils.rs:14
↓ 20 callers
Method
client
(&self)
src/moonlink_connectors/src/pg_replicate/tests/test_utils.rs:184
↓ 20 callers
Function
create_mooncake_table_and_notify
Test util function to create mooncake table and table notify.
src/moonlink/src/storage/mooncake_table/table_creation_test_utils.rs:525
↓ 20 callers
Method
take_payload
(self)
src/moonlink/src/table_notify.rs:41
↓ 20 callers
Method
unreference
(&self)
src/moonlink/src/storage/cache/object_storage/cache_handle.rs:49
↓ 19 callers
Method
commit_transaction_stream_impl
(&mut self, xact_id: u32, lsn: u64)
src/moonlink/src/storage/mooncake_table/transaction_stream.rs:577
↓ 19 callers
Function
sync_mooncake_snapshot
=================================== Operation synchronization function =================================== Test util function to block wait and get i
src/moonlink/src/storage/mooncake_table/table_operation_test_utils.rs:325
↓ 19 callers
Function
verify_files_and_deletions
( data_file_paths: &[String], puffin_file_paths: &[String], position_deletes: Vec<PositionDelete>,
src/moonlink/src/storage/mooncake_table/test_utils.rs:230
↓ 19 callers
Method
write_object
(&self, object: &str, content: Vec<u8>)
src/moonlink/src/storage/filesystem/accessor/filesystem_accessor.rs:295
↓ 18 callers
Method
apply_flush_result
Applies the result of a flush to the snapshot task. Adds the disk slice to `next_snapshot_task`.
src/moonlink/src/storage/mooncake_table.rs:959
↓ 18 callers
Method
create_iceberg_table_manager
Create iceberg table manager.
src/moonlink/src/table_handler/test_utils.rs:179
↓ 18 callers
Function
create_infinite_object_storage_cache
Test util function to create an infinitely large object storage cache.
src/moonlink/src/storage/mooncake_table/cache_test_utils.rs:28
↓ 18 callers
Function
create_s3_storage_config
Create a S3 catalog config.
src/moonlink/src/storage/filesystem/s3/s3_test_utils.rs:34
↓ 18 callers
Function
dump_arrow_record_batches
Test util function to dump arrow record batches to local filesystem.
src/moonlink/src/storage/compaction/test_utils.rs:78
↓ 18 callers
Method
get_serialized_table_config
(&self)
src/moonlink_backend/tests/common.rs:66
↓ 18 callers
Function
validate_new_data_files_and_deletion_vectors_in_snapshot
Validate new snapshot with both new data files and deletion vector created.
src/moonlink/src/storage/table/iceberg/state_tests.rs:387
↓ 17 callers
Method
add_type
(&mut self, name: impl Into<String>)
src/moonlink_connectors/src/pg_replicate/tests/test_utils.rs:200
↓ 17 callers
Function
create_test_arrow_schema
()
src/moonlink/src/table_handler/profile_test.rs:400
↓ 17 callers
Method
delete_row
( &self, id: i32, name: &str, age: i32, lsn: u64, xact_id: Opt
src/moonlink/src/table_handler/test_utils.rs:246
↓ 17 callers
Method
force_wal_persistence
Force WAL persistence by sending a periodic WAL event and waiting for completion Note that this assumes that this is being called after an event with
src/moonlink/src/table_handler/test_utils.rs:422
↓ 17 callers
Method
load
Relaxed ordering is used here because the counter is only used for internal state tracking, not for synchronization.
src/moonlink/src/storage/mooncake_table/batch_id_counter.rs:33
↓ 17 callers
Method
set_readable_lsn
Sets both table commit and replication LSN to the same value. This makes data up to `lsn` potentially readable.
src/moonlink/src/table_handler/test_utils.rs:367
↓ 17 callers
Method
set_table_commit_lsn
Directly set the table commit LSN watch channel.
src/moonlink/src/table_handler/test_utils.rs:383
↓ 17 callers
Function
validate_not_empty
(field: &str, name: &str)
src/moonlink_backend/src/lib.rs:460
↓ 17 callers
Function
write
(writer: &mut W, data: &S)
src/moonlink_rpc/src/lib.rs:41
↓ 16 callers
Function
create_test_table_schema
Test util function to get test table schema.
src/moonlink/src/storage/table/iceberg/catalog_test_utils.rs:8
↓ 16 callers
Function
flush_table_and_sync_no_apply
( table: &mut MooncakeTable, receiver: &mut Receiver<TableEvent>, lsn: u64, )
src/moonlink/src/storage/mooncake_table/table_operation_test_utils.rs:137
↓ 16 callers
Function
get_data_files_for_read
(data_file_paths: &[DataFileForRead])
src/moonlink/src/storage/mooncake_table/test_utils.rs:214
↓ 16 callers
Function
get_deletion_puffin_files_for_read
( deletion_vector_puffins: &[NonEvictableHandle], )
src/moonlink/src/storage/mooncake_table/test_utils.rs:221
↓ 16 callers
Method
get_wal_config
(&self)
src/moonlink/src/storage/wal/test_utils.rs:105
↓ 16 callers
Function
parse_processed_deletion_log
Test util function to get file id and row idx from process deletion log.
src/moonlink/src/storage/table/iceberg/compaction_tests.rs:102
↓ 16 callers
Method
put
(&self, key: K, value: V)
src/moonlink/src/storage/cache/metadata/moka_cache.rs:57
↓ 16 callers
Method
set_replication_lsn
Directly set the replication LSN watch channel.
src/moonlink/src/table_handler/test_utils.rs:390
↓ 15 callers
Function
create_gcs_storage_config
(warehouse_uri: &str)
src/moonlink/src/storage/filesystem/gcs/gcs_test_utils.rs:21
↓ 15 callers
Function
create_mooncake_and_persist_for_data_compaction_for_test
( table: &mut MooncakeTable, receiver: &mut Receiver<TableEvent>, injected_committed_deletion_rows
src/moonlink/src/storage/mooncake_table/table_operation_test_utils.rs:533
↓ 15 callers
Method
flush
Flush buffered current content.
src/moonlink/src/storage/async_bitwriter.rs:67
↓ 15 callers
Method
get_file_path
(&self)
src/moonlink/src/storage/mooncake_table/snapshot_read_output.rs:32
↓ 15 callers
Function
ids_from_state
Extract **all** primary-key IDs referenced in `read_state`.
src/moonlink_backend/tests/common.rs:174
↓ 15 callers
Function
load_arrow_batch
Test util function to load the first arrow batch from the given parquet file. Precondition: caller unit tests persist rows in one arrow record batch a
src/moonlink/src/storage/table/iceberg/test_utils.rs:9
↓ 15 callers
Method
mark
Mark the replication position as `lsn` if it is newer than the current value.
src/moonlink/src/lsn_state.rs:35
↓ 15 callers
Method
set_directory
(&mut self, directory: PathBuf)
src/moonlink/src/storage/index/persisted_bucket_hash_map.rs:434
↓ 14 callers
Method
create_namespace
Create a new namespace inside the catalog, return error if namespace already exists, or any parent namespace doesn't exist. TODO(hjiang): Implement p
src/moonlink/src/storage/table/iceberg/file_catalog.rs:338
↓ 14 callers
Function
default_rest_catalog_config
()
src/moonlink/src/storage/table/iceberg/rest_catalog_test_utils.rs:29
↓ 14 callers
Method
delete_in_stream_batch
(&mut self, row: MoonlinkRow, xact_id: u32)
src/moonlink/src/storage/mooncake_table/transaction_stream.rs:196
↓ 14 callers
Method
get_event_sender
Get the event sender to send events to this handler
src/moonlink/src/table_handler.rs:118
↓ 14 callers
Method
get_min_ongoing_flush_lsn
We fallback to u64::MAX if there are no pending flush LSNs so that the LSN is always greater than the flush LSN and the iceberg snapshot can proceed.
src/moonlink/src/storage/mooncake_table.rs:1011
↓ 14 callers
Function
get_unique_file_id_for_flush
(table_auto_incr_id: u64, file_idx: u64)
src/moonlink/src/storage/storage_utils.rs:42
↓ 14 callers
Method
read_object
(&self, object: &str)
src/moonlink/src/storage/filesystem/accessor/filesystem_accessor.rs:244
↓ 14 callers
Method
send_event
(&self, event: TableEvent)
src/moonlink/src/table_handler/test_utils.rs:207
↓ 13 callers
Method
borrow
(&self)
src/moonlink/src/storage/storage_utils.rs:173
↓ 13 callers
Method
close
(&mut self)
src/moonlink/src/storage/filesystem/accessor/filesystem_accessor_chaos_wrapper.rs:141
↓ 13 callers
Function
create_batch_channel
Create a bounded channel for passing Arrow RecordBatches from table copy to writer.
src/moonlink_connectors/src/pg_replicate/initial_copy_writer.rs:43
↓ 13 callers
Function
create_test_batch_1
Test util function to dump parquet files to local filesystem.
src/moonlink/src/storage/compaction/test_utils.rs:52
↓ 13 callers
Function
default_accessor_config
()
src/moonlink/src/storage/table/iceberg/rest_catalog_test_utils.rs:21
↓ 13 callers
Method
drop_table
Drop a table from the catalog.
src/moonlink/src/storage/table/iceberg/file_catalog.rs:544
↓ 13 callers
Function
dump_deletion_vector_puffin
Test util functions to dump deletion vector puffin file to local filesystem. Precondition: rows to delete are sorted in ascending order.
src/moonlink/src/storage/compaction/test_utils.rs:173
↓ 13 callers
Method
fetch_table_schema
( &self, src_table_id: Option<SrcTableId>, table_name: Option<&str>, publicati
src/moonlink_connectors/src/pg_replicate/postgres_source.rs:174
↓ 13 callers
Method
find_record
(&self, raw_record: &RawDeletionRecord)
src/moonlink/src/storage/index/mem_index.rs:5
↓ 13 callers
Method
get_operator
Get IO operator from the catalog.
src/moonlink/src/storage/filesystem/accessor/filesystem_accessor.rs:82
↓ 13 callers
Function
get_table_unique_table_id
Test util function to get unique table file id for the given file id.
src/moonlink/src/storage/compaction/tests.rs:41
↓ 13 callers
Function
get_test_row_1
============================== Row preparation functions ============================== Test util functions to get a few moonlink rows for testing.
src/moonlink/src/storage/table/iceberg/state_tests.rs:60
↓ 13 callers
Function
get_test_schema
Test util function to get iceberg schema,
src/moonlink/src/storage/table/iceberg/file_catalog_test_utils.rs:26
↓ 13 callers
Method
sanitize_path
Sanitize given path. Opendal works on relative path, so attempt to sanitize absolute path to relative one if applicable.
src/moonlink/src/storage/filesystem/accessor/filesystem_accessor.rs:77
↓ 13 callers
Method
send_table_event
Send a table event to the appropriate table handler (internal helper)
src/moonlink_connectors/src/rest_ingest/moonlink_rest_sink.rs:304
↓ 12 callers
Method
append
======================= Table state updates ======================= The following events contains updates to the mooncake table, which will be record
src/moonlink/src/storage/mooncake_table.rs:1212
↓ 12 callers
Function
assert_is_same_schema
(lhs: IcebergSchema, rhs: IcebergSchema)
src/moonlink/src/storage/table/iceberg/schema_utils.rs:11
↓ 12 callers
Method
build_from_flush
================================ Build from flush ================================
src/moonlink/src/storage/index/persisted_bucket_hash_map.rs:486
↓ 12 callers
Function
check_deleted_rows
Test util function to check the given referenced arrow batch are equal to rows. - [`rows`] are ordered in the order of first element - [`arrow_batches
src/moonlink/src/storage/table/iceberg/compaction_tests.rs:131
↓ 12 callers
Function
check_deletion_vector_consistency
Test util function to check consistency for snapshot batch deletion vector and deletion puffin blob.
src/moonlink/src/storage/mooncake_table/validation_test_utils.rs:27
↓ 12 callers
Method
commit_transaction_stream
Commit a transaction stream. - Flushes any remaining rows from stream mem slice - Adds all in mem batches and indices to next snapshot task - Updates
src/moonlink/src/storage/mooncake_table/transaction_stream.rs:683
↓ 12 callers
Function
create_test_table_metadata_with_config
Test util function to create mooncake table metadata with mooncake table config.
src/moonlink/src/storage/mooncake_table/table_creation_test_utils.rs:260
↓ 12 callers
Method
flush
Flush buffered entries written to disk.
src/moonlink/src/storage/index/persisted_bucket_hash_map.rs:383
↓ 12 callers
Function
get_arrow_batches_with_row_idx
Test util function to get arrow batches in the given rows.
src/moonlink/src/storage/table/iceberg/compaction_tests.rs:114
↓ 12 callers
Method
get_lookup_key
(&self, row: &MoonlinkRow)
src/moonlink/src/row/moonlink_row.rs:334
↓ 12 callers
Method
layer
(&self, inner: A)
src/moonlink/src/storage/filesystem/accessor/filesystem_accessor_chaos_wrapper.rs:29
↓ 12 callers
Function
nonunique_ids_from_state
Extract counts for possibly non-unique primary-key IDs referenced in `read_state`.
src/moonlink_backend/tests/common.rs:183
↓ 12 callers
Method
perform_wrapper_function
Attempt injected delay and error.
src/moonlink/src/storage/filesystem/accessor/chaos_generator.rs:63
↓ 12 callers
Method
process_cdc_event
( &mut self, event: CdcEvent, )
src/moonlink_connectors/src/pg_replicate/moonlink_sink.rs:198
↓ 12 callers
Method
set_files
(&mut self, files: Vec<MooncakeDataFileRef>)
src/moonlink/src/storage/index/persisted_bucket_hash_map.rs:439
↓ 12 callers
Method
set_persistence_snapshot_res
Set iceberg snapshot flush LSN, called after a snapshot operation.
src/moonlink/src/storage/mooncake_table.rs:693
↓ 12 callers
Function
test_row_1
Test util functions to create moonlink rows.
src/moonlink/src/storage/table/iceberg/tests.rs:134
↓ 12 callers
Method
try_create_mooncake_snapshot
(&mut self, opt: SnapshotOption)
src/moonlink/src/storage/mooncake_table.rs:1506
↓ 12 callers
Method
unreference_and_delete
(&self)
src/moonlink/src/storage/cache/object_storage/cache_handle.rs:56
↓ 12 callers
Function
validate_state_3
Validate state 3: remote, local, in use
src/moonlink/src/storage/mooncake_table/data_file_state_tests.rs:367
↓ 12 callers
Function
verify_file_contents
( file_path: &String, expected_ids: &[i32], expected_row_count: Option<usize>, )
src/moonlink/src/storage/mooncake_table/test_utils.rs:151
↓ 11 callers
Function
assert_data_and_puffin
Util function to check data file and puffin. Called after insert/upload of a payload/parquet file.
src/moonlink_service/src/test_utils.rs:777
↓ 11 callers
Function
create_random_string
Test util function to generate random string with the requested size.
src/moonlink/src/storage/filesystem/accessor/test_utils.rs:9
↓ 11 callers
Function
create_table_and_iceberg_manager_with_data_compaction_config
Similar to [`create_table_and_iceberg_manager`], but it takes data compaction config.
src/moonlink/src/storage/mooncake_table/table_creation_test_utils.rs:397
↓ 11 callers
Method
extract_identity_columns
(&self, mut row: MoonlinkRow)
src/moonlink/src/row/moonlink_row.rs:304
↓ 11 callers
Method
get_mooncake_table_id
(&self)
src/moonlink/src/storage/wal.rs:63
↓ 11 callers
Function
int32_schema
()
src/moonlink_connectors/src/pg_replicate/initial_copy_writer.rs:221
↓ 11 callers
Function
load_one_arrow_batch
Test util function to load one arrow batch from the given local parquet file.
src/moonlink/src/table_handler/test_utils.rs:624
↓ 11 callers
Function
make_batch
(values: &[i32])
src/moonlink_connectors/src/pg_replicate/initial_copy_writer.rs:225
↓ 11 callers
Function
meta
Helper to build metadata with a specific field id
src/moonlink_service/src/test_utils.rs:341
↓ 11 callers
Method
search_values
( &self, value_and_hashes: &[(u64, u64)], )
src/moonlink/src/storage/index/persisted_bucket_hash_map.rs:276
↓ 11 callers
Method
sync_snapshot
( &mut self, mut snapshot_payload: PersistenceSnapshotPayload, file_params: Persistenc
src/moonlink/src/storage/table/iceberg/iceberg_table_manager.rs:194
↓ 10 callers
Method
batch_ingest
Batch ingestion the given [`parquet_files`] into mooncake table. TODO(hjiang): 1. Record table events. 2. It involves IO operations, should be placed
src/moonlink/src/storage/mooncake_table/batch_ingestion.rs:71
← previous
next →
101–200 of 2,717, ranked by callers