Class GorSparkRowBase

java.lang.Object
org.gorpipe.gor.model.Row
org.gorpipe.spark.GorSparkRowBase
All Implemented Interfaces:
Serializable, Comparable<org.gorpipe.gor.model.Row>, org.apache.spark.sql.Row, org.gorpipe.gor.model.ColumnValueProvider, scala.Serializable
Direct Known Subclasses:
SparkGorRow, SparkRow

public abstract class GorSparkRowBase extends org.gorpipe.gor.model.Row implements org.apache.spark.sql.Row
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.gorpipe.gor.model.Row

    org.gorpipe.gor.model.Row.SortInfo, org.gorpipe.gor.model.Row.SortOrder, org.gorpipe.gor.model.Row.SortType
  • Field Summary

    Fields inherited from class org.gorpipe.gor.model.Row

    bH, chr, isProgress, pos
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    addColumns(int num)
     
    abstract void
     
    abstract Object
    apply(int i)
     
    abstract double
    colAsDouble(int colNum)
     
    abstract int
    colAsInt(int colNum)
     
    abstract long
    colAsLong(int colNum)
     
    abstract CharSequence
    colAsString(int colNum)
     
    abstract CharSequence
    colsSlice(int startCol, int stopCol)
     
    abstract org.apache.spark.sql.Row
     
    abstract double
    doubleValue(int col)
     
    abstract Object
    get(int i)
     
    abstract CharSequence
     
    abstract boolean
    getBoolean(int i)
     
    abstract float
    getFloat(int i)
     
    abstract int
    getInt(int i)
     
    abstract long
    getLong(int i)
     
    abstract String
    getString(int i)
     
    abstract int
    intValue(int col)
     
    abstract boolean
    isNullAt(int i)
     
    abstract int
     
    abstract long
    longValue(int col)
     
    abstract int
     
    abstract String
     
    abstract int
     
    abstract char
    peekAtColumn(int n)
     
    abstract void
    removeColumn(int n)
     
    abstract void
    resize(int newsize)
     
    abstract org.gorpipe.gor.model.Row
    rowWithSelectedColumns(int[] columnIndices)
     
    abstract int
    sa(int i)
     
    abstract org.apache.spark.sql.types.StructType
     
    abstract String
    selectedColumns(int[] columnIndices)
     
    abstract void
    setColumn(int k, String val)
     
    abstract org.gorpipe.gor.model.Row
    slicedRow(int startCol, int stopCol)
     
    abstract String
    stringValue(int col)
     
    abstract String
     
    abstract String
     
    abstract void
    writeRow(Writer outputStream)
     
    abstract void
     

    Methods inherited from class org.gorpipe.gor.model.Row

    advancedCompare, atPriorPos, atSamePos, colAsBytes, compareTo, copyRow, countColumns, equals, getSplitArray, joinedWithSlice, joinedWithSliceAndAddedColumn, otherColsSlice, rowWithAddedColumn, rowWithAddedColumns, rowWithAddedColumns, setColumns, writeNorRowToStream

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.spark.sql.Row

    anyNull, equals, fieldIndex, getAs, getAs, getByte, getDate, getDecimal, getDouble, getInstant, getJavaMap, getList, getLocalDate, getMap, getSeq, getShort, getStruct, getTimestamp, getValuesMap, hashCode, json, jsonValue, mkString, mkString, mkString, prettyJson, size, toSeq
  • Constructor Details

    • GorSparkRowBase

      public GorSparkRowBase()
  • Method Details

    • apply

      public abstract Object apply(int i)
      Specified by:
      apply in interface org.apache.spark.sql.Row
    • get

      public abstract Object get(int i)
      Specified by:
      get in interface org.apache.spark.sql.Row
    • isNullAt

      public abstract boolean isNullAt(int i)
      Specified by:
      isNullAt in interface org.apache.spark.sql.Row
    • getString

      public abstract String getString(int i)
      Specified by:
      getString in interface org.apache.spark.sql.Row
    • copy

      public abstract org.apache.spark.sql.Row copy()
      Specified by:
      copy in interface org.apache.spark.sql.Row
    • getBoolean

      public abstract boolean getBoolean(int i)
      Specified by:
      getBoolean in interface org.apache.spark.sql.Row
    • getInt

      public abstract int getInt(int i)
      Specified by:
      getInt in interface org.apache.spark.sql.Row
    • getLong

      public abstract long getLong(int i)
      Specified by:
      getLong in interface org.apache.spark.sql.Row
    • getFloat

      public abstract float getFloat(int i)
      Specified by:
      getFloat in interface org.apache.spark.sql.Row
    • schema

      public abstract org.apache.spark.sql.types.StructType schema()
      Specified by:
      schema in interface org.apache.spark.sql.Row
    • stringValue

      public abstract String stringValue(int col)
      Specified by:
      stringValue in interface org.gorpipe.gor.model.ColumnValueProvider
    • intValue

      public abstract int intValue(int col)
      Specified by:
      intValue in interface org.gorpipe.gor.model.ColumnValueProvider
    • longValue

      public abstract long longValue(int col)
      Specified by:
      longValue in interface org.gorpipe.gor.model.ColumnValueProvider
    • doubleValue

      public abstract double doubleValue(int col)
      Specified by:
      doubleValue in interface org.gorpipe.gor.model.ColumnValueProvider
    • toColString

      public abstract String toColString()
      Specified by:
      toColString in class org.gorpipe.gor.model.Row
    • colAsInt

      public abstract int colAsInt(int colNum)
      Specified by:
      colAsInt in class org.gorpipe.gor.model.Row
    • colAsDouble

      public abstract double colAsDouble(int colNum)
      Specified by:
      colAsDouble in class org.gorpipe.gor.model.Row
    • colAsLong

      public abstract long colAsLong(int colNum)
      Specified by:
      colAsLong in class org.gorpipe.gor.model.Row
    • colAsString

      public abstract CharSequence colAsString(int colNum)
      Specified by:
      colAsString in class org.gorpipe.gor.model.Row
    • otherCols

      public abstract String otherCols()
      Specified by:
      otherCols in class org.gorpipe.gor.model.Row
    • colsSlice

      public abstract CharSequence colsSlice(int startCol, int stopCol)
      Specified by:
      colsSlice in class org.gorpipe.gor.model.Row
    • getAllCols

      public abstract CharSequence getAllCols()
      Specified by:
      getAllCols in class org.gorpipe.gor.model.Row
    • toString

      public abstract String toString()
      Specified by:
      toString in interface org.apache.spark.sql.Row
      Overrides:
      toString in class Object
    • numCols

      public abstract int numCols()
      Specified by:
      numCols in class org.gorpipe.gor.model.Row
    • selectedColumns

      public abstract String selectedColumns(int[] columnIndices)
      Specified by:
      selectedColumns in class org.gorpipe.gor.model.Row
    • otherColsLength

      public abstract int otherColsLength()
      Specified by:
      otherColsLength in class org.gorpipe.gor.model.Row
    • addSingleColumnToRow

      public abstract void addSingleColumnToRow(String rowString)
      Specified by:
      addSingleColumnToRow in class org.gorpipe.gor.model.Row
    • slicedRow

      public abstract org.gorpipe.gor.model.Row slicedRow(int startCol, int stopCol)
      Specified by:
      slicedRow in class org.gorpipe.gor.model.Row
    • rowWithSelectedColumns

      public abstract org.gorpipe.gor.model.Row rowWithSelectedColumns(int[] columnIndices)
      Specified by:
      rowWithSelectedColumns in class org.gorpipe.gor.model.Row
    • sa

      public abstract int sa(int i)
      Specified by:
      sa in class org.gorpipe.gor.model.Row
    • resize

      public abstract void resize(int newsize)
      Specified by:
      resize in class org.gorpipe.gor.model.Row
    • setColumn

      public abstract void setColumn(int k, String val)
      Specified by:
      setColumn in class org.gorpipe.gor.model.Row
    • addColumns

      public abstract void addColumns(int num)
      Specified by:
      addColumns in class org.gorpipe.gor.model.Row
    • removeColumn

      public abstract void removeColumn(int n)
      Specified by:
      removeColumn in class org.gorpipe.gor.model.Row
    • peekAtColumn

      public abstract char peekAtColumn(int n)
      Specified by:
      peekAtColumn in class org.gorpipe.gor.model.Row
    • writeRow

      public abstract void writeRow(Writer outputStream) throws IOException
      Specified by:
      writeRow in class org.gorpipe.gor.model.Row
      Throws:
      IOException
    • writeRowToStream

      public abstract void writeRowToStream(OutputStream outputStream) throws IOException
      Specified by:
      writeRowToStream in class org.gorpipe.gor.model.Row
      Throws:
      IOException
    • length

      public abstract int length()
      Specified by:
      length in interface org.apache.spark.sql.Row
      Specified by:
      length in class org.gorpipe.gor.model.Row