Documentation ¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Error(args ...interface{})
- func ListTables(config *SybilConfig) []string
- func Print(args ...interface{})
- func SetBinPath(binPath string)
- func Warn(args ...interface{})
- type FlagDefs
- type SybilConfig
- type SybilFilter
- type SybilMapRecord
- type SybilQuery
- func (sq *SybilQuery) Aggregate(field string) *SybilQuery
- func (sq *SybilQuery) Execute() ([]SybilResult, error)
- func (sq *SybilQuery) GroupBy(field string) *SybilQuery
- func (sq *SybilQuery) Hist() *SybilQuery
- func (sq *SybilQuery) IntFilterEq(field string, value int) *SybilQuery
- func (sq *SybilQuery) IntFilterGt(field string, value int) *SybilQuery
- func (sq *SybilQuery) IntFilterLt(field string, value int) *SybilQuery
- func (sq *SybilQuery) IntFilterNeq(field string, value int) *SybilQuery
- func (sq *SybilQuery) Limit(limit int) *SybilQuery
- func (sq *SybilQuery) LogHist() *SybilQuery
- func (sq *SybilQuery) ReadRowLog(v bool) *SybilQuery
- func (sq *SybilQuery) Rollup() *SybilQuery
- func (sq *SybilQuery) Samples() *SybilQuery
- func (sq *SybilQuery) StrFilterEq(field string, value string) *SybilQuery
- func (sq *SybilQuery) StrFilterRegex(field string, value string) *SybilQuery
- func (sq *SybilQuery) TimeSeries(timeCol string, bucket int) *SybilQuery
- func (sq *SybilQuery) WeightCol(field string) *SybilQuery
- type SybilRecord
- type SybilResult
- type SybilTable
- func (t *SybilTable) AddJSONRecords(records [][]byte)
- func (t *SybilTable) AddMapRecords(records []map[string]interface{})
- func (t *SybilTable) AddRecords(records interface{})
- func (t *SybilTable) AddStructRecords(records []interface{})
- func (t *SybilTable) AddSybilMapRecords(records []SybilMapRecord)
- func (t *SybilTable) DigestRecords()
- func (t *SybilTable) FlushRecords()
- func (t *SybilTable) GetTableInfo() *sybil.TableInfo
- func (t *SybilTable) Query() *SybilQuery
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG_FLUSH = false
View Source
var DEBUG_SYBIL = os.Getenv("DEBUG_SYBIL") != ""
View Source
var ENV_FLAG = os.Getenv("DEBUG")
extracted from and influenced by https://groups.google.com/forum/#!topic/golang-nuts/ct99dtK2Jo4 use env variable DEBUG=1 to turn on debug output
View Source
var FIELD_SEPARATOR = string([]byte{30})
View Source
var FILTER_SEPARATOR = string([]byte{31})
View Source
var FLAGS = FlagDefs{}
View Source
var SYBIL_BIN = "sybil"
{{{ TYPES & STRUCTS
Functions ¶
Types ¶
type SybilConfig ¶
type SybilFilter ¶
type SybilMapRecord ¶
type SybilMapRecord map[string]interface{}
type SybilQuery ¶
type SybilQuery struct { Config *SybilConfig Flags []string TimeBucket int TimeCol string Strs []string Ints []string Sets []string IntFilters []SybilFilter StrFilters []SybilFilter SetFilters []SybilFilter Results string ReadLog bool // whether the query should read the row store ingestion log }
func (*SybilQuery) Aggregate ¶
func (sq *SybilQuery) Aggregate(field string) *SybilQuery
SELECTING COLUMNS
func (*SybilQuery) Execute ¶
func (sq *SybilQuery) Execute() ([]SybilResult, error)
func (*SybilQuery) GroupBy ¶
func (sq *SybilQuery) GroupBy(field string) *SybilQuery
func (*SybilQuery) Hist ¶
func (sq *SybilQuery) Hist() *SybilQuery
func (*SybilQuery) IntFilterEq ¶
func (sq *SybilQuery) IntFilterEq(field string, value int) *SybilQuery
FILTERS
func (*SybilQuery) IntFilterGt ¶
func (sq *SybilQuery) IntFilterGt(field string, value int) *SybilQuery
func (*SybilQuery) IntFilterLt ¶
func (sq *SybilQuery) IntFilterLt(field string, value int) *SybilQuery
func (*SybilQuery) IntFilterNeq ¶
func (sq *SybilQuery) IntFilterNeq(field string, value int) *SybilQuery
func (*SybilQuery) Limit ¶
func (sq *SybilQuery) Limit(limit int) *SybilQuery
func (*SybilQuery) LogHist ¶
func (sq *SybilQuery) LogHist() *SybilQuery
func (*SybilQuery) ReadRowLog ¶
func (sq *SybilQuery) ReadRowLog(v bool) *SybilQuery
func (*SybilQuery) Rollup ¶
func (sq *SybilQuery) Rollup() *SybilQuery
func (*SybilQuery) Samples ¶
func (sq *SybilQuery) Samples() *SybilQuery
func (*SybilQuery) StrFilterEq ¶
func (sq *SybilQuery) StrFilterEq(field string, value string) *SybilQuery
func (*SybilQuery) StrFilterRegex ¶
func (sq *SybilQuery) StrFilterRegex(field string, value string) *SybilQuery
func (*SybilQuery) TimeSeries ¶
func (sq *SybilQuery) TimeSeries(timeCol string, bucket int) *SybilQuery
func (*SybilQuery) WeightCol ¶
func (sq *SybilQuery) WeightCol(field string) *SybilQuery
type SybilRecord ¶
func NewRecord ¶
func NewRecord() *SybilRecord
func (*SybilRecord) Int ¶
func (r *SybilRecord) Int(field string, value int) *SybilRecord
func (*SybilRecord) JSON ¶
func (r *SybilRecord) JSON() []byte
func (*SybilRecord) Set ¶
func (r *SybilRecord) Set(field string, value []string) *SybilRecord
func (*SybilRecord) Str ¶
func (r *SybilRecord) Str(field string, value string) *SybilRecord
type SybilResult ¶
type SybilResult map[string]interface{}
type SybilTable ¶
type SybilTable struct { Config *SybilConfig NewRecords []interface{} }
func (*SybilTable) AddJSONRecords ¶
func (t *SybilTable) AddJSONRecords(records [][]byte)
{{{ INGESTION We ingest JSON records by unmarshalling them into an interface{}, then we place the interface{} into out table's append log
func (*SybilTable) AddMapRecords ¶
func (t *SybilTable) AddMapRecords(records []map[string]interface{})
func (*SybilTable) AddRecords ¶
func (t *SybilTable) AddRecords(records interface{})
func (*SybilTable) AddStructRecords ¶
func (t *SybilTable) AddStructRecords(records []interface{})
this API lets you ingest records as arbitrary interfaces it validates that the interface{} can be marshalled into JSON before placing the interface into the actual record list
func (*SybilTable) AddSybilMapRecords ¶
func (t *SybilTable) AddSybilMapRecords(records []SybilMapRecord)
func (*SybilTable) DigestRecords ¶
func (t *SybilTable) DigestRecords()
This API will calls digest on a sybil table
func (*SybilTable) FlushRecords ¶
func (t *SybilTable) FlushRecords()
This API will actually record sybil records into a sybil table
func (*SybilTable) GetTableInfo ¶
func (t *SybilTable) GetTableInfo() *sybil.TableInfo
func (*SybilTable) Query ¶
func (t *SybilTable) Query() *SybilQuery
Source Files ¶
Click to show internal directories.
Click to hide internal directories.