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

org.yamcs.yarch.TableWalker Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs.yarch;

import java.util.Set;

import org.yamcs.utils.TimeInterval;
import org.yamcs.yarch.streamsql.StreamSqlException;

/**
 * Walks over one yarch table providing operations for select, udpdate, delete
 *
 * @author nm
 *
 */
public interface TableWalker {

    default void setPartitionFilter(TimeInterval partitionTimeFilter, Set partitionValueFilter) {
        throw new UnsupportedOperationException();
    }

    void setPrimaryIndexRange(DbRange tableRange);

    default void setSecondaryIndexRange(DbRange skRange) {
        throw new UnsupportedOperationException();
    }
    
    void walk(TableVisitor visitor) throws YarchException, StreamSqlException;

    void close();

    boolean isBatchUpdates();

    void setBatchUpdates(boolean batchUpdates);

}