Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package adform
    Definition Classes
    com
  • package streamloader

    The entry point of the stream loader library is the StreamLoader class, which requires a KafkaSource and a Sink.

    The entry point of the stream loader library is the StreamLoader class, which requires a KafkaSource and a Sink. Once started it will subscribe to the provided topics and will start polling and sinking records. The sink has to be able to persist records and to look up committed offsets (technically this is optional, but without it there would be no way to provide any delivery guarantees). A large class of sinks are batch based, implemented as RecordBatchingSink. This sink accumulate batches of records using some RecordBatcher and once ready, stores them to some underlying RecordBatchStorage. A common type of batch is file based, i.e. a batcher might write records to a temporary file and once the file is full the sink commits the file to some underlying storage, such as a database or a distributed file system like HDFS.

    A sketch of the class hierarchy illustrating the main classes and interfaces can be seen below.



    For concrete storage implementations see the clickhouse, hadoop, s3 and vertica packages. They also contain more file builder implementations than just the CsvFileBuilder included in the core library.

    Definition Classes
    adform
  • package sink
    Definition Classes
    streamloader
  • package encoding
    Definition Classes
    sink
  • package binary
    Definition Classes
    encoding
  • ByteWriter
  • LittleEndianByteWriter
t

com.adform.streamloader.sink.encoding.binary

LittleEndianByteWriter

trait LittleEndianByteWriter extends ByteWriter

A byte writer with convenience methods for writing primitive types in little endian byte encoding.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LittleEndianByteWriter
  2. ByteWriter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def writeByte(b: Int): Unit
    Definition Classes
    ByteWriter

Concrete Value Members

  1. def writeByteArray(bytes: Array[Byte]): Unit
    Definition Classes
    ByteWriter
  2. def writeByteArray(bytes: Array[Byte], maxLength: Int, truncate: Boolean = true): Unit

    Writes a specified number of bytes from a given array and stops once the limit is reached.

    Writes a specified number of bytes from a given array and stops once the limit is reached. Fails immediately if the byte array length exceeds length and truncate is false.

    Definition Classes
    ByteWriter
  3. def writeBytes(bytes: Int*): Unit
    Definition Classes
    ByteWriter
  4. def writeDecimal(d: BigDecimal, precision: Int, scale: Int): Unit
  5. def writeFixedByteArray(bytes: Array[Byte], length: Int, truncate: Boolean, padWith: Byte): Unit

    Writes bytes from the given array and either pads it to the required length or truncates it if the length of the array exceeds the required length.

    Writes bytes from the given array and either pads it to the required length or truncates it if the length of the array exceeds the required length. Fails immediately if the byte array length exceeds length and truncate is false.

    Definition Classes
    ByteWriter
  6. def writeFloat32(d: Float): Unit
  7. def writeFloat64(d: Double): Unit
  8. def writeInt16(i: Short): Unit
  9. def writeInt32(i: Int): Unit
  10. def writeInt64(i: Long): Unit