Class

org.apache.spark.sql.execution.columnar.impl

ColumnFormatValue

Related Doc: package impl

Permalink

class ColumnFormatValue extends SerializedDiskBuffer with GfxdSerializable with Sizeable

Value object in the column store simply encapsulates binary data as a ByteBuffer. This can be either a direct buffer or a heap buffer depending on the system off-heap configuration. The reason for a separate type is to easily store data off-heap without any major changes to engine otherwise as well as efficiently serialize/deserialize them directly to Oplog/socket.

This class extends SerializedDiskBuffer to avoid a copy when reading/writing from Oplog. Consequently it writes the serialization header itself (typeID + classID + size) into stream as would be written by DataSerializer.writeObject. This helps it avoid additional byte writes when transferring data to the channels.

Linear Supertypes
Sizeable, GfxdSerializable, GfxdDSFID, DataSerializableFixedID, SerializationVersions, SerializedDiskBuffer, ByteBufferReference, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ColumnFormatValue
  2. Sizeable
  3. GfxdSerializable
  4. GfxdDSFID
  5. DataSerializableFixedID
  6. SerializationVersions
  7. SerializedDiskBuffer
  8. ByteBufferReference
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ColumnFormatValue(buffer: ByteBuffer)

    Permalink
  2. new ColumnFormatValue()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def channelSize(): Int

    Permalink
    Definition Classes
    ColumnFormatValue → SerializedDiskBuffer
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var columnBuffer: ByteBuffer

    Permalink
    Attributes
    protected
  8. final def copyToHeap(owner: String): Unit

    Permalink
    Definition Classes
    ColumnFormatValue → SerializedDiskBuffer
  9. var diskId: DiskId

    Permalink
    Attributes
    protected
  10. var diskRegion: DiskRegionView

    Permalink
    Attributes
    protected
  11. def duplicateBuffer(buffer: ByteBuffer): ByteBuffer

    Permalink
    Attributes
    protected
    Annotations
    @inline()
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromData(in: DataInput): Unit

    Permalink
    Definition Classes
    ColumnFormatValue → DataSerializableFixedID
  16. final def getBufferRetain(): ByteBuffer

    Permalink

    Callers of this method should have a corresponding release method for eager release to work else off-heap object may keep around occupying system RAM until the next GC cycle.

    Callers of this method should have a corresponding release method for eager release to work else off-heap object may keep around occupying system RAM until the next GC cycle. Callers may decide whether to keep the release method in a finally block to ensure its invocation, or do it only in normal paths because JVM reference collector will eventually clean it in any case.

    Calls to this specific class are guaranteed to always return buffers which have position as zero so callers can make simplifying assumptions about the same.

    Definition Classes
    ColumnFormatValue → ByteBufferReference
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def getDSFID(): Int

    Permalink
    Definition Classes
    ColumnFormatValue → DataSerializableFixedID
  19. def getDiskBufferRetain(): SerializedDiskBuffer

    Permalink
    Definition Classes
    SerializedDiskBuffer
  20. def getGfxdID(): Byte

    Permalink
    Definition Classes
    ColumnFormatValue → GfxdDSFID
  21. def getOffHeapSizeInBytes(): Int

    Permalink
    Definition Classes
    ColumnFormatValue → SerializedDiskBuffer
  22. def getSerializationVersions(): Array[Version]

    Permalink
    Definition Classes
    ColumnFormatValue → SerializationVersions
  23. def getSizeInBytes(): Int

    Permalink
    Definition Classes
    ColumnFormatValue → Sizeable
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def isDirect: Boolean

    Permalink
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def needsRelease(): Boolean

    Permalink
    Definition Classes
    ColumnFormatValue → ByteBufferReference
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def refCount(): Int

    Permalink
    Definition Classes
    SerializedDiskBuffer → ByteBufferReference
  32. def release(): Unit

    Permalink
    Definition Classes
    SerializedDiskBuffer → ByteBufferReference
  33. def releaseBuffer(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ColumnFormatValue → SerializedDiskBuffer
  34. def retain(): Boolean

    Permalink
    Definition Classes
    SerializedDiskBuffer → ByteBufferReference
  35. def setBuffer(buffer: ByteBuffer, changeOwnerToStorage: Boolean = true): Unit

    Permalink
  36. final def setDiskId(id: DiskId, dr: DiskRegionView): Unit

    Permalink
    Definition Classes
    ColumnFormatValue → SerializedDiskBuffer
  37. final def size(): Int

    Permalink
    Definition Classes
    ColumnFormatValue → ByteBufferReference
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toData(out: DataOutput): Unit

    Permalink
    Definition Classes
    ColumnFormatValue → DataSerializableFixedID
  40. def toString(): String

    Permalink
    Definition Classes
    ColumnFormatValue → AnyRef → Any
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def write(channel: OutputStreamChannel): Unit

    Permalink
    Definition Classes
    ColumnFormatValue → SerializedDiskBuffer
  45. final def write(arg0: OutputStreamChannel, arg1: ByteBuffer): Unit

    Permalink
    Attributes
    protected[com.gemstone.gemfire.internal.cache.store]
    Definition Classes
    SerializedDiskBuffer
    Annotations
    @throws( classOf[java.io.IOException] )
  46. final def writeSerializationHeader(src: ByteBuffer, writeBuf: ByteBuffer): Boolean

    Permalink
    Definition Classes
    ColumnFormatValue → SerializedDiskBuffer

Inherited from Sizeable

Inherited from GfxdSerializable

Inherited from GfxdDSFID

Inherited from DataSerializableFixedID

Inherited from SerializationVersions

Inherited from SerializedDiskBuffer

Inherited from ByteBufferReference

Inherited from AnyRef

Inherited from Any

Ungrouped