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

com.clickzetta.platform.client.schemachange.NoopEvolutionManager Maven / Gradle / Ivy

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

import com.clickzetta.platform.client.Table;
import cz.proto.ingestion.v2.IngestionV2;

import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

public class NoopEvolutionManager implements EvolutionManager {

  public static final NoopEvolutionManager NOOP_EVOLUTION_INSTANCE = new NoopEvolutionManager();

  private static final List EMPTY_LIST = Collections.emptyList();

  @Override
  public boolean schemaEvolutionSupport() {
    return false;
  }

  @Override
  public List extractSchemaChanges(Table table, List updatedDataFields) {
    return EMPTY_LIST;
  }

  @Override
  public Future applySchemaChange(String schemaName, String tableName,
                                           Table table, List schemaChanges,
                                           SchemaChange.Callback callback, String serverToken) throws IOException {
    CompletableFuture result = new CompletableFuture<>();
    result.complete(true);
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy