Constructor and Description |
---|
SegmentsCache(int pageSize,
MemorySize maxMemorySize,
long maxElementSize) |
Modifier and Type | Method and Description |
---|---|
static <T> SegmentsCache<T> |
create(int pageSize,
MemorySize maxMemorySize,
long maxElementSize) |
static <T> SegmentsCache<T> |
create(MemorySize maxMemorySize,
long maxElementSize) |
Segments |
getIfPresents(T key) |
long |
maxElementSize() |
MemorySize |
maxMemorySize() |
int |
pageSize() |
void |
put(T key,
Segments segments) |
public SegmentsCache(int pageSize, MemorySize maxMemorySize, long maxElementSize)
public int pageSize()
public MemorySize maxMemorySize()
public long maxElementSize()
@Nullable public static <T> SegmentsCache<T> create(MemorySize maxMemorySize, long maxElementSize)
@Nullable public static <T> SegmentsCache<T> create(int pageSize, MemorySize maxMemorySize, long maxElementSize)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.