com.alibaba.hologres.client.impl.MetaStore Maven / Gradle / Ivy
/*
* Copyright (c) 2022. Alibaba Group Holding Limited
*/
package com.alibaba.hologres.client.impl;
import com.alibaba.hologres.client.model.Partition;
import com.alibaba.hologres.client.model.TableName;
import com.alibaba.hologres.client.model.TableSchema;
/**
* 元信息缓存.
*/
public class MetaStore {
public final Cache tableCache;
public final Cache> partitionCache;
public MetaStore(long tableCacheTTL) {
this.tableCache = new Cache<>(tableCacheTTL, null);
this.partitionCache = new Cache<>((tableName) -> new Cache<>());
}
}