mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 11:57:51 +00:00
This commit adds the ability to provide a `--kafka-config` command line argument referncing a toml file to configure kafka.
20 lines
456 B
Go
20 lines
456 B
Go
package batch
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/featurebasedb/featurebase/v3/dax"
|
|
)
|
|
|
|
// Batcher is an interface implemented by anything which can allocate new
|
|
// batches.
|
|
type Batcher interface {
|
|
NewBatch(cfg Config, tbl *dax.Table, fields []*dax.Field) (RecordBatch, error)
|
|
}
|
|
|
|
// Config is the configuration options passed to NewBatch for any implementation
|
|
// of the Batcher interface.
|
|
type Config struct {
|
|
Size int
|
|
MaxStaleness time.Duration
|
|
}
|