package com.lingniu.ingest.tdenginehistory;

import java.io.IOException;
import java.util.List;

public interface TdengineHistoryReader {

    TdenginePage<TdengineRawFrameRow> queryRawFrames(TdengineRawFrameQuery query) throws IOException;

    TdenginePage<TdengineLocationRow> queryLocations(TdengineLocationQuery query) throws IOException;

    default List<TdengineLocationRow> queryLocationsByRawUri(String protocol, String rawUri, int limit)
            throws IOException {
        return List.of();
    }
}
