Class/Object

com.comcast.xfinity.sirius.uberstore.segmented

Segment

Related Docs: object Segment | package segmented

Permalink

class Segment extends AnyRef

Expectedly high performance sequence number based append only storage directory. Stores all data in dataFile, and sequence -> data mappings in index.

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

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. def close(): Unit

    Permalink

    Close underlying file handles or connections.

    Close underlying file handles or connections. This Segment should not be used after close is called.

  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def foldLeft[T](acc0: T)(foldFun: (T, OrderedEvent) ⇒ T): T

    Permalink

    Fold left over all entries.

    Fold left over all entries.

    acc0

    initial accumulator value

    foldFun

    the fold function

  11. def foldLeftRange[T](startSeq: Long, endSeq: Long)(acc0: T)(foldFun: (T, OrderedEvent) ⇒ T): T

    Permalink

    Fold left over a range of entries based on sequence number.

  12. def foreach[T](fun: (OrderedEvent) ⇒ T): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getNextSeq: Long

    Permalink

    Get the next possible sequence number in this dir.

  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isApplied: Boolean

    Permalink

    Have the keys in this segment been applied via compaction to previous segments?

    Have the keys in this segment been applied via compaction to previous segments?

    returns

    true if the keys have been compacted away from previous segments, false otherwise

  17. def isClosed: Boolean

    Permalink

    Consider this closed if either of its underlying objects are closed, no good writes will be able to go through in that case.

    Consider this closed if either of its underlying objects are closed, no good writes will be able to go through in that case.

    returns

    whether this is "closed," i.e., unable to be written to

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isInternallyCompacted: Boolean

    Permalink

    Has this segment been internally compacted?

    Has this segment been internally compacted?

    returns

    true if internal compaction is completed, false otherwise

  20. def keys: Set[String]

    Permalink

    Get all the unique keys in the segment.

    Get all the unique keys in the segment.

    returns

    set of keys in this Segment

  21. val location: File

    Permalink
  22. val name: String

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def setApplied(applied: Boolean): Unit

    Permalink

    Set the keys-applied flag.

    Set the keys-applied flag.

    applied

    the value of the flag

  27. def setInternallyCompacted(compacted: Boolean): Unit

    Permalink

    Set the internally-compacted flag

    Set the internally-compacted flag

    compacted

    the value of the flag

  28. def size: Long

    Permalink

    Get the number of entries written to the Segment

    Get the number of entries written to the Segment

    returns

    number of entries in the Segment

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def writeEntry(event: OrderedEvent): Unit

    Permalink

    Write OrderedEvent event into this dir.

    Write OrderedEvent event into this dir. Will fail if closed or sequence is out of order.

    event

    the OrderedEvent to write

Inherited from AnyRef

Inherited from Any

Ungrouped