indexing description: "[ Test for Eiffel-GigaSpaces wrapper loosely based on POCO benchmark example ]" status: "See notice at end of class." legal: "See notice at end of class." date: "$Date$" revision: "$Revision$" class BENCHMARK_WITH_PAYLOAD_AND_PRIMITIVES inherit BENCHMARK create make feature -- Creation make (parameters: BENCHMARK_PARAMETERS) is do initialize_parameters (parameters) end feature create_new_object_template: BENCHMARK_BASE_OBJECT is do create {MY_PACKAGE_MY_POCO} Result.make end create_new_object_for_benchmark: BENCHMARK_BASE_OBJECT is local string_payload: STRING res: MY_PACKAGE_MY_POCO do create string_payload.make_filled ('1', payload_size) create res.make res.set_my_string_value (string_payload) Result := res end update_object (an_object: BENCHMARK_BASE_OBJECT; index: INTEGER) is -- Updates the object data for update test local res: MY_PACKAGE_MY_POCO do res ?= an_object if res /= Void then res.set_id (index) res.set_my_string_value ("updated") end end create_benchmark_object_from_entry (an_entry: EGS_ENTRY): BENCHMARK_BASE_OBJECT is do if an_entry /= Void then create {MY_PACKAGE_MY_POCO} Result.make_from_entry (an_entry) end end feature indexing copyright: "Copyright (c) 2008, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end