export function createRangeAggregateCacheService(args) {
    return {
        getOrBuildPrefix(request, aggregateKind) {
            const regionId = args.regionGraph.internSingleColumnRegion(request);
            return args.aggregateStateStore.getOrBuildPrefixForRegion(regionId, aggregateKind);
        },
        getOrBuildColumnPrefix(request, aggregateKind) {
            const regionId = args.regionGraph.internSingleColumnRegion(request);
            return args.aggregateStateStore.getOrBuildPrefixForRegion(regionId, aggregateKind);
        },
        summarizeColumnWindow(request) {
            return args.aggregateStateStore.summarizeColumnWindow(request);
        },
        hasReusableColumnPrefix(request, aggregateKind) {
            return args.aggregateStateStore.hasReusableColumnPrefix(request, aggregateKind);
        },
    };
}
//# sourceMappingURL=range-aggregate-cache-service.js.map