Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepseek-ai/smallpond
/ functions
Functions
992 in github.com/deepseek-ai/smallpond
⨍
Functions
992
◇
Types & classes
154
↳
Endpoints
2
↓ 1 callers
Method
_call_process
( self, runtime_ctx: RuntimeContext, input_tables: List[arrow.Table] )
smallpond/execution/task.py:1954
↓ 1 callers
Method
_call_process
( self, runtime_ctx: RuntimeContext, input_readers: List[arrow.RecordBatchReader] )
smallpond/execution/task.py:2216
↓ 1 callers
Method
_consumer
(self)
smallpond/utility.py:166
↓ 1 callers
Method
_create_driver_args_parser
(self)
smallpond/execution/driver.py:30
↓ 1 callers
Method
_create_empty_file
Create an empty file for a partition according to the schema of the dataset. Return the path relative to the output directory.
smallpond/execution/task.py:1493
↓ 1 callers
Method
_create_file_writer
(self, partition_idx: int, schema: arrow.Schema)
smallpond/execution/task.py:2863
↓ 1 callers
Method
_create_phase1_task
( self, runtime_ctx: RuntimeContext, input_dep: Task, partition_infos: List[Pa
smallpond/logical/node.py:442
↓ 1 callers
Method
_init_envs
(self)
smallpond/execution/task.py:356
↓ 1 callers
Function
_iter_record_batches
Read record batches from a range of a parquet file.
smallpond/io/arrow.py:162
↓ 1 callers
Function
_iter_record_batches_from_files
Build a batch reader from a list of row ranges.
smallpond/io/arrow.py:235
↓ 1 callers
Method
_load_from_parquet_files_with_log
(self, paths, columns)
tests/test_arrow.py:174
↓ 1 callers
Method
_make_dirs
(self, root_exist_ok, cleanup_root)
smallpond/execution/task.py:341
↓ 1 callers
Method
_new_node_id
Generate a new node id.
smallpond/logical/node.py:89
↓ 1 callers
Method
_pop_unbuffered
(self, count: int)
smallpond/execution/workqueue.py:235
↓ 1 callers
Method
_process_batches
( self, runtime_ctx: RuntimeContext, input_tables: List[arrow.Table] )
smallpond/execution/task.py:2492
↓ 1 callers
Method
_read_partition_key
Get the partition key of the parquet file. Examples -------- ``` >>> ParquetDataSet._read_partition_key("out
smallpond/logical/dataset.py:857
↓ 1 callers
Function
_read_schema_from_file
( path_or_range: Union[str, RowRange], columns: Optional[List[str]] = None, filesystem: fsspec.Abs
smallpond/io/arrow.py:213
↓ 1 callers
Method
_spawn_self
Spawn a new job to run the current script.
smallpond/session.py:176
↓ 1 callers
Method
_start_grafana
Start grafana server if it exists.
smallpond/session.py:214
↓ 1 callers
Method
_start_prometheus
Start prometheus server if it exists.
smallpond/session.py:194
↓ 1 callers
Method
_summarize_task
(self)
smallpond/session.py:298
↓ 1 callers
Method
acquire_gpu
Acquire GPU resources with the given quota. Return a dict of granted GPUs with their quotas. `release_gpu` should be called l
smallpond/execution/executor.py:311
↓ 1 callers
Method
add_perf_metrics
(self, name, value: Union[List[float], float])
smallpond/logical/node.py:282
↓ 1 callers
Method
add_running_work
(self, item: WorkItem)
smallpond/execution/scheduler.py:175
↓ 1 callers
Method
apply_async
(self, func, args, name: str = None)
smallpond/execution/executor.py:74
↓ 1 callers
Function
check_data
Check if the expected data matches the actual data. Raise an error if there is a mismatch.
examples/fstest.py:70
↓ 1 callers
Method
check_executor_state
(self, target_state: ExecutorState, nloops=200)
tests/test_scheduler.py:87
↓ 1 callers
Function
clamp_row_group_size
(val, minval=DEFAULT_ROW_GROUP_SIZE, maxval=MAX_ROW_GROUP_SIZE)
smallpond/common.py:40
↓ 1 callers
Method
clean_output
(self, force=False)
smallpond/execution/task.py:1066
↓ 1 callers
Method
clean_temp_files
(self, pool: ThreadPoolExecutor)
smallpond/execution/scheduler.py:791
↓ 1 callers
Method
cleanup
Called after run() even if there is an exception.
smallpond/execution/workqueue.py:163
↓ 1 callers
Method
collect_output_files
(self, pool: ThreadPoolExecutor)
smallpond/execution/task.py:3392
↓ 1 callers
Function
concat_arrow_files
(input_dir: str, output_dir: str, repeat: int = 10)
tests/datagen.py:91
↓ 1 callers
Function
convert_type_to_large
Convert all string and binary types to large types recursively.
smallpond/io/arrow.py:92
↓ 1 callers
Function
copy_input_arrow
( runtime_ctx: RuntimeContext, input_tables: List[arrow.Table], msg: str )
tests/test_execution.py:126
↓ 1 callers
Function
copy_input_stream
( runtime_ctx: RuntimeContext, input_readers: List[arrow.RecordBatchReader], msg: str )
tests/test_execution.py:135
↓ 1 callers
Method
copy_task_for_execution
(self, task: Task)
smallpond/execution/scheduler.py:688
↓ 1 callers
Function
count_inversions
(arr: List[int])
tests/test_dataframe.py:101
↓ 1 callers
Function
count_objects
(obj, object_cnt=None, visited_objs=None, depth=0)
smallpond/execution/workqueue.py:384
↓ 1 callers
Method
create_from
(table: arrow.Table, output_dir: str, filename: str = "data")
smallpond/logical/dataset.py:625
↓ 1 callers
Method
create_split_task
( self, runtime_ctx: RuntimeContext, input_deps: List[Task], partition_infos:
smallpond/logical/node.py:1338
↓ 1 callers
Method
default_memory_allocator
Get the default memory allocator for the platform.
smallpond/platform/base.py:105
↓ 1 callers
Method
default_share_log_analytics
Whether to share log analytics by default.
smallpond/platform/base.py:81
↓ 1 callers
Method
dispatch_tasks
(self, pool: ThreadPoolExecutor)
smallpond/execution/scheduler.py:1167
↓ 1 callers
Method
dump_graph
Dump the logical plan graph to a file.
smallpond/session.py:255
↓ 1 callers
Method
dump_output
(self, output_table: arrow.Table)
smallpond/execution/task.py:2014
↓ 1 callers
Method
dump_timeline
Dump the task timeline to a file.
smallpond/session.py:266
↓ 1 callers
Method
ensure_installed
()
benchmarks/gray_sort_benchmark.py:43
↓ 1 callers
Method
exec_loop
(self, pool: SimplePool)
smallpond/execution/executor.py:167
↓ 1 callers
Method
exitcode
(self)
smallpond/execution/executor.py:47
↓ 1 callers
Method
export_task_metrics
(self)
smallpond/execution/scheduler.py:803
↓ 1 callers
Function
extract_hf3fs_mount_point
(path: str)
smallpond/io/filesystem.py:22
↓ 1 callers
Method
extract_tokens
(self, url: arrow.string, content: arrow.binary)
smallpond/contrib/warc.py:111
↓ 1 callers
Method
finalize
Called after run() to finalize the processing.
smallpond/execution/workqueue.py:160
↓ 1 callers
Function
find_mount_point
(path: str)
smallpond/io/filesystem.py:53
↓ 1 callers
Method
from_args_and_env
Load config from arguments and environment variables. If not specified, use the default value.
smallpond/session.py:336
↓ 1 callers
Function
fsread
( path: str, blocksize: Union[int, Tuple[int, int]], randread: bool, )
examples/fstest.py:42
↓ 1 callers
Function
fswrite
( path: str, size: int, blocksize: Union[int, Tuple[int, int]], )
examples/fstest.py:21
↓ 1 callers
Function
generate_arrow_files
(output_dir: str, num_files=10)
tests/datagen.py:82
↓ 1 callers
Function
generate_content
()
tests/datagen.py:51
↓ 1 callers
Function
generate_long_path_list
Generate a list of long paths
tests/datagen.py:152
↓ 1 callers
Function
generate_random_data
Generate random data
tests/datagen.py:111
↓ 1 callers
Function
generate_random_date
()
tests/datagen.py:41
↓ 1 callers
Function
generate_url_and_domain
()
tests/datagen.py:16
↓ 1 callers
Function
generate_url_parquet_files
Generate multiple parquet files with a specified number of random data lines
tests/datagen.py:131
↓ 1 callers
Function
generate_url_tsv_files
Generate multiple files, each containing a specified number of random data lines
tests/datagen.py:141
↓ 1 callers
Method
generic_visit
(self, node: Node, depth: int)
smallpond/logical/optimizer.py:27
↓ 1 callers
Function
get_pickle_trace
(obj)
smallpond/io/filesystem.py:74
↓ 1 callers
Method
grafana_homepath
Return the homepath of grafana.
smallpond/platform/base.py:95
↓ 1 callers
Method
graph
Get the logical plan graph.
smallpond/session.py:248
↓ 1 callers
Method
graph
Return a graphviz graph that shows the structure of the logical plan.
smallpond/logical/node.py:2113
↓ 1 callers
Method
import_warc_file
( self, warc_path: PurePath, parquet_path: PurePath )
smallpond/contrib/warc.py:32
↓ 1 callers
Method
initialize
Called before run() to prepare for running the task.
smallpond/execution/workqueue.py:157
↓ 1 callers
Method
is_available
()
smallpond/platform/mpi.py:15
↓ 1 callers
Method
is_computed
Check if the data is ready on disk.
smallpond/dataframe.py:261
↓ 1 callers
Method
iter_tasks
(task: Task, visited: Set[str] = None)
smallpond/execution/task.py:3562
↓ 1 callers
Method
list_dequeued
(self, expand_batch=True)
smallpond/execution/workqueue.py:329
↓ 1 callers
Method
list_enqueued
(self, expand_batch=True)
smallpond/execution/workqueue.py:326
↓ 1 callers
Method
list_works
(self, expand_batch=True)
smallpond/execution/workqueue.py:332
↓ 1 callers
Function
main
()
smallpond/execution/task.py:3604
↓ 1 callers
Function
main
()
smallpond/execution/driver.py:426
↓ 1 callers
Function
main
()
smallpond/execution/workqueue.py:431
↓ 1 callers
Function
main
()
examples/shuffle_mock_urls.py:59
↓ 1 callers
Function
main
()
examples/sort_mock_urls.py:91
↓ 1 callers
Function
main
()
examples/shuffle_data.py:63
↓ 1 callers
Function
main
()
benchmarks/gray_sort_benchmark.py:351
↓ 1 callers
Function
main
()
benchmarks/urls_sort_benchmark.py:96
↓ 1 callers
Function
main
()
benchmarks/hash_partition_benchmark.py:68
↓ 1 callers
Function
main
()
benchmarks/file_io_benchmark.py:63
↓ 1 callers
Method
map_batches
Apply the given function to batches of data. Parameters ---------- func A function or a callable class t
smallpond/dataframe.py:576
↓ 1 callers
Method
new_task_id
(self)
smallpond/execution/task.py:323
↓ 1 callers
Function
next_power_of_two
(x)
smallpond/common.py:112
↓ 1 callers
Method
oom
(self, nonzero_exitcode_as_oom=False)
smallpond/execution/workqueue.py:141
↓ 1 callers
Function
parquet_write_table
( table, where, filesystem: fsspec.AbstractFileSystem = None, **write_table_args )
smallpond/io/arrow.py:343
↓ 1 callers
Method
partition
(self, input_dataset: ParquetDataSet)
smallpond/execution/task.py:2966
↓ 1 callers
Method
probe
(self, epoch: int)
smallpond/execution/scheduler.py:234
↓ 1 callers
Method
probe_executors
(self)
smallpond/execution/scheduler.py:633
↓ 1 callers
Method
process
This method can be overridden in subclass of `PythonScriptTask`. Parameters ---------- runtime_ctx The r
smallpond/execution/task.py:1859
↓ 1 callers
Method
process
This method can be overridden in subclass of `ArrowComputeTask`. Parameters ---------- runtime_ctx The r
smallpond/execution/task.py:1959
↓ 1 callers
Method
process
This method can be overridden in subclass of `ArrowStreamTask`. Parameters ---------- runtime_ctx The ru
smallpond/execution/task.py:2222
← previous
next →
201–300 of 992, ranked by callers