Documentation
¶
Index ¶
Constants ¶
View Source
const (
IPMod = 256
)
Variables ¶
View Source
var (
NumPartFile = uint64(100)
)
NumPartFile: Number of partition file (小文件/分割文件数量) partFile: An array that holds pointers to partition files (存放指向小文件的文件指针的数组) partMaxVal: A map that stores the maximum count of IP in each partition file and its count (保存每个小文件中出现次数最多的 IP 和它的次数的 map) srcPath: Source file path 源文件(大文件)路径 partPathPrefix: partition path prefix 小文件的路径前缀
Functions ¶
func GenerateBigFile ¶
func GenerateBigFile(Row int)
func GenerateIP ¶
func GenerateIP() string
func GetPartMax ¶
func GetPartMax()
func RemoveAndClosePartFile ¶
func RemoveAndClosePartFile()
func SplitBigFile ¶
func SplitBigFile(NumPartFile uint64)
Types ¶
Click to show internal directories.
Click to hide internal directories.