doris

package
v0.0.0-...-f04a6dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNameOfEachPath

func GetNameOfEachPath(paths []string) []string

GetNameOfEachPath is used to parse a set of paths to obtain unique and concise names for each path. If the paths are repeated, the returned names may also be repeated. And the order of each name in the array is consistent with the input paths. For example:

["/path1"] >> ["path1"]
["/opt/doris/path1"] >> ["path1"]
["/path1", "/path2"] >> ["path1", "path2"]
["/home/disk1/doris", "/home/disk2/doris"] >> ["doris", "disk2-doris"]
["/home/doris/disk1", "/home/doris/disk2"] >> ["disk1", "disk2"]
["/home/disk1/doris", "/home/disk1/doris", "/home/disk2/doris"] >> ["disk1-doris", "disk1-doris", "disk2-doris"]

func ResolveStorageRootPath

func ResolveStorageRootPath(configPath string) []string

ResolveStorageRootPath transforms a string of storage paths into a slice of StorageRootPathInfo.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL