All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clickzetta.platform.client.api.Stream Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.clickzetta.platform.client.api;

import com.clickzetta.platform.client.BaseStream;
import com.clickzetta.platform.client.SingleRowCreate;

import java.io.IOException;

public interface Stream extends BaseStream, SingleRowCreate {
  @Deprecated
  enum Operator {
    INSERT,
    INSERT_IGNORE,
    UPDATE,
    UPSERT,
    DELETE,
    DELETE_IGNORE
  }

  void bindListener(Listener listener);

  /**
   * apply rows to buffer.
   *
   * @param rows
   */
  void apply(Row... rows) throws IOException;

  /**
   * flush current rows.
   *
   * @throws IOException
   */
  void flush() throws IOException;

  /**
   * close current stream.
   */
  void close() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy