Versions in this module Expand all Collapse all v0 v0.2.0 Jan 11, 2023 Changes in this version + func MarshalAggregation(agg query.Aggregation) (*aggContainer, error) + func MarshalPredicate(pred query.Predicate) ([]byte, error) + func MarshalQueries(q []query.Query, config string) ([]byte, error) + func MarshalQuery(q query.Query) ([]byte, error) + func UnmarshalAggregation(data aggContainer) (query.Aggregation, error) + func UnmarshalPredicate(data []byte) (query.Predicate, error) + func UnmarshalQueries(b []byte) ([]query.Query, string, error) + func UnmarshalQuery(b []byte) (*query.Query, error) + type AggregationFactory interface + Generate func(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Aggregation + ID func() string + IsApplicable func(p dataset.DataPath) bool + Type func() reflect.Type + type AggregationFactoryRepo struct + func GetAggregationFactoryRepo() AggregationFactoryRepo + func (repo *AggregationFactoryRepo) Exclude(id string) + func (repo *AggregationFactoryRepo) Include(id string) error + func (repo *AggregationFactoryRepo) SetAll() + func (repo *AggregationFactoryRepo) SetDefault() + func (repo AggregationFactoryRepo) GetAll() []AggregationFactory + func (repo AggregationFactoryRepo) GetAllIDs() []string + func (repo AggregationFactoryRepo) GetByID(id string) *AggregationFactory + func (repo AggregationFactoryRepo) GetChosen() []AggregationFactory + type ArraySizePredicateFactory struct + func (e ArraySizePredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e ArraySizePredicateFactory) ID() string + func (e ArraySizePredicateFactory) Type() reflect.Type + func (factory ArraySizePredicateFactory) IsApplicable(path dataset.DataPath) bool + type Blacklist struct + type BoolEqualityPredicateFactory struct + func (e BoolEqualityPredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e BoolEqualityPredicateFactory) ID() string + func (e BoolEqualityPredicateFactory) Type() reflect.Type + func (factory BoolEqualityPredicateFactory) IsApplicable(path dataset.DataPath) bool + type CountAggregationFactory struct + func (e CountAggregationFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Aggregation + func (e CountAggregationFactory) ID() string + func (e CountAggregationFactory) IsApplicable(p dataset.DataPath) bool + func (e CountAggregationFactory) Type() reflect.Type + type CountAllAggregationFactory struct + func (e CountAllAggregationFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Aggregation + func (e CountAllAggregationFactory) ID() string + func (e CountAllAggregationFactory) IsApplicable(p dataset.DataPath) bool + func (e CountAllAggregationFactory) Type() reflect.Type + type ExistsPredicateFactory struct + func (e ExistsPredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e ExistsPredicateFactory) ID() string + func (e ExistsPredicateFactory) IsApplicable(p dataset.DataPath) bool + func (e ExistsPredicateFactory) Type() reflect.Type + type FloatComparisonPredicateFactory struct + func (e FloatComparisonPredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e FloatComparisonPredicateFactory) ID() string + func (e FloatComparisonPredicateFactory) Type() reflect.Type + func (factory FloatComparisonPredicateFactory) IsApplicable(path dataset.DataPath) bool + type Generator struct + AggregationProb float64 + Aggregations []AggregationFactory + Blacklists map[string]*Blacklist + GoBackProb float64 + MaxChain int + MaxSelectivity float64 + MaxTries int + MinSelectivity float64 + Predicates []PredicateFactory + RandomBrowseProb float64 + WeightedPaths bool + func New(seed int64) Generator + func (g *Generator) GenerateQuerySet(datasets []dataset.DataSet, num_queries int64) (queries []query.Query) + func (g *Generator) GenerateQuerySetWithJoda(datasets []dataset.DataSet, num_queries int64, joda_con joda.JodaConnection) ([]query.Query, error) + func (g *Generator) Network() Network + func (g *Generator) PrintConfig() string + func (g *Generator) Statistics() Statistics + type GroupByAggregationFactory struct + func (e GroupByAggregationFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Aggregation + func (e GroupByAggregationFactory) GenerateWithSubAgg(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand, ...) query.Aggregation + func (e GroupByAggregationFactory) ID() string + func (e GroupByAggregationFactory) IsApplicable(p dataset.DataPath) bool + func (e GroupByAggregationFactory) Type() reflect.Type + type IntEqualityPredicateFactory struct + func (e IntEqualityPredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e IntEqualityPredicateFactory) ID() string + func (e IntEqualityPredicateFactory) Type() reflect.Type + func (factory IntEqualityPredicateFactory) IsApplicable(path dataset.DataPath) bool + type IsStringPredicateFactory struct + func (e IsStringPredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e IsStringPredicateFactory) ID() string + func (e IsStringPredicateFactory) IsApplicable(p dataset.DataPath) bool + func (e IsStringPredicateFactory) Type() reflect.Type + type Network struct + Edges []NetworkEdge + MaxTimestamp uint + Nodes map[string]NetworkNode + type NetworkEdge struct + From string + JumpType int + Query query.Query + Timestamp uint + To string + type NetworkNode struct + DSName string + Original bool + Size uint64 + Timestamp uint + type ObjectSizePredicateFactory struct + func (e ObjectSizePredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e ObjectSizePredicateFactory) ID() string + func (e ObjectSizePredicateFactory) Type() reflect.Type + func (factory ObjectSizePredicateFactory) IsApplicable(path dataset.DataPath) bool + type PredicateFactory interface + Generate func(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + ID func() string + IsApplicable func(p dataset.DataPath) bool + Type func() reflect.Type + type PredicateFactoryRepo struct + func GetPredicateFactoryRepo() PredicateFactoryRepo + func (repo *PredicateFactoryRepo) Exclude(id string) + func (repo *PredicateFactoryRepo) Include(id string) error + func (repo *PredicateFactoryRepo) SetAll() + func (repo *PredicateFactoryRepo) SetDefault() + func (repo PredicateFactoryRepo) GetAll() []PredicateFactory + func (repo PredicateFactoryRepo) GetAllIDs() []string + func (repo PredicateFactoryRepo) GetByID(id string) *PredicateFactory + func (repo PredicateFactoryRepo) GetChosen() []PredicateFactory + type Statistics struct + GoBack int64 + RandomJumps int64 + Stay int64 + type StrEqualityPredicateFactory struct + func (e StrEqualityPredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e StrEqualityPredicateFactory) ID() string + func (e StrEqualityPredicateFactory) Type() reflect.Type + func (factory StrEqualityPredicateFactory) IsApplicable(path dataset.DataPath) bool + type StrPrefixPredicateFactory struct + func (e StrPrefixPredicateFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Predicate + func (e StrPrefixPredicateFactory) ID() string + func (e StrPrefixPredicateFactory) Type() reflect.Type + func (factory StrPrefixPredicateFactory) IsApplicable(path dataset.DataPath) bool + type SumAggregationFactory struct + func (e SumAggregationFactory) Generate(p dataset.DataPath, blacklist *Blacklist, ranGen *rand.Rand) query.Aggregation + func (e SumAggregationFactory) ID() string + func (e SumAggregationFactory) IsApplicable(p dataset.DataPath) bool + func (e SumAggregationFactory) Type() reflect.Type v0.1.0 Mar 28, 2022