You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/08/21 08:49:01 UTC

[43/45] incubator-ignite git commit: ignite-1258: fixed PortableObject documentation

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 <dm...@gridgain.com>
Authored: Thu Aug 20 16:27:12 2015 +0300
Committer: Denis Magda <dm...@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&lt;MyKey, PortableObject&gt; 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: