Package com.mapr.kvstore
Class Operation
java.lang.Object
com.mapr.kvstore.Operation
- All Implemented Interfaces:
KvDatabaseOp
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOperation(KvStoreClient clnt) Deprecated.Operation(KvStoreClient clnt, com.mapr.fs.proto.Security.CredentialsMsg creds) -
Method Summary
Modifier and TypeMethodDescriptionintapply()intintbulkCreateContainer(int[] cidList, int volId, List<List<com.mapr.fs.proto.Common.Server>> servers, boolean isMirrorVolume, boolean isShuffleVolume, com.mapr.fs.proto.Common.ContainerReplType replType, com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps, long[] cycleIdList, int labelId, boolean isStatsEnabled) voidintcreateContainer(int cid, int volId, List<com.mapr.fs.proto.Common.Server> servers, boolean isNameContainer, boolean isMirrorContainer, boolean isShuffleVolume, com.mapr.fs.proto.Common.ContainerReplType replType, com.mapr.fs.proto.Common.SetattrMsg rootDirAttr, com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps, long cycleId, int labelId, boolean isStatsEnabled) The following function is called to create on new container.intcreateSnapshotContainer(int rwContainerId, int rwVolId, int snapContainerId, int snapId, com.mapr.fs.proto.Common.Server master) intcreateSnapshotRootContainer(int rwContainerId, int rwVolId, int snapContainerId, int snapId, com.mapr.fs.proto.Common.Server master, String snapName) intcreateStaleContainer(int cid, int volId, List<com.mapr.fs.proto.Common.Server> servers, boolean rootOfVolume, boolean isMirrorContainer, com.mapr.fs.proto.Common.ContainerReplType replType, com.mapr.fs.proto.Common.FSVolumeProperties fsVolprops, long cycleId, int labelId, boolean isStatsEnabled) The following function is called to create additional copies of an existing container.intintintintintintdeleteSnapshotVolume(int rwRootContainerId, int rwVolId, int snapRootContainerId, int snapId, com.mapr.fs.proto.Common.Server master, String snapName) intinthashedKeyDelete(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) intintintinsert(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) intinsert(KvTable<Integer> kvTable, Integer key, com.google.protobuf.MessageLite value, boolean verifyKey) intintintintbooleanintremoveContainer(int cid, int serverIp) voidsetSkipLogFlush(boolean skipLogFlush)
-
Field Details
-
LOG
public static final org.apache.commons.logging.Log LOG
-
-
Constructor Details
-
Operation
Deprecated. -
Operation
-
-
Method Details
-
setSkipLogFlush
public void setSkipLogFlush(boolean skipLogFlush) - Specified by:
setSkipLogFlushin interfaceKvDatabaseOp
-
insert
public int insert(KvTable<Integer> kvTable, Integer key, com.google.protobuf.MessageLite value, boolean verifyKey) - Specified by:
insertin interfaceKvDatabaseOp
-
insert
-
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> kvTable, com.google.protobuf.ByteString keyValue) - Specified by:
deletein interfaceKvDatabaseOp
-
delete
- Specified by:
deletein interfaceKvDatabaseOp
-
createContainer
public int createContainer(int cid, int volId, List<com.mapr.fs.proto.Common.Server> servers, boolean isNameContainer, boolean isMirrorContainer, boolean isShuffleVolume, com.mapr.fs.proto.Common.ContainerReplType replType, com.mapr.fs.proto.Common.SetattrMsg rootDirAttr, com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps, long cycleId, int labelId, boolean isStatsEnabled) The following function is called to create on new container.- Parameters:
cid-volId-servers-isNameContainer-isMirrorContainer-isShuffleVolume-replType-rootDirAttr-volProps-cycleId-lableId-- Returns:
-
bulkCreateContainer
public int bulkCreateContainer(int[] cidList, int volId, List<List<com.mapr.fs.proto.Common.Server>> servers, boolean isMirrorVolume, boolean isShuffleVolume, com.mapr.fs.proto.Common.ContainerReplType replType, com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps, long[] cycleIdList, int labelId, boolean isStatsEnabled) -
createStaleContainer
public int createStaleContainer(int cid, int volId, List<com.mapr.fs.proto.Common.Server> servers, boolean rootOfVolume, boolean isMirrorContainer, com.mapr.fs.proto.Common.ContainerReplType replType, com.mapr.fs.proto.Common.FSVolumeProperties fsVolprops, long cycleId, int labelId, boolean isStatsEnabled) The following function is called to create additional copies of an existing container.- Parameters:
cid-volId-servers-rootOfVolume-isMirrorContainer-replType-volProps-cycleId-labelId-- Returns:
-
removeContainer
public int removeContainer(int cid, int serverIp) -
createSnapshotRootContainer
public int createSnapshotRootContainer(int rwContainerId, int rwVolId, int snapContainerId, int snapId, com.mapr.fs.proto.Common.Server master, String snapName) -
createSnapshotContainer
public int createSnapshotContainer(int rwContainerId, int rwVolId, int snapContainerId, int snapId, com.mapr.fs.proto.Common.Server master) -
deleteSnapshotVolume
public int deleteSnapshotVolume(int rwRootContainerId, int rwVolId, int snapRootContainerId, int snapId, com.mapr.fs.proto.Common.Server master, String snapName) -
getOpCount
public int getOpCount() -
mustApply
public boolean mustApply() -
apply
public int apply()- Specified by:
applyin interfaceKvDatabaseOp
-
apply
-
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
-