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

[jira] [Updated] (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:all-tabpanel ]

Reynold Xin updated SPARK-9395:
-------------------------------
    Description: 
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}
interface SpecializedGetters {
  public boolean isNullAt(int ordinal);
  public boolean getBoolean(int ordinal);
  public byte getByte(int ordinal);
  public short getShort(int ordinal);
  public int getInt(int ordinal);
  public long getLong(int ordinal);
  public float getFloat(int ordinal);
  public double getDouble(int ordinal);
  public Decimal getDecimal(int ordinal);
  public UTF8String getUTF8String(int ordinal);
  public byte[] getBinary(int ordinal);
  public Interval getInterval(int ordinal);
  public UnsafeRow getStruct(int ordinal, int numFields);
  public ArrayData getArray(int ordinal);
}
{code}


  was:
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.




> 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}
> interface SpecializedGetters {
>   public boolean isNullAt(int ordinal);
>   public boolean getBoolean(int ordinal);
>   public byte getByte(int ordinal);
>   public short getShort(int ordinal);
>   public int getInt(int ordinal);
>   public long getLong(int ordinal);
>   public float getFloat(int ordinal);
>   public double getDouble(int ordinal);
>   public Decimal getDecimal(int ordinal);
>   public UTF8String getUTF8String(int ordinal);
>   public byte[] getBinary(int ordinal);
>   public Interval getInterval(int ordinal);
>   public UnsafeRow getStruct(int ordinal, int numFields);
>   public ArrayData getArray(int ordinal);
> }
> {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