ignite-1258: fixed PortableObject documentation
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e2425880 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e2425880 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e2425880 Branch: refs/heads/ignite-1258 Commit: e2425880caaec2f19182751dd428c9c1272ce879 Parents: 6b0ac2c Author: Denis Magda <dma...@gridgain.com> Authored: Thu Aug 20 16:27:12 2015 +0300 Committer: Denis Magda <dma...@gridgain.com> Committed: Thu Aug 20 16:27:12 2015 +0300 ---------------------------------------------------------------------- .../org/apache/ignite/portable/PortableObject.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e2425880/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java b/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java index b62b675..c22892d 100644 --- a/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java +++ b/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java @@ -46,21 +46,7 @@ import java.util.*; * * String field = val.field("myFieldName"); * </pre> - * Alternatively, we could also choose a hybrid approach, where, for example, - * the keys are concrete deserialized objects and the values are returned in portable - * format, like so: - * <pre name=code class=java> - * IgniteCache<MyKey, PortableObject> prj = cache.withKeepPortable(); - * - * PortableObject val = prj.get(new MyKey()); - * - * String field = val.field("myFieldName"); - * </pre> - * We could also have the values as concrete deserialized objects and the keys in portable format, - * but such use case is a lot less common because cache keys are usually a lot smaller than values, and - * it may be very cheap to deserialize the keys, but not the values. - * <p> - * And finally, if we have class definitions in the classpath, we may choose to work with deserialized + * Alternatively, if we have class definitions in the classpath, we may choose to work with deserialized * typed objects at all times. In this case we do incur the deserialization cost. However, if * {@link PortableMarshaller#isKeepDeserialized()} is {@code true} then Ignite will only deserialize on the first access * and will cache the deserialized object, so it does not have to be deserialized again: