com.clickzetta.platform.client.schemachange.NoopEvolutionManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
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