[ 
https://issues.apache.org/jira/browse/RYA-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16122460#comment-16122460
 ] 

ASF GitHub Bot commented on RYA-250:
------------------------------------

Github user isper3at commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/153#discussion_r132585736
  
    --- Diff: 
common/rya.api/src/main/java/org/apache/rya/api/domain/RyaTypeUtils.java ---
    @@ -24,12 +24,44 @@
     import org.joda.time.DateTimeZone;
     import org.joda.time.format.ISODateTimeFormat;
     import org.openrdf.model.URI;
    +import org.openrdf.model.impl.URIImpl;
     import org.openrdf.model.vocabulary.XMLSchema;
     
    +import com.google.common.collect.ImmutableMap;
    +
     /**
      * Utility methods for using {@link RyaType}.
      */
     public final class RyaTypeUtils {
    +    private static final ImmutableMap<Class<?>, RyaTypeMethod> METHOD_MAP =
    +        ImmutableMap.<Class<?>, RyaTypeMethod>builder()
    +            .put(Boolean.class, (v) -> booleanRyaType((Boolean) v))
    +            .put(Byte.class, (v) -> byteRyaType((Byte) v))
    +            .put(Date.class, (v) -> dateRyaType((Date) v))
    +            .put(DateTime.class, (v) -> dateRyaType((DateTime) v))
    +            .put(Double.class, (v) -> doubleRyaType((Double) v))
    +            .put(Float.class, (v) -> floatRyaType((Float) v))
    +            .put(Integer.class, (v) -> intRyaType((Integer) v))
    +            .put(Long.class, (v) -> longRyaType((Long) v))
    +            .put(Short.class, (v) -> shortRyaType((Short) v))
    +            .put(String.class, (v) -> stringRyaType((String) v))
    +            .put(URI.class, (v) -> uriRyaType((URI) v))
    +            .put(URIImpl.class, (v) -> uriRyaType((URIImpl) v))
    +            .build();
    +
    +    /**
    +     * Represents a method inside the {@link RyaTypeUtils} class that can 
be
    +     * call.
    +     */
    +    private static interface RyaTypeMethod {
    --- End diff --
    
    ignore this


> Smart URI avoid data duplication
> --------------------------------
>
>                 Key: RYA-250
>                 URL: https://issues.apache.org/jira/browse/RYA-250
>             Project: Rya
>          Issue Type: Task
>          Components: dao
>    Affects Versions: 3.2.10
>            Reporter: Eric White
>            Assignee: Eric White
>             Fix For: 3.2.10
>
>
> Implement Smart URI methods for avoiding data duplication.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to