Package com.mapr.kvstore
Class InMemoryKvDatabaseOp
java.lang.Object
com.mapr.kvstore.InMemoryKvDatabaseOp
- All Implemented Interfaces:
KvDatabaseOp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintapply()voidintintintintintinthashedKeyDelete(KvTable<String> kv, String key) inthashedKeyInsert(KvTable<String> kv, String key, int value) inthashedKeyInsert(KvTable<String> kv, String key, int value, boolean skipCollisionCountUpdate, boolean verifyKey) intintinsert(KvTable<?> kv, com.mapr.fs.proto.Fileserver.KvStoreKey key, com.google.protobuf.ByteString value) intinsert(KvTable<com.google.protobuf.ByteString> kv, com.google.protobuf.ByteString key, com.google.protobuf.MessageLite value) intintintintintvoidsetSkipLogFlush(boolean skipLogFlush)
-
Constructor Details
-
InMemoryKvDatabaseOp
public InMemoryKvDatabaseOp()
-
-
Method Details
-
insert
public int insert(KvTable<Integer> kv, Integer key, com.google.protobuf.MessageLite value, boolean verifyKey) - Specified by:
insertin interfaceKvDatabaseOp
-
insert
public int insert(KvTable<Long> kv, Long key, com.google.protobuf.MessageLite value, boolean verifyKey) - Specified by:
insertin interfaceKvDatabaseOp
-
insert
- Specified by:
insertin interfaceKvDatabaseOp
-
insert
public int insert(KvTable<String> kv, String key, com.google.protobuf.MessageLite value, boolean verifyKey) - Specified by:
insertin interfaceKvDatabaseOp
-
insert
- Specified by:
insertin interfaceKvDatabaseOp
-
insert
public int insert(KvTable<com.google.protobuf.ByteString> kv, com.google.protobuf.ByteString key, com.google.protobuf.MessageLite value) - Specified by:
insertin interfaceKvDatabaseOp
-
insert
public int insert(KvTable<?> kv, com.mapr.fs.proto.Fileserver.KvStoreKey key, com.google.protobuf.ByteString value) - Specified by:
insertin interfaceKvDatabaseOp
-
delete
- Specified by:
deletein interfaceKvDatabaseOp
-
delete
- Specified by:
deletein interfaceKvDatabaseOp
-
delete
- Specified by:
deletein interfaceKvDatabaseOp
-
delete
public int delete(KvTable<com.google.protobuf.ByteString> kv, com.google.protobuf.ByteString keyValue) - Specified by:
deletein interfaceKvDatabaseOp
-
delete
- Specified by:
deletein interfaceKvDatabaseOp
-
apply
public int apply()- Specified by:
applyin interfaceKvDatabaseOp
-
setSkipLogFlush
public void setSkipLogFlush(boolean skipLogFlush) - Specified by:
setSkipLogFlushin interfaceKvDatabaseOp
-
hashedKeyInsert
- Specified by:
hashedKeyInsertin interfaceKvDatabaseOp
-
hashedKeyInsert
public int hashedKeyInsert(KvTable<String> kv, String key, int value, boolean skipCollisionCountUpdate, boolean verifyKey) - Specified by:
hashedKeyInsertin interfaceKvDatabaseOp
-
hashedKeyInsertCollisionCount
- Specified by:
hashedKeyInsertCollisionCountin interfaceKvDatabaseOp
-
hashedKeyDelete
- Specified by:
hashedKeyDeletein interfaceKvDatabaseOp
-
cleanUpForHashedStringTables
public void cleanUpForHashedStringTables()- Specified by:
cleanUpForHashedStringTablesin interfaceKvDatabaseOp
-