Class Row

java.lang.Object
com.snowflake.snowpark_java.Row

public class Row extends Object
One row handed back by DataFrame.collect().

This is the type a handler written against Snowpark expects — rows[0].getString(0) — and it is deliberately NOT Frostlake's own storage.Row, whose only accessor is getValue(int). Values arrive from the engine already typed, so each getter coerces rather than parses: a NUMBER cell is some Number whatever its declared width, and asking for it as an int, a long or a BigDecimal all have to work.

  • Constructor Details

  • Method Details

    • create

      public static Row create(Object... values)
      Snowpark's factory spelling.
    • size

      public int size()
    • get

      public Object get(int index)
    • isNullAt

      public boolean isNullAt(int index)
    • toArray

      public Object[] toArray()
    • getString

      public String getString(int index)
    • getBoolean

      public boolean getBoolean(int index)
    • getByte

      public byte getByte(int index)
    • getShort

      public short getShort(int index)
    • getInt

      public int getInt(int index)
    • getLong

      public long getLong(int index)
    • getFloat

      public float getFloat(int index)
    • getDouble

      public double getDouble(int index)
    • getDecimal

      public BigDecimal getDecimal(int index)
    • getDate

      public Date getDate(int index)
    • getTime

      public Time getTime(int index)
    • getTimestamp

      public Timestamp getTimestamp(int index)
    • getBinary

      public byte[] getBinary(int index)
    • getVariant

      public Variant getVariant(int index)
    • getStruct

      public Row getStruct(int index)
      A nested row, for a value that is itself structured.
    • getList

      public List<Object> getList(int index)
    • getMap

      public Map<?,?> getMap(int index)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object