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

com.clickzetta.platform.client.api.BulkLoadWriter 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.Table;
import com.clickzetta.platform.common.Schema;

import java.io.Closeable;
import java.io.IOException;
import java.util.Optional;

public interface BulkLoadWriter extends Closeable {

  // Getters

  /**
   * Return the stream id of the current BulkLoadStream.
   */
  String getStreamId();

  /**
   * Operation of the current BulkLoadStream.
   * 

* Supported values: APPEND, UPSERT, OVERWRITE. */ BulkLoadOperation getOperation(); /** * Get table schema. Virtual or hidden columns are excluded. */ @Deprecated Schema getSchema(); /** * Get table meta data. */ Table getTable(); /** * Get partition specs when the BulkLoadStream is created. */ Optional getPartitionSpecs(); /** * Return the uniqueId associated with this writer. */ long getPartitionId(); // Write /** * Create a row with full table schema. */ Row createRow(); /** * Write a row to the BulkLoadStream. */ void write(Row... rows) throws IOException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy