package com.lingniu.ingest.tdenginehistory;

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

public interface TdengineHistoryWriter {

    default void appendRawFrame(TdengineRawFrameRow row) throws IOException {
        appendRawFrames(List.of(row));
    }

    void appendRawFrames(List<TdengineRawFrameRow> rows) throws IOException;

    default void appendLocation(TdengineLocationRow row) throws IOException {
        appendLocations(List.of(row));
    }

    void appendLocations(List<TdengineLocationRow> rows) throws IOException;
}
