[ 
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}
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}


  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.

{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}



> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to