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

org.apache.iceberg.actions.RewriteManifests Maven / Gradle / Ivy

The newest version!
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.iceberg.actions;

import java.util.function.Predicate;
import org.apache.iceberg.ManifestFile;

/**
 * An action that rewrites manifests.
 */
public interface RewriteManifests extends SnapshotUpdate {
  /**
   * Rewrites manifests for a given spec id.
   * 

* If not set, defaults to the table's default spec ID. * * @param specId a spec id * @return this for method chaining */ RewriteManifests specId(int specId); /** * Rewrites only manifests that match the given predicate. *

* If not set, all manifests will be rewritten. * * @param predicate a predicate * @return this for method chaining */ RewriteManifests rewriteIf(Predicate predicate); /** * Passes a location where the staged manifests should be written. *

* If not set, defaults to the table's metadata location. * * @param stagingLocation a staging location * @return this for method chaining */ RewriteManifests stagingLocation(String stagingLocation); /** * The action result that contains a summary of the execution. */ interface Result { /** * Returns rewritten manifests. */ Iterable rewrittenManifests(); /** * Returns added manifests. */ Iterable addedManifests(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy