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

com.clickzetta.platform.flusher.Buffer Maven / Gradle / Ivy

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

import com.clickzetta.platform.client.api.multi.TableIdentifier;
import com.clickzetta.platform.operator.WriteOperation;

import java.util.List;
import java.util.Map;

public interface Buffer {

  enum Type {
    DEFAULT,
    MULTI,
  }

  interface Callback {
    void call(Buffer buffer);
  }

  void addOperation(WriteOperation operation);

  boolean isEmpty();

  boolean isFull(int byteSize);

  List getOperations();

  Map> getOperationMaps();

  List getPooledOperationIndex();

  int getCurrentLines();

  int getCurrentBytes();

  boolean registerCallback(Callback callback);

  void reset();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy