package com.lingniu.ingest.sink.archive;

import java.io.IOException;
import java.io.InputStream;

public interface ArchiveStore {

    String put(String key, InputStream data, long length) throws IOException;

    String append(String key, byte[] chunk) throws IOException;

    InputStream get(String key) throws IOException;

    boolean exists(String key);

    long size(String key) throws IOException;
}
