@ThreadSafe public class ObjectsCache<K,V> extends Object
SegmentsCache by compacted serializer.| Constructor and Description |
|---|
ObjectsCache(SegmentsCache<K> cache,
ObjectSerializer<V> projectedSerializer,
RowType formatSchema,
FunctionWithIOException<K,Long> fileSizeFunction,
BiFunctionWithIOE<K,Long,CloseableIterator<InternalRow>> reader) |
| Modifier and Type | Method and Description |
|---|---|
List<V> |
read(K key,
Long fileSize,
Filter<InternalRow> loadFilter,
Filter<InternalRow> readFilter,
Filter<V> readVFilter) |
void |
withCacheMetrics(CacheMetrics cacheMetrics) |
public ObjectsCache(SegmentsCache<K> cache, ObjectSerializer<V> projectedSerializer, RowType formatSchema, FunctionWithIOException<K,Long> fileSizeFunction, BiFunctionWithIOE<K,Long,CloseableIterator<InternalRow>> reader)
public void withCacheMetrics(@Nullable CacheMetrics cacheMetrics)
public List<V> read(K key, @Nullable Long fileSize, Filter<InternalRow> loadFilter, Filter<InternalRow> readFilter, Filter<V> readVFilter) throws IOException
IOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.