Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions npm/packages/rvf/dist/backend.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export interface RvfBackend {
export declare class NodeBackend implements RvfBackend {
private native;
private handle;
private idToLabel;
private labelToId;
private nextLabel;
private storePath;
private loadNative;
private ensureHandle;
create(path: string, options: RvfOptions): Promise<void>;
Expand All @@ -68,6 +72,17 @@ export declare class NodeBackend implements RvfBackend {
extractEbpf(): Promise<RvfEbpfData | null>;
segments(): Promise<RvfSegmentInfo[]>;
dimension(): Promise<number>;
/**
* Get or allocate a numeric label for a string ID.
* If the ID was already seen, returns the existing label.
*/
private resolveLabel;
/** Path to the sidecar mappings file. */
private mappingsPath;
/** Persist the string↔label mapping to a sidecar JSON file. */
private saveMappings;
/** Load the string↔label mapping from the sidecar JSON file if it exists. */
private loadMappings;
}
/**
* Backend that delegates to the `@ruvector/rvf-wasm` WASM build.
Expand Down
106 changes: 103 additions & 3 deletions npm/packages/rvf/dist/backend.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading