def init_docs(self): if self.ws.doc_gen == 'reverse_lookup': self.docs = ReverseLookupDocument(self.ws.size, prefix='n1ql') elif self.ws.doc_gen == 'reverse_range_lookup': self.docs = ReverseRangeLookupDocument( self.ws.size, prefix='n1ql', range_distance=self.ws.range_distance) elif self.ws.doc_gen == 'ext_reverse_lookup': self.docs = ExtReverseLookupDocument(self.ws.size, prefix='n1ql', num_docs=self.ws.items) elif self.ws.doc_gen == 'join': self.docs = JoinedDocument(self.ws.size, prefix='n1ql', num_docs=self.ws.items, num_categories=self.ws.num_categories, num_replies=self.ws.num_replies) elif self.ws.doc_gen == 'ref': self.docs = RefDocument(self.ws.size, prefix='n1ql') elif self.ws.doc_gen == 'profile': self.docs = ProfileDocument(self.ws.size, prefix='n1ql') elif self.ws.doc_gen == 'array_indexing': self.docs = ArrayIndexingDocument(self.ws.size, prefix='n1ql', array_size=self.ws.array_size, num_docs=self.ws.items)
def init_docs(self): if not hasattr(self.ws, 'doc_gen') or self.ws.doc_gen == 'basic': self.docs = Document(self.ws.size) elif self.ws.doc_gen == 'string': self.docs = String(self.ws.size) elif self.ws.doc_gen == 'nested': self.docs = NestedDocument(self.ws.size) elif self.ws.doc_gen == 'reverse_lookup': self.docs = ReverseLookupDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'reverse_range_lookup': self.docs = ReverseRangeLookupDocument(self.ws.size, prefix='n1ql', range_distance=self.ws.range_distance) elif self.ws.doc_gen == 'ext_reverse_lookup': self.docs = ExtReverseLookupDocument(self.ws.size, self.ts.prefix, self.ws.items) elif self.ws.doc_gen == 'join': self.docs = JoinedDocument(self.ws.size, self.ts.prefix, self.ws.items, self.ws.num_categories, self.ws.num_replies) elif self.ws.doc_gen == 'ref': self.docs = RefDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'array_indexing': self.docs = ArrayIndexingDocument(self.ws.size, self.ts.prefix, self.ws.array_size, self.ws.items) elif self.ws.doc_gen == 'profile': self.docs = ProfileDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'import_export_simple': self.docs = ImportExportDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'import_export_array': self.docs = ImportExportDocumentArray(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'import_export_nested': self.docs = ImportExportDocumentNested(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'large_subdoc': self.docs = LargeDocument(self.ws.size) elif self.ws.doc_gen == 'gsi_multiindex': self.docs = GSIMultiIndexDocument(self.ws.size) elif self.ws.doc_gen == 'small_plasma': self.docs = SmallPlasmaDocument(self.ws.size) elif self.ws.doc_gen == 'sequential_plasma': self.docs = SequentialPlasmaDocument(self.ws.size) elif self.ws.doc_gen == 'large_item_plasma': self.docs = LargeItemPlasmaDocument(self.ws.size, self.ws.item_size) elif self.ws.doc_gen == 'varying_item_plasma': self.docs = VaryingItemSizePlasmaDocument(self.ws.size, self.ws.size_variation_min, self.ws.size_variation_max)
def init_docs(self): if not hasattr(self.ws, 'doc_gen') or self.ws.doc_gen == 'basic': self.docs = Document(self.ws.size) elif self.ws.doc_gen == 'string': self.docs = String(self.ws.size) elif self.ws.doc_gen == 'nested': self.docs = NestedDocument(self.ws.size) elif self.ws.doc_gen == 'reverse_lookup': self.docs = ReverseLookupDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'reverse_range_lookup': self.docs = ReverseRangeLookupDocument(self.ws.size, self.ts.prefix, self.ws.range_distance) elif self.ws.doc_gen == 'ext_reverse_lookup': self.docs = ExtReverseLookupDocument(self.ws.size, self.ts.prefix, self.ws.items) elif self.ws.doc_gen == 'hash_join': self.docs = HashJoinDocument(self.ws.size, self.ts.prefix, self.ws.range_distance) elif self.ws.doc_gen == 'join': self.docs = JoinedDocument(self.ws.size, self.ts.prefix, self.ws.items, self.ws.num_categories, self.ws.num_replies) elif self.ws.doc_gen == 'ref': self.docs = RefDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'array_indexing': self.docs = ArrayIndexingDocument(self.ws.size, self.ts.prefix, self.ws.array_size, self.ws.items) elif self.ws.doc_gen == 'array_indexing_unique': self.docs = ArrayIndexingUniqueDocument(self.ws.size, self.ts.prefix, self.ws.array_size, self.ws.items) elif self.ws.doc_gen == 'array_indexing_range_scan': self.docs = ArrayIndexingRangeScanDocument(self.ws.size, self.ts.prefix, self.ws.array_size, self.ws.items) elif self.ws.doc_gen == 'profile': self.docs = ProfileDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'import_export_simple': self.docs = ImportExportDocument(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'import_export_array': self.docs = ImportExportDocumentArray(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'import_export_nested': self.docs = ImportExportDocumentNested(self.ws.size, self.ts.prefix) elif self.ws.doc_gen == 'large': self.docs = LargeDocument(self.ws.size) elif self.ws.doc_gen == 'gsi_multiindex': self.docs = GSIMultiIndexDocument(self.ws.size) elif self.ws.doc_gen == 'small_plasma': self.docs = SmallPlasmaDocument(self.ws.size) elif self.ws.doc_gen == 'sequential_plasma': self.docs = SequentialPlasmaDocument(self.ws.size) elif self.ws.doc_gen == 'large_item_plasma': self.docs = LargeItemPlasmaDocument(self.ws.size, self.ws.item_size) elif self.ws.doc_gen == 'varying_item_plasma': self.docs = VaryingItemSizePlasmaDocument( self.ws.size, self.ws.size_variation_min, self.ws.size_variation_max) elif self.ws.doc_gen == 'eventing_small': self.docs = EventingSmallDocument(self.ws.size) elif self.ws.doc_gen == 'tpc_ds': self.docs = TpcDsDocument() elif self.ws.doc_gen == 'package': self.docs = PackageDocument(self.ws.size) elif self.ws.doc_gen == 'incompressible': self.docs = IncompressibleString(self.ws.size) elif self.ws.doc_gen == 'big_fun': self.docs = BigFunDocument() elif self.ws.doc_gen == 'multibucket': self.docs = MultiBucketDocument(self.ws.size) elif self.ws.doc_gen == 'advancedfilter': self.docs = AdvFilterDocument(self.ws.size) elif self.ws.doc_gen == 'advancedfilterxattr': self.docs = AdvFilterXattrBody(self.ws.size)