diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-02-13 20:56:04 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-02-13 20:56:04 +0200 |
commit | 1b5b09f48e396311aa5ca25d1473e4256da7213f (patch) | |
tree | c5f23ca5bb8738ef0836266a5a30fce0580e7436 | |
parent | 6f75a17ef1e5b13bfe065f4c13efdae8eaf734a9 (diff) |
Update with class comments.
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/query/properties/CloneHelper.java | 3 | ||||
-rw-r--r-- | processing/src/main/java/com/yahoo/processing/request/CloneHelper.java | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/properties/CloneHelper.java b/container-search/src/main/java/com/yahoo/search/query/properties/CloneHelper.java index e0dec5e2d6c..ab6a10a2cff 100644 --- a/container-search/src/main/java/com/yahoo/search/query/properties/CloneHelper.java +++ b/container-search/src/main/java/com/yahoo/search/query/properties/CloneHelper.java @@ -3,6 +3,9 @@ package com.yahoo.search.query.properties; import com.yahoo.search.result.Hit; /** + * Extends com.yahoo.processing.request.CloneHelper with fastpath for + * - com.yahoo.search.result.Hit + * * Created by balder on 13/02/2017. */ public class CloneHelper extends com.yahoo.processing.request.CloneHelper { diff --git a/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java b/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java index 279769514d0..8b639855764 100644 --- a/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java +++ b/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java @@ -14,6 +14,16 @@ import java.util.Map; import java.util.HashMap; /** + * Helps to deep clone complex objects + * The following classes and their subclasses does have a fastpath + * - com.yahoo.component.provider.FreezableClass + * - com.yahoo.processing.request.properties.PublicCloneable BTW, this is the one you should implement too + * if you want the fastpath. + * - java.util.LinkedList + * - java.util.ArrayList + * The rest has the slow path with reflection, + * though using a fast thread safe method cache for speedup. + * * @author : baldersheim */ public class CloneHelper { |