Class CortexIo.Write<K,​V>

  • All Implemented Interfaces:
    Serializable, org.apache.beam.sdk.transforms.display.HasDisplayData
    Enclosing class:
    CortexIo

    public abstract static class CortexIo.Write<K,​V>
    extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<K,​V>>,​org.apache.beam.sdk.values.PDone>
    Stores the configuration of the transforms.

    Expands to a ParDo transform that is specified by subclasses of the CortexIo.WriteFn class.

    See Also:
    Serialized Form
    • Field Detail

      • writeUrl

        protected final String writeUrl
      • orgId

        protected String orgId
      • maxBatchSize

        protected long maxBatchSize
      • maxBatchBytes

        protected long maxBatchBytes
      • readTimeoutMs

        protected long readTimeoutMs
      • writeTimeoutMs

        protected long writeTimeoutMs
      • responseHandlers

        protected final List<BiConsumer<okhttp3.Call,​okhttp3.Response>> responseHandlers
    • Method Detail

      • withMaxBatchSize

        public CortexIo.Write<K,​V> withMaxBatchSize​(long value)
      • withMaxBatchBytes

        public CortexIo.Write<K,​V> withMaxBatchBytes​(long value)
      • withReadTimeoutMs

        public CortexIo.Write<K,​V> withReadTimeoutMs​(long value)
      • withWriteTimeoutMs

        public CortexIo.Write<K,​V> withWriteTimeoutMs​(long value)
      • withResponseHandler

        public CortexIo.Write<K,​V> withResponseHandler​(BiConsumer<okhttp3.Call,​okhttp3.Response> handler)
      • expand

        public org.apache.beam.sdk.values.PDone expand​(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<K,​V>> input)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<K,​V>>,​org.apache.beam.sdk.values.PDone>