MCPcopy Index your code

hub / github.com/codechenx/FastTableViewer / functions

Functions230 in github.com/codechenx/FastTableViewer

↓ 48 callersFunctioncreateNewBuffer
createNewBuffer initializes and returns a new empty Buffer
buffer.go:91
↓ 35 callersMethodcontAppendSli
contAppendSli appends a row to the buffer strict: if true, enforces consistent column count
buffer.go:121
↓ 24 callersFunctionI2S
I2S covert int to string
utils.go:56
↓ 23 callersFunctioncreateNewBufferWithData
createNewBufferWithData creates a Buffer from existing data
buffer.go:109
↓ 18 callersMethodgetColType
get ith column data type
buffer.go:472
↓ 16 callersFunctionF2S
F2S covert float64 to bool
utils.go:42
↓ 16 callersMethodfilterByColumn
filterByColumn filters rows based on column value using the provided options. It returns a new buffer containing the filtered rows.
buffer.go:795
↓ 16 callersMethodfinish
()
io.go:78
↓ 15 callersFunctiondrawBuffer
add buffer data to buffer table with optimized wrapped column lookup
ui.go:42
↓ 12 callersFunctionperformSearch
performSearch searches for a query string in the buffer and stores results Supports both plain text and regex search modes with parallel column scanni
utils.go:287
↓ 11 callersFunctionloadFileToBuffer
load file content to buffer (synchronous version for small files or when preferred)
io.go:324
↓ 11 callersMethodsepDetect
Fast separator detection algorithm with improved heuristics Key improvements: 1. Priority-based candidate selection 2. Early exit for common separator
sepDector.go:18
↓ 10 callersFunctionfatalError
print fatal error and force quite app
utils.go:15
↓ 9 callersFunctionformatBytes
formatBytes formats bytes into human-readable format
buffer.go:213
↓ 9 callersMethodsetMemoryLimit
setMemoryLimit sets the maximum memory limit in bytes (0 = no limit)
buffer.go:183
↓ 9 callersFunctionskipLine
check a line whether should bu skip, according to prefix
io.go:732
↓ 9 callersMethodsummary
(a []string)
stats.go:46
↓ 9 callersFunctiontype2name
get column data type name. s: string, n: number, d: date
init.go:14
↓ 8 callersFunctionaddDRToBuffer
add displayable(according to user's input argument) RowArray(covert line to array) To Buffer
io.go:889
↓ 8 callersMethodincrement
(bytes int64)
io.go:40
↓ 8 callersMethodsummary
(a []string)
stats.go:183
↓ 7 callersMethoddetectAllColumnTypes
detectAllColumnTypes automatically detects types for all columns in parallel
buffer.go:673
↓ 7 callersMethodenableStringInterning
enableStringInterning analyzes columns and enables interning for low-cardinality string columns This can save 30-70% memory for datasets with repeated
buffer.go:694
↓ 6 callersMethodgetMemoryUsage
getMemoryUsage returns current estimated memory usage
buffer.go:169
↓ 6 callersMethodsetColType
set ith column data type
buffer.go:467
↓ 6 callersMethodsortByNum
sortByNum sorts column by number format with optimized numeric conversion
buffer.go:300
↓ 6 callersMethodsortByStr
sortByStr sorts the buffer by column in string mode colIndex: column to sort by rev: true for descending, false for ascending
buffer.go:271
↓ 5 callersFunctioncountRuneFast
Optimized rune counter - much faster than strings.Count for single runes
sepDector.go:58
↓ 5 callersFunctiongetColumnMaxWidth
getColumnMaxWidth determines the maximum width for a column
utils.go:229
↓ 5 callersMethodgetSummaryData
()
stats.go:120
↓ 5 callersMethodgetSummaryData
()
stats.go:250
↓ 5 callersMethodintern
intern returns a canonical version of the string, reducing memory usage
buffer.go:24
↓ 5 callersFunctionparseNumericValueFast
parseNumericValueFast quickly parses a string to float64 Handles commas, underscores, and returns 0 for invalid values
buffer.go:379
↓ 5 callersFunctiontruncateText
truncateText truncates text to maxWidth and adds ellipsis if needed
utils.go:210
↓ 5 callersFunctionwrapText
wrapText wraps text to fit within maxWidth characters Returns the wrapped text with newlines
utils.go:161
↓ 4 callersFunctionI2B
I2B covert int to bool, if i >0:true, else false
utils.go:37
↓ 4 callersMethodgetCol
getCol returns the ith column data as a string slice Uses pointer receiver to avoid copying mutex
buffer.go:455
↓ 4 callersFunctiongetVisCol
check columns that should be displayed
io.go:780
↓ 4 callersFunctionnewProgressTracker
(total int64, showProgress bool)
io.go:28
↓ 4 callersFunctionparseDateValueFast
parseDateValueFast quickly parses a date string to unix timestamp Returns 0 for invalid dates with fast pre-checks
buffer.go:398
↓ 4 callersMethodscoreSeparator
Score separator quality (higher is better)
sepDector.go:171
↓ 4 callersFunctionstopView
stop UI
init.go:95
↓ 3 callersFunctionbuildCursorPosStr
buildCursorPosStr builds the cursor position string (without filter info now)
ui.go:14
↓ 3 callersFunctioncontains
Helper function
utils_test.go:237
↓ 3 callersMethodestimateRowSize
estimateRowSize estimates memory usage for a row in bytes
buffer.go:160
↓ 3 callersFunctiongetHelpContent
()
utils.go:60
↓ 3 callersMethodgetMemoryLimit
getMemoryLimit returns the configured memory limit
buffer.go:176
↓ 3 callersMethodgetPlot
getPlot generates a histogram visualization for continuous data
stats.go:139
↓ 3 callersMethodinternValue
internValue interns a string value for a specific column if interning is enabled
buffer.go:737
↓ 3 callersFunctionlineCSVParse
use go csv library to parse a string line into csv format Optimized version with reusable reader
io.go:833
↓ 3 callersFunctionlineCSVParseFast
Fast CSV parser for simple cases (no quotes, no escaping) Falls back to standard parser if needed
io.go:851
↓ 3 callersFunctionloadPipeToBuffer
load console pipe content to buffer (synchronous version)
io.go:634
↓ 3 callersFunctionnewStringInterner
newStringInterner creates a new string interner
buffer.go:19
↓ 3 callersMethodresizeCol
resizeCol adjusts the number of columns (thread-safe)
buffer.go:262
↓ 3 callersMethodsortByDate
sortByDate sorts column by date format with optimized date parsing
buffer.go:339
↓ 3 callersFunctionupdateFooterWithStatus
updateFooterWithStatus updates the footer with a status message
init.go:100
↓ 2 callersMethodautoDetectColumnType
autoDetectColumnType intelligently detects if a column contains numeric, date, or string data Returns colTypeDate for dates, colTypeFloat for numbers,
buffer.go:478
↓ 2 callersFunctionbuildFilterInfoStr
buildFilterInfoStr builds the filter information string for the top strip Shows all active filters or current column filter when cursor is on a filter
ui.go:21
↓ 2 callersFunctioncheckVisible
check ith column should be displayed or not
io.go:808
↓ 2 callersFunctiondrawUI
draw app UI
ui.go:180
↓ 2 callersFunctiongenerateRepeatedStrings
(count, uniqueCount int)
string_interning_test.go:236
↓ 2 callersMethodgetCandidates
Get candidate separators from first line
sepDector.go:140
↓ 2 callersFunctiongetFileScanner
get suitable scanner(compressed or not)
io.go:743
↓ 2 callersMethodgetMemoryStats
getMemoryStats returns memory usage statistics
buffer.go:190
↓ 2 callersMethodgetPlot
getPlot generates a bar chart visualization for discrete data
stats.go:287
↓ 2 callersFunctionisDateValue
isDateValue checks if a string represents a valid date with fast pre-checks
buffer.go:563
↓ 2 callersFunctionisNumericValue
isNumericValue checks if a string represents a valid number Handles: integers, floats, scientific notation, negative numbers
buffer.go:619
↓ 2 callersMethodisValidSeparator
Fast validation: Check if a separator is valid for all lines
sepDector.go:36
↓ 2 callersFunctionloadAndDisplayAsync
loadAndDisplayAsync handles the complete async loading workflow
ftv.go:120
↓ 2 callersFunctionloadAndDisplaySync
loadAndDisplaySync handles the complete sync loading workflow
ftv.go:140
↓ 2 callersFunctionloadFileToBufferAsync
load file content to buffer (async version with concurrent parsing)
io.go:102
↓ 2 callersFunctionloadPipeToBufferAsync
load console pipe content to buffer (async version for progressive rendering)
io.go:443
↓ 2 callersFunctionmakeProgressBar
makeProgressBar creates a visual progress bar percent should be between 0 and 100 width is the number of characters for the bar
utils.go:361
↓ 2 callersMethodresizeColUnsafe
resizeColUnsafe adjusts the number of columns (must be called with lock held) Fills missing columns with "NaN"
buffer.go:229
↓ 2 callersFunctionrunApp
runApp starts the UI application if not in debug mode
ftv.go:110
↓ 2 callersFunctionsetupFreezeMode
setupFreezeMode configures row and column freeze settings based on header mode
ftv.go:13
↓ 2 callersFunctionshouldInternColumn
shouldInternColumn determines if a column should use string interning based on its cardinality (ratio of unique values to total values)
buffer.go:42
↓ 2 callersFunctionvalidateDataNotEmpty
validateDataNotEmpty checks if buffer has data rows and exits if empty
ftv.go:27
↓ 1 callersMethodGetPercentage
GetPercentage returns the loading percentage (0-100)
init.go:60
↓ 1 callersFunctionS2F
S2F covert string to float64
utils.go:47
↓ 1 callersFunctionallIntItemEqual
check if all item in []int is equal, false for empty array
sepDector.go:216
↓ 1 callersFunctioncalculateMode
(data []float64)
stats.go:98
↓ 1 callersFunctiondetectAndWrapLongColumns
detectAndWrapLongColumns automatically enables wrapping for columns with long content Analyzes first N rows to detect if columns have text longer than
utils.go:243
↓ 1 callersMethoddetectBestSeparator
Analyze all potential separators when common ones don't work
sepDector.go:69
↓ 1 callersMethoddisplay
()
io.go:54
↓ 1 callersFunctiondrawStats
add stats data to stats table
ui.go:150
↓ 1 callersFunctionevaluateFilter
evaluateFilter checks if a cell value matches the filter query based on the operator.
buffer.go:851
↓ 1 callersFunctionfindSubstring
(s, substr string)
utils_test.go:241
↓ 1 callersFunctiongenerateUniqueStrings
Helper functions
string_interning_test.go:228
↓ 1 callersMethodgetInterningStats
getInterningStats returns statistics about string interning usage
buffer.go:745
↓ 1 callersMethodgetPlot
()
stats.go:14
↓ 1 callersMethodgetSummaryData
()
stats.go:12
↓ 1 callersMethodgetSummaryStr
(a []string)
stats.go:124
↓ 1 callersFunctioninitView
initialize tview, buffer
init.go:78
↓ 1 callersFunctionloadDataAsync
loadDataAsync starts async loading and waits for initial data
ftv.go:91
↓ 1 callersFunctionmain
()
ftv.go:157
↓ 1 callersMethodselectBySearch
clear selectedCell of buffer func (b *Buffer) clearSelection() { b.selectedCell = [][]int{} } search string and add result to selectedCell of buffer
buffer.go:776
↓ 1 callersMethodsetDefault
()
args.go:18
↓ 1 callersFunctionshowHelpDialog
showHelpDialog displays the help content as a centered modal dialog
ui.go:942
↓ 1 callersFunctionshowStatsDialog
showStatsDialog displays column statistics as a centered modal dialog
ui.go:1032
next →1–100 of 230, ranked by callers