import ICleaner from "../ICleaner" ; import IDataStore from "../IDataStore" ; import IExtentMetadataStore from "./IExtentMetadataStore" ; export interface export interface IExtentChunk { id : string ; offset : number ; count : number ; } interface IStoreDestinationConfigure { locationPath : string ; locationId : string ; maxConcurrency : number ; } export type StoreDestinationArray = IStoreDestinationConfigure [ ] ; export interface extends IDataStore export default interface IExtentStore extends IDataStore , ICleaner { param { ( NodeJS . ReadableStream | Buffer ) } data param { string } contextId returns { Promise < IExtentChunk > } memberof appendExtent ( data , contextId ? ) : Promise < IExtentChunk > ; param { IExtentChunk } extentChunk param { string } contextId returns { Promise < NodeJS . ReadableStream > } memberof readExtent ( extentChunk ? , contextId ? ) : Promise < NodeJS . ReadableStream > ; param { ( IExtentChunk ) [ ] } extentChunkArray param { number } offset param { number } count param { string } contextId returns { Promise < NodeJS . ReadableStream > } memberof readExtents ( extentChunkArray , offset , count , contextId ? ) : Promise < NodeJS . ReadableStream > ; param { Iterable < string > } persistency returns { Promise < number > } memberof deleteExtents ( persistency ) : Promise < number > ; returns { IExtentMetadata } memberof getMetadataStore ( ) : IExtentMetadataStore ; }