org.yamcs.yarch.AbstractTableWalker Maven / Gradle / Ivy
package org.yamcs.yarch;
import java.util.Iterator;
import java.util.Set;
import org.yamcs.logging.Log;
import org.yamcs.utils.ByteArrayUtils;
import org.yamcs.utils.TimeInterval;
import org.yamcs.yarch.streamsql.StreamSqlException;
/**
* Iterator through a table.
*
* Iterates through partitions, can support partition filter (by time and/or value) and and also ranges on primary key.
*
This class expects raw (byte[]) input for the primary key ranges.
*
* @author nm
*
*/
public abstract class AbstractTableWalker implements TableWalker {
protected Log log;
protected TableDefinition tableDefinition;
// if not null, the iterate should run in this range
//by default everything
private DbRange range = new DbRange();
//// if not null, only includes data from these partitions
private Set