Hi Deepak,
The datastore supports Collections as a property for an Entity. To the
BigTable, this is a "list property", I.E, a multi-value field in one row in
the datastore. It is fine to add a list of names, i.e.:
Entity e = new Entity("Citynames");
e.setProperty("name", Collections.asList("name1", "name2", "name3'));
DatastoreServiceFactory.getDatastoreService().put(e);
This will create en entry in the datastore with "Citynames" as kind, and
with a property called "name" with the tree values in the list. You may find
more info about what can be stored in an Entity property
here<http://code.google.com/intl/en/appengine/docs/python/datastore/entities.html#Properties_and_Value_Types>,
and a few notes about too many values on the same property of an entity
here<http://code.google.com/intl/en/appengine/docs/python/datastore/queries.html#Big_Entities_and_Exploding_Indexes>
.
Hope this helps,
- Ronoaldo
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/2L4-DpdWMuAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.