]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/VectorMemTableConfig.java
1 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
5 * The config for vector memtable representation.
7 public class VectorMemTableConfig
extends MemTableConfig
{
8 public static final int DEFAULT_RESERVED_SIZE
= 0;
11 * VectorMemTableConfig constructor
13 public VectorMemTableConfig() {
14 reservedSize_
= DEFAULT_RESERVED_SIZE
;
18 * Set the initial size of the vector that will be used
19 * by the memtable created based on this config.
21 * @param size the initial size of the vector.
22 * @return the reference to the current config.
24 public VectorMemTableConfig
setReservedSize(final int size
) {
30 * Returns the initial size of the vector used by the memtable
31 * created based on this config.
33 * @return the initial size of the vector.
35 public int reservedSize() {
39 @Override protected long newMemTableFactoryHandle() {
40 return newMemTableFactoryHandle(reservedSize_
);
43 private native long newMemTableFactoryHandle(long reservedSize
)
44 throws IllegalArgumentException
;
45 private int reservedSize_
;