Class

quasar.niflheim

VersionedSegmentFormat

Related Doc: package niflheim

Permalink

case class VersionedSegmentFormat(formats: Map[Int, SegmentFormat]) extends SegmentFormat with Versioning with Product with Serializable

A VersionedSegmentFormat wraps formats and is used to deal with multiple versions for SegmentFormats. The version of a segment format is always written first, followed by the actual segment. The format with the highest version number is always used for writing. For reads, the version is read first and the format corresponding to this version is used to read the rest of the segment. If no format exists for that version, then we return an error.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VersionedSegmentFormat
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Versioning
  7. SegmentFormat
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VersionedSegmentFormat(formats: Map[Int, SegmentFormat])

    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. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. val format: SegmentFormat

    Permalink
  9. val formats: Map[Int, SegmentFormat]

    Permalink
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val magic: Short

    Permalink
    Definition Classes
    VersionedSegmentFormatVersioning
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  16. def readVersion(channel: ReadableByteChannel): Validation[IOException, Int]

    Permalink
    Definition Classes
    Versioning
  17. object reader extends SegmentReader

    Permalink
    Definition Classes
    VersionedSegmentFormatSegmentFormat
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. val version: Short

    Permalink
    Definition Classes
    VersionedSegmentFormatVersioning
  20. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def writeVersion(channel: WritableByteChannel): Validation[IOException, Unit]

    Permalink
    Definition Classes
    Versioning
  24. object writer extends SegmentWriter

    Permalink
    Definition Classes
    VersionedSegmentFormatSegmentFormat

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Versioning

Inherited from SegmentFormat

Inherited from AnyRef

Inherited from Any

Ungrouped