Class/Object

org.hammerlab.channel

CachingChannel

Related Docs: object CachingChannel | package channel

Permalink

case class CachingChannel[Channel <: SeekableByteChannel](channel: Channel)(implicit config: Config) extends InputStream with SeekableByteChannel with BufferByteChannel with Logging with Product with Serializable

SeekableByteChannel that wraps another SeekableByteChannel and caches data read from the latter in chunks of size config.blockSize (quantized to boundaries at whole multiples of config.blockSize)

channel

underlying channel to provide a caching layer over

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, BufferByteChannel, SeekableByteChannel, ByteChannel, ReadableByteChannel, Channel, InputStream, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CachingChannel
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. BufferByteChannel
  8. SeekableByteChannel
  9. ByteChannel
  10. ReadableByteChannel
  11. Channel
  12. InputStream
  13. Closeable
  14. AutoCloseable
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CachingChannel(channel: Channel)(implicit config: Config)

    Permalink

    channel

    underlying channel to provide a caching layer over

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

    Permalink
    Definition Classes
    CachingChannelByteChannel
  5. var _position: Long

    Permalink
    Attributes
    protected
    Definition Classes
    ByteChannel
  6. def _read(dst: ByteBuffer): Int

    Permalink
    Definition Classes
    CachingChannelByteChannel
  7. def _read(b: Array[Byte], off: Int, len: Int): Int

    Permalink
    Attributes
    protected
    Definition Classes
    BufferByteChannelByteChannel
  8. def _read(): Int

    Permalink
    Attributes
    protected
    Definition Classes
    BufferByteChannelByteChannel
  9. def _seek(newPos: Long): Unit

    Permalink
    Definition Classes
    CachingChannelSeekableByteChannel
  10. def _skip(n: Int): Unit

    Permalink
    Definition Classes
    SeekableByteChannelByteChannel
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def available(): Int

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  13. val b1: ByteBuffer

    Permalink
    Definition Classes
    BufferByteChannel
  14. lazy val b4: ByteBuffer

    Permalink
    Definition Classes
    ByteChannel
  15. val blockSize: Int

    Permalink
  16. val blocks: LinkedHashMap[Long, ByteBuffer]

    Permalink
  17. val channel: Channel

    Permalink

    underlying channel to provide a caching layer over

  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def close(): Unit

    Permalink
    Definition Classes
    ByteChannel → Channel → InputStream → Closeable → AutoCloseable
  20. def debug(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def debug(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def error(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def error(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def getBlock(idx: Long): ByteBuffer

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

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getInt: Int

    Permalink
    Definition Classes
    ByteChannel
  31. def info(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def info(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  38. def isOpen(): Boolean

    Permalink
    Definition Classes
    ByteChannel → Channel
  39. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  41. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  42. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  43. def mark(arg0: Int): Unit

    Permalink
    Definition Classes
    InputStream
  44. def markSupported(): Boolean

    Permalink
    Definition Classes
    InputStream
  45. val maxNumBlocks: Int

    Permalink
  46. val maxReadAttempts: Int

    Permalink
  47. val maximumSize: Long

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

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

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

    Permalink
    Definition Classes
    AnyRef
  51. def order(order: ByteOrder): Unit

    Permalink
    Definition Classes
    ByteChannel
  52. def position(): Long

    Permalink
    Definition Classes
    ByteChannel
  53. final def read(dst: ByteBuffer): Int

    Permalink
    Definition Classes
    ByteChannel → ReadableByteChannel
  54. final def read(b: Array[Byte], off: Int, len: Int): Int

    Permalink
    Definition Classes
    ByteChannel → InputStream
  55. final def read(b: Array[Byte]): Int

    Permalink
    Definition Classes
    ByteChannel → InputStream
  56. final def read(): Int

    Permalink
    Definition Classes
    ByteChannel → InputStream
  57. def readFully(bytes: Array[Byte], offset: Int, numToRead: Int): Unit

    Permalink
    Definition Classes
    ByteChannel
  58. def readFully(bytes: Array[Byte]): Unit

    Permalink
    Definition Classes
    ByteChannel
  59. def readFully(dst: ByteBuffer): Unit

    Permalink

    Read as many bytes into dst as it has remaining, throw an IOException if too few bytes exist or are read.

    Read as many bytes into dst as it has remaining, throw an IOException if too few bytes exist or are read.

    Definition Classes
    ByteChannel
  60. def readString(length: Int, includesNull: Boolean = true): String

    Permalink

    Convenience method for reading a string of known length

    Convenience method for reading a string of known length

    Definition Classes
    ByteChannel
  61. def reset(): Unit

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  62. def seek(newPos: Long): Unit

    Permalink
    Definition Classes
    SeekableByteChannel
  63. def size: Long

    Permalink
    Definition Classes
    CachingChannelSeekableByteChannel
  64. final def skip(n: Int): Unit

    Permalink

    Skip n bytes, throw IOException if unable to

    Skip n bytes, throw IOException if unable to

    Definition Classes
    ByteChannel
  65. def skip(arg0: Long): Long

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  66. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  67. def trace(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  68. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  69. def trace(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  70. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. def warn(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  74. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  75. def warn(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from BufferByteChannel

Inherited from SeekableByteChannel

Inherited from ByteChannel

Inherited from ReadableByteChannel

Inherited from Channel

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped