G
Gregor =?ISO-8859-2?Q?Kova=E8?=
Hi!
What is the best data structure in Java for the next example:
I want to store different properties with their values in a structure that
is fast for inserts and even faster for retrival. It should also provide
the ability to search for only a fraction of the property.
Example:
- MASK_NAME.MASK_FIELD_NAME1.PROPERTY_NAME1 = VALUE1
- MASK_NAME.MASK_FIELD_NAME1.PROPERTY_NAME2 = VALUE2
- MASK_NAME.MASK_FIELD_NAME2.PROPERTY_NAME3 = VALUE3
- MASK_NAME.MASK_FIELD_NAME2.PROPERTY_NAME4 = VALUE4
So I want to store them into a structre and search over them like this:
- get me value for property MASK_NAME.MASK_FIELD_NAME1.PROPERTY_NAME1. This
returns VALUE1.
- get me all the properties for MASK_NAME.MASK_FIELD_NAME1 (specific field
on a form) and their values. This returns PROPERTY_NAME1 = VALUE1 and
PROPERTY_NAME2 = VALUE2
- who has a property named PROPERTY_NAME3. This returns
MASK_NAME.MASK_FIELD_NAME2.
Basically I want to do somekind of SQL queries over this structure.
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
| Gregor Kovac | (e-mail address removed) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
What is the best data structure in Java for the next example:
I want to store different properties with their values in a structure that
is fast for inserts and even faster for retrival. It should also provide
the ability to search for only a fraction of the property.
Example:
- MASK_NAME.MASK_FIELD_NAME1.PROPERTY_NAME1 = VALUE1
- MASK_NAME.MASK_FIELD_NAME1.PROPERTY_NAME2 = VALUE2
- MASK_NAME.MASK_FIELD_NAME2.PROPERTY_NAME3 = VALUE3
- MASK_NAME.MASK_FIELD_NAME2.PROPERTY_NAME4 = VALUE4
So I want to store them into a structre and search over them like this:
- get me value for property MASK_NAME.MASK_FIELD_NAME1.PROPERTY_NAME1. This
returns VALUE1.
- get me all the properties for MASK_NAME.MASK_FIELD_NAME1 (specific field
on a form) and their values. This returns PROPERTY_NAME1 = VALUE1 and
PROPERTY_NAME2 = VALUE2
- who has a property named PROPERTY_NAME3. This returns
MASK_NAME.MASK_FIELD_NAME2.
Basically I want to do somekind of SQL queries over this structure.
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
| Gregor Kovac | (e-mail address removed) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~