@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) |
public ObjectsCache(SegmentsCache<K> cache, ObjectSerializer<V> projectedSerializer, RowType formatSchema, FunctionWithIOException<K,Long> fileSizeFunction, BiFunctionWithIOE<K,Long,CloseableIterator<InternalRow>> reader)
public List<V> read(K key, @Nullable Long fileSize, Filter<InternalRow> loadFilter, Filter<InternalRow> readFilter) throws IOException
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.