Packages

final class UnsafeRowWriter extends UnsafeWriter

A helper class to write data into global row buffer using UnsafeRow format.

It will remember the offset of row buffer which it starts to write, and move the cursor of row buffer while writing. If new data(can be the input record if this is the outermost writer, or nested struct if this is an inner writer) comes, the starting cursor of row buffer may be changed, so we need to call UnsafeRowWriter.resetRowWriter before writing, to update the startingOffset and clear out null bits.

Note that if this is the outermost writer, which means we will always write from the very beginning of the global row buffer, we don't need to update startingOffset and can just call zeroOutNullBytes before writing new data.

Linear Supertypes
UnsafeWriter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnsafeRowWriter
  2. UnsafeWriter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UnsafeRowWriter(writer: UnsafeWriter, numFields: Int)
  2. new UnsafeRowWriter(numFields: Int, initialBufferSize: Int)
  3. new UnsafeRowWriter(numFields: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def cursor(): Int
    Definition Classes
    UnsafeWriter
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getBuffer(): Array[Byte]
    Definition Classes
    UnsafeWriter
  11. final def getBufferHolder(): BufferHolder

    Accessor methods are delegated from BufferHolder class

    Accessor methods are delegated from BufferHolder class

    Definition Classes
    UnsafeWriter
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getFieldOffset(ordinal: Int): Long
  14. def getRow(): UnsafeRow

    Updates total size of the UnsafeRow using the size collected by BufferHolder, and returns the UnsafeRow created at a constructor

  15. final def grow(neededSize: Int): Unit
    Definition Classes
    UnsafeWriter
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def increaseCursor(val: Int): Unit
    Definition Classes
    UnsafeWriter
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isNullAt(ordinal: Int): Boolean
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def reset(): Unit
    Definition Classes
    UnsafeWriter
  24. def resetRowWriter(): Unit

    Resets the startingOffset according to the current cursor of row buffer, and clear out null bits.

    Resets the startingOffset according to the current cursor of row buffer, and clear out null bits. This should be called before we write a new nested struct to the row buffer.

  25. def setNull1Bytes(ordinal: Int): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  26. def setNull2Bytes(ordinal: Int): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  27. def setNull4Bytes(ordinal: Int): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  28. def setNull8Bytes(ordinal: Int): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  29. def setNullAt(ordinal: Int): Unit
  30. def setOffsetAndSize(ordinal: Int, currentCursor: Int, size: Int): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  31. def setOffsetAndSize(ordinal: Int, size: Int): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  32. final def setOffsetAndSizeFromPreviousCursor(ordinal: Int, previousCursor: Int): Unit
    Definition Classes
    UnsafeWriter
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def totalSize(): Int
    Definition Classes
    UnsafeWriter
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  39. def write(ordinal: Int, input: Decimal, precision: Int, scale: Int): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  40. def write(ordinal: Int, value: Double): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  41. def write(ordinal: Int, value: Float): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  42. def write(ordinal: Int, value: Long): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  43. def write(ordinal: Int, value: Int): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  44. def write(ordinal: Int, value: Short): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  45. def write(ordinal: Int, value: Byte): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  46. def write(ordinal: Int, value: Boolean): Unit
    Definition Classes
    UnsafeRowWriterUnsafeWriter
  47. final def write(array: UnsafeArrayData): Unit
    Definition Classes
    UnsafeWriter
  48. final def write(ordinal: Int, map: UnsafeMapData): Unit
    Definition Classes
    UnsafeWriter
  49. final def write(ordinal: Int, row: UnsafeRow): Unit
    Definition Classes
    UnsafeWriter
  50. final def write(ordinal: Int, input: CalendarInterval): Unit
    Definition Classes
    UnsafeWriter
  51. final def write(ordinal: Int, input: Array[Byte], offset: Int, numBytes: Int): Unit
    Definition Classes
    UnsafeWriter
  52. final def write(ordinal: Int, input: Array[Byte]): Unit
    Definition Classes
    UnsafeWriter
  53. final def write(ordinal: Int, input: UTF8String): Unit
    Definition Classes
    UnsafeWriter
  54. final def writeBoolean(offset: Long, value: Boolean): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  55. final def writeByte(offset: Long, value: Byte): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  56. final def writeDouble(offset: Long, value: Double): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  57. final def writeFloat(offset: Long, value: Float): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  58. final def writeInt(offset: Long, value: Int): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  59. final def writeLong(offset: Long, value: Long): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  60. final def writeShort(offset: Long, value: Short): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter
  61. def zeroOutNullBytes(): Unit

    Clears out null bits.

    Clears out null bits. This should be called before we write a new row to row buffer.

  62. final def zeroOutPaddingBytes(numBytes: Int): Unit
    Attributes
    protected[codegen]
    Definition Classes
    UnsafeWriter

Inherited from UnsafeWriter

Inherited from AnyRef

Inherited from Any

Ungrouped