MCPcopy Create free account

hub / github.com/AdRoll/baker / functions

Functions846 in github.com/AdRoll/baker

↓ 4 callersFunctionassertValidConfigHelp
(t *testing.T, name string, cfg interface{})
help_test.go:15
↓ 4 callersFunctionbenchmarkColdPutNoFlush
(b *testing.B, ncells int)
pkg/buffercache/bench_test.go:68
↓ 4 callersFunctionbenchmarkHotPutNoFlush
(b *testing.B, nkeys int)
pkg/buffercache/bench_test.go:28
↓ 4 callersFunctionbenchmarkTopology
(b *testing.B, nlines int, raw, sharding bool)
bench_test.go:21
↓ 4 callersMethodcoldCellIdx
()
pkg/buffercache/location.go:29
↓ 4 callersFunctiondoOneRound
(t *testing.T, path string, raw bool)
output/sqlite_test.go:70
↓ 4 callersFunctionfillComponentsAndLoadConfig
(t *testing.T, toml string, user ...baker.UserDesc)
user_config_test.go:13
↓ 4 callersFunctionmakeTestLog
(tb testing.TB, dir, fn string, numlines int)
input/list_test.go:55
↓ 4 callersFunctionnewColdCache
newColdCache returns a coldCache with len(bsizes) buckets, each of which can hold ncells cells (or buffers), bsizes is the list of bucket cell sizes.
pkg/buffercache/cold.go:27
↓ 4 callersFunctionnextSplit
nextSplit returns the filename indicating the next split considering the following splitting rules: - the part number is the string such '.part-XXX' w
pkg/splitwriter/split_writer.go:284
↓ 4 callersFunctionopen
(fname string)
pkg/splitwriter/split_writer.go:53
↓ 4 callersMethodprocessListFile
(f io.Reader)
input/list.go:218
↓ 3 callersMethodDurationWithTags
DurationWithTags adds a duration to an histogram and associates that duration with a set of tags.
metrics_client.go:55
↓ 3 callersMethodFreeMem
This function is called when the filter is finished with the memory received through the input channel. Since the memory was allocated by Input, it is
api.go:81
↓ 3 callersFunctionMainCLI
MainCLI provides a handy way to quickly create a command-line interface to Baker by providing the list of components available to build and run a topo
baker_cli.go:29
↓ 3 callersFunctionNewCompressedInput
(opener func(fn string) (io.ReadCloser, int64, time.Time, *url.URL, error), sizer func(fn string) (int64, erro
input/inpututils/compressedstream.go:154
↓ 3 callersFunctionNewS3Input
(region, bucket string)
input/inpututils/s3.go:24
↓ 3 callersFunctionNewStatsDumper
NewStatsDumper creates and initializes a StatsDumper using the given topology and writing stats on standard output. It also exports metrics via the Me
stats.go:32
↓ 3 callersMethodNoMoreFiles
Signal compressedInput that we've finished enqueuing files, and it can exit whenever it has finished processing what was already enqueued. This can be
input/inpututils/compressedstream.go:238
↓ 3 callersMethodProcess
(l baker.Record, next func(baker.Record))
filter/metadata_url.go:57
↓ 3 callersMethodPublishedMetrics
PublishedMetrics returns a list of strings, each of which represent arguments and method of calls to methods of the baker.MetricsClient interface. Pre
testutil/mock_metrics.go:34
↓ 3 callersMethodRun
Run starts dumping stats every second on standard output. Call stop() to stop periodically dumping stats, this prints stats one last time.
stats.go:197
↓ 3 callersMethodSetOutputChannel
(data chan<- *baker.Data)
input/inpututils/compressedstream.go:208
↓ 3 callersMethodadd
(size uint32, ll baker.Record, valid bool)
output/stats.go:49
↓ 3 callersMethodevaluateURLs
evaluateURLs evaluates urls using the current configuration..
filter/external_match.go:97
↓ 3 callersFunctiongetCorpus
()
input/inpututils/fastgzreader_test.go:14
↓ 3 callersFunctionmakeWriter
(t *testing.T, raw bool, path string, truncate bool)
output/sqlite_test.go:16
↓ 3 callersFunctionnewBucket
newBucket instantiates a new bucket with ncells cells, each of which can hold 'cellbytes' bytes long (actually cellbytes - 4 since the buffer length i
pkg/buffercache/cold.go:88
↓ 3 callersFunctionnewFilterDoc
(desc FilterDesc)
help_config.go:46
↓ 3 callersFunctionnewInputDoc
(desc InputDesc)
help_config.go:28
↓ 3 callersFunctionnewMetricsDoc
(desc MetricsDesc)
help_config.go:101
↓ 3 callersFunctionnewOutputDoc
(desc OutputDesc)
help_config.go:64
↓ 3 callersFunctionnewUploadDoc
(desc UploadDesc)
help_config.go:83
↓ 3 callersMethodprint
(w io.Writer)
output/stats.go:65
↓ 3 callersMethodputInCold
putInCold puts buf in the cold cache if its size fits it, otherwise the buffer is put into the hot cache.
pkg/buffercache/cache.go:249
↓ 3 callersMethodputInHot
putInHot places buf in the hot cache, copying it into a new hot cache buffer if that's the first with that key, or appending to the previous buffer wi
pkg/buffercache/cache.go:276
↓ 3 callersMethodsend
(data *baker.Data)
input/tcp.go:124
↓ 3 callersMethodsend
(data *baker.Data)
input/inpututils/compressedstream.go:212
↓ 3 callersFunctionsimpleHash
(r baker.Record, idx baker.FieldIndex)
examples/advanced/main.go:60
↓ 3 callersFunctiontestFileWriterIntegrationDeterministic
testFileWriterIntegration builds and run a topology reading from testdata/filewriter/input.csv.log.zst and using the FileWriter output, configured wit
output/filewriter_test.go:286
↓ 3 callersFunctiontestNewConfigFromTOMLRequiredFields
(t *testing.T, name, toml string)
config_api_test.go:125
↓ 2 callersFunctionCheckRequiredFields
CheckRequiredFields checks that all fields that are tagged as required in cfg's type have actually been set to a value other than the field type zero
config.go:555
↓ 2 callersFunctionCopyDirectory
(scrDir, dest string)
testutil/dir.go:10
↓ 2 callersMethodDeltaCount
DeltaCount increments the value of a metric of type counter by delta. delta must be positive.
metrics_client.go:33
↓ 2 callersMethodGaugeWithTags
GaugeWithTags sets the value of a metric of type gauge and associates that value with a set of tags.
metrics_client.go:20
↓ 2 callersMethodMeta
Meta returns the metadata having the given specific key, if any.
logline.go:228
↓ 2 callersFunctionNew
New returns an io.WriteCloser that writes to fname; when it's closed, fname will be split in multiple files each of which having at most maxsize bytes
pkg/splitwriter/split_writer.go:28
↓ 2 callersFunctionNewExpandJSON
(cfg baker.FilterParams)
filter/expand_json.go:63
↓ 2 callersFunctionNewExternalMatch
(cfg baker.FilterParams)
filter/external_match.go:111
↓ 2 callersFunctionNewFileWriter
(cfg baker.OutputParams)
output/filewriter.go:136
↓ 2 callersFunctionNewFormatTime
(cfg baker.FilterParams)
filter/format_time.go:85
↓ 2 callersFunctionNewHook
NewHook returns a Logrus hook that forwards log entries as events to a statsd client, such as the datadog-agent. Log entries with a level higher than
metrics/datadog/hook.go:26
↓ 2 callersFunctionNewMetadataUrl
(cfg baker.FilterParams)
filter/metadata_url.go:39
↓ 2 callersFunctionNewSQLite
(isRaw bool)
output/sqlite.go:126
↓ 2 callersFunctionNewTimestamp
NewTimestamp creates and configures a Timestamp filter.
filter/timestamp.go:31
↓ 2 callersFunctionNewTimestampRange
NewTimestampRange creates and configures a TimestampRange filter.
filter/timestamp_range.go:38
↓ 2 callersMethodParseFile
(fn string)
input/inpututils/compressedstream.go:247
↓ 2 callersFunctionPrintHelp
PrintHelp prints the help message for the given component, identified by its name. When name is '*' it shows the help messages for all components. Th
help.go:51
↓ 2 callersMethodProcess
(l baker.Record, next func(baker.Record))
filter/expand_json.go:103
↓ 2 callersMethodProcess
(l baker.Record, next func(baker.Record))
filter/format_time.go:113
↓ 2 callersMethodRawCountWithTags
RawCountWithTags sets the value of a metric or type counter and associates that value with a set of tags.
metrics_client.go:29
↓ 2 callersFunctionRenderHelpMarkdown
RenderHelpMarkdown prints markdown formatted help for a single component or for all of them (with name = '*'), and renders it so that it can be printe
help_markdown.go:14
↓ 2 callersFunctionRequiredFields
RequiredFields returns the names of the underlying configuration structure fields which are tagged as required. To tag a field as being required, a "r
config.go:530
↓ 2 callersMethodSetWriter
SetWriter sets the writer into which stats are written. SetWriter must be called before Run().
stats.go:49
↓ 2 callersFunctionTempDir
TempDir is a test helper that creates a temporary directory, returns its name and a function which when called removes that directory. This is useful
testutil/helpers.go:22
↓ 2 callersMethodWrite
(buf []byte)
output/filewriter.go:489
↓ 2 callersMethodWrite
(p []byte)
pkg/splitwriter/split_writer.go:76
↓ 2 callersFunctionassertPanics
(t *testing.T, f func())
pkg/buffercache/helper_test.go:20
↓ 2 callersFunctionassignFieldMapping
assignFieldMapping verifies that field mapping has been set once, but only once (either in cfg or comp). Then if that is the case, assignFieldMapping
config.go:427
↓ 2 callersFunctionassignValidationMapping
assignValidationMapping verifies that validation has been set once either in comp or in cfg. If validation has not been set assignValidationMapping ge
config.go:474
↓ 2 callersMethodclearBit
clearBit clears bit i (0-based, starting from LSB)
pkg/buffercache/bitmap.go:48
↓ 2 callersMethodcopyByte
copyByte copies c at index pos of the internal buffer, growing it if necessary.
pkg/buffercache/compressor.go:124
↓ 2 callersFunctioncountLines
countLines returns the number of lines in a file, either compressed (zstd/gz) or uncompressed.
output/filewriter_test.go:531
↓ 2 callersMethoddel
(c *client)
output/websocket/server.go:45
↓ 2 callersFunctiondoOneRoundTruncate
(t *testing.T, path string, truncate, raw bool)
output/sqlite_test.go:74
↓ 2 callersMethoddumpNow
()
stats.go:51
↓ 2 callersMethodfillCreateRecordDefault
()
config.go:173
↓ 2 callersMethodfillDefaults
()
filter/dedup.go:35
↓ 2 callersFunctionfindFirstZero64
findFirstZero64 returns the index of the first bit at 0, starting from the LSB (least significant bit).
pkg/buffercache/bitmap.go:27
↓ 2 callersMethodfindFreeCell
findFreeCell returns the index of the first free cell or false.
pkg/buffercache/bitmap.go:14
↓ 2 callersMethodflush
()
output/dyndb.go:366
↓ 2 callersMethodflushBlocks
flushBlocks decompresses and flushes consecutive blocks in buf, interleaving each of them with a `\n` in the decompressed buffer.
pkg/buffercache/cache.go:200
↓ 2 callersMethodflushHot
()
pkg/buffercache/cache.go:180
↓ 2 callersFunctionformatToLayout
(format string)
filter/format_time.go:125
↓ 2 callersMethodgrow
()
pkg/buffercache/compressor.go:62
↓ 2 callersFunctionhttpGet
(url string)
input/list.go:432
↓ 2 callersMethodinit
()
pkg/buffercache/compressor.go:74
↓ 2 callersFunctionisValidScheme
Check if scheme is s3 or s3a or s3n
input/inpututils/s3.go:119
↓ 2 callersFunctionlineAt
lineAt returns the line in text starting at offset offs.
testutil/golden.go:71
↓ 2 callersMethodmakePath
(tmpl *template.Template)
output/filewriter.go:425
↓ 2 callersFunctionmakeUnivocal
makeUnivocal ensure each string in slist is univocal, appending '_2' to duplicates, '_3' to triplicates, and so on. Non-repeated strings are not modif
topology.go:406
↓ 2 callersFunctionmakeWriteCloser
makeWriteCloser converts an io.Writer and a Close function into a WriteCloser.
output/filewriter.go:463
↓ 2 callersFunctionmockS3Service
(t *testing.T, generatedFiles, generatedRecords int, getManifest bool)
input/list_test.go:346
↓ 2 callersMethodmove
(sourceFilePath string)
upload/s3.go:189
↓ 2 callersMethodmoveToHotCache
moveToHotCache moves a buffer from the cold to the hot cache. loc represents the location of the buffer in the cold cache.
pkg/buffercache/cache.go:344
↓ 2 callersFunctionnewClient
newClient creates a baker.MetricsClient that pushes to the datadog server using the dogstatsd format. All exported metrics will have a name prepended
metrics/datadog/client.go:42
↓ 2 callersMethodnewFile
(path string)
output/filewriter.go:374
↓ 2 callersFunctionnthFile
(n int)
upload/s3_integration_test.go:31
↓ 2 callersMethodopenFile
Open a file and return the io Reader, the size, the last modification, and the path as URL. If the sizeOnly parameter is true no io Reader will be ret
input/list.go:89
↓ 2 callersMethodparseFileTyped
(fn string, comp compressionType)
input/inpututils/compressedstream.go:255
← previousnext →101–200 of 846, ranked by callers