Class GorSparkRowBase

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • 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
      GorSparkRowBase()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void addColumns​(int num)  
      abstract void addSingleColumnToRow​(java.lang.String rowString)  
      abstract java.lang.Object apply​(int i)  
      abstract double colAsDouble​(int colNum)  
      abstract int colAsInt​(int colNum)  
      abstract long colAsLong​(int colNum)  
      abstract java.lang.CharSequence colAsString​(int colNum)  
      abstract java.lang.CharSequence colsSlice​(int startCol, int stopCol)  
      abstract org.apache.spark.sql.Row copy()  
      abstract double doubleValue​(int col)  
      abstract java.lang.Object get​(int i)  
      abstract java.lang.CharSequence getAllCols()  
      abstract boolean getBoolean​(int i)  
      abstract float getFloat​(int i)  
      abstract int getInt​(int i)  
      abstract long getLong​(int i)  
      abstract java.lang.String getString​(int i)  
      abstract int intValue​(int col)  
      abstract boolean isNullAt​(int i)  
      abstract int length()  
      abstract long longValue​(int col)  
      abstract int numCols()  
      abstract java.lang.String otherCols()  
      abstract int otherColsLength()  
      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 schema()  
      abstract java.lang.String selectedColumns​(int[] columnIndices)  
      abstract void setColumn​(int k, java.lang.String val)  
      abstract org.gorpipe.gor.model.Row slicedRow​(int startCol, int stopCol)  
      abstract java.lang.String stringValue​(int col)  
      abstract java.lang.String toColString()  
      abstract java.lang.String toString()  
      abstract void writeRow​(java.io.Writer outputStream)  
      abstract void writeRowToStream​(java.io.OutputStream outputStream)  
      • 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 Detail

      • GorSparkRowBase

        public GorSparkRowBase()
    • Method Detail

      • apply

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

        public abstract java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.CharSequence colAsString​(int colNum)
        Specified by:
        colAsString in class org.gorpipe.gor.model.Row
      • otherCols

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

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

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

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

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

        public abstract java.lang.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​(java.lang.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,
                                       java.lang.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​(java.io.Writer outputStream)
                               throws java.io.IOException
        Specified by:
        writeRow in class org.gorpipe.gor.model.Row
        Throws:
        java.io.IOException
      • writeRowToStream

        public abstract void writeRowToStream​(java.io.OutputStream outputStream)
                                       throws java.io.IOException
        Specified by:
        writeRowToStream in class org.gorpipe.gor.model.Row
        Throws:
        java.io.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