Object/Class

com.audienceproject.aws.kinesis

KinesisWriter

Related Docs: class KinesisWriter | package kinesis

Permalink

object KinesisWriter extends KinesisWriter

Linear Supertypes
KinesisWriter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KinesisWriter
  2. KinesisWriter
  3. AnyRef
  4. 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. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getExplicitHashKey(ehks: Array[String], streamName: String): String

    Permalink
    Definition Classes
    KinesisWriter
  11. final def getExplicitHashKeys(streamName: String, client: AmazonKinesis = ..., failCount: Int = 0): Array[String]

    Permalink
    Definition Classes
    KinesisWriter
    Annotations
    @tailrec()
  12. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  14. val logger: Logger

    Permalink
    Definition Classes
    KinesisWriter
  15. val maximumLastSize: Int

    Permalink

    The maximum size in bytes of the last User Record that we can add to the Stream Record.

    The maximum size in bytes of the last User Record that we can add to the Stream Record. This is very empiric becuase we don't have access to the size function of the aggregated record.

    Definition Classes
    KinesisWriter
  16. val maximumRetries: Int

    Permalink

    The maximum number of linear back-off retries before giving up and throwing an exception

    The maximum number of linear back-off retries before giving up and throwing an exception

    Definition Classes
    KinesisWriter
  17. val maximumSize: Int

    Permalink

    The maximum size of the aggregated record in bytes before the last record is added.

    The maximum size of the aggregated record in bytes before the last record is added. Look above for explanation.

    Definition Classes
    KinesisWriter
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def retryLogic(ex: Throwable, failCount: Int): Int

    Permalink
    Definition Classes
    KinesisWriter
  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def write(streamName: String, it: Iterator[Array[Byte]], client: AmazonKinesis): Int

    Permalink

    Send an iterator of byte[] to Kinesis.

    Send an iterator of byte[] to Kinesis.

    Example:

    val it = List(
        Array[Byte](10, 11, 23),
        Array[Byte](6, 4, 13)
    ).toIterator
    
    val client = new AmazonKinesisClient(new ProfileCredentialsProvider("my-custom-profile"))
    
    KinesisWriter.write("test-stream", it, client)
    streamName

    The name of the Kinesis Stream where the data should go to

    it

    The iterator containing byte arrays

    client

    The Kinesis client responsible for sending the data to the Kinesis Streams

  28. def write(streamName: String, it: Iterator[Array[Byte]]): Int

    Permalink

    Send an iterator of byte[] to Kinesis.

    Send an iterator of byte[] to Kinesis. It uses a default Kinesis client built using DefaultAWSCredentialsProviderChain and the default region.

    Example:

    val it = List(
        Array[Byte](10, 11, 23),
        Array[Byte](6, 4, 13)
    ).toIterator
    
    KinesisWriter.write("test-stream", it)
    streamName

    The name of the Kinesis Stream where the data should go to

    it

    The iterator containing byte arrays

Inherited from KinesisWriter

Inherited from AnyRef

Inherited from Any

Ungrouped