You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/07/28 04:49:04 UTC

[jira] [Commented] (SPARK-9395) Create a SpecializedGetters interface to track all the specialized getters

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

Apache Spark commented on SPARK-9395:
-------------------------------------

User 'rxin' has created a pull request for this issue:
https://github.com/apache/spark/pull/7713

> Create a SpecializedGetters interface to track all the specialized getters
> --------------------------------------------------------------------------
>
>                 Key: SPARK-9395
>                 URL: https://issues.apache.org/jira/browse/SPARK-9395
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Reynold Xin
>
> As we are adding more and more specialized getters to more classes, we should have an interface to make sure we always declare all of them in all classes.
> {code}
> public interface SpecializedGetters {
>   boolean isNullAt(int ordinal);
>   boolean getBoolean(int ordinal);
>   byte getByte(int ordinal);
>   short getShort(int ordinal);
>   int getInt(int ordinal);
>   long getLong(int ordinal);
>   float getFloat(int ordinal);
>   double getDouble(int ordinal);
>   Decimal getDecimal(int ordinal);
>   UTF8String getUTF8String(int ordinal);
>   byte[] getBinary(int ordinal);
>   Interval getInterval(int ordinal);
>   InternalRow getStruct(int ordinal, int numFields);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org