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 == '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()
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 == 'eventing_counter': self.docs = EventingCounterDocument(self.ws.size) elif self.ws.doc_gen == 'grouped': self.docs = GroupedDocument(self.ws.size, self.ws.doc_groups) elif self.ws.doc_gen == 'large_item_grouped': self.docs = LargeItemGroupedDocument(self.ws.size, self.ws.doc_groups, self.ws.item_size) elif self.ws.doc_gen == 'large_item_grouped_keysize': self.docs = LargeItemGroupedDocumentKeySize( self.ws.size, self.ws.doc_groups, self.ws.item_size) elif self.ws.doc_gen == 'small_plasma_grouped': self.docs = SmallPlasmaGroupedDocument(self.ws.size, self.ws.doc_groups) 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) elif self.ws.doc_gen == 'hundred_index_doc': self.docs = HundredIndexDocument(self.ws.size, self.ws.size_variation_min, self.ws.size_variation_max) elif self.ws.doc_gen == 'large_grouped_doc': self.docs = LargeGroupedDocument(self.ws.size, self.ws.doc_groups)