Package com.mapr.fs
Class MemMapRDBUtils
java.lang.Object
com.mapr.fs.MapRDbUtils
com.mapr.fs.MemMapRDBUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidDelete(byte[] key) voidbooleanExist(byte[] key) byte[]Get(byte[] key) getKeysScanner(byte[] startKey, byte[] endKey) getKeysScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) getScanner(byte[] startKey, byte[] endKey) getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn, boolean onlyKeys) getScannerForPrefix(byte[] prefix, boolean defaultColumn) voidstatic booleanisDbCreated(String path) MultiColumnGet(byte[] key) voidPut(byte[] key, byte[] value) voidvoidMethods inherited from class com.mapr.fs.MapRDbUtils
batchPut, BatchPut, Delete, Get, getScannerForTimeRange, GetTimeStamps, printBytes
-
Constructor Details
-
MemMapRDBUtils
public MemMapRDBUtils() -
MemMapRDBUtils
-
-
Method Details
-
Init
public void Init(String tablePath, String defaultColumnFamily, String defaultQualifier) throws IOException - Overrides:
Initin classMapRDbUtils- Throws:
IOException
-
isDbCreated
-
close
public void close()- Overrides:
closein classMapRDbUtils
-
Put
- Overrides:
Putin classMapRDbUtils- Throws:
IOException
-
Put
- Overrides:
Putin classMapRDbUtils- Throws:
IOException
-
Put
public void Put(byte[] key, Map<String, byte[]> insValueMap, List<String> delColumns) throws IOException- Overrides:
Putin classMapRDbUtils- Throws:
IOException
-
Delete
- Overrides:
Deletein classMapRDbUtils- Throws:
IOException
-
Delete
- Overrides:
Deletein classMapRDbUtils- Throws:
IOException
-
Get
- Overrides:
Getin classMapRDbUtils- Throws:
IOException
-
MultiColumnGet
- Overrides:
MultiColumnGetin classMapRDbUtils- Throws:
IOException
-
Exist
- Overrides:
Existin classMapRDbUtils- Throws:
IOException
-
getKeysScanner
public MapRDbResultScanner getKeysScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) throws IOException - Overrides:
getKeysScannerin classMapRDbUtils- Throws:
IOException
-
getKeysScanner
- Overrides:
getKeysScannerin classMapRDbUtils- Throws:
IOException
-
getScanner
- Overrides:
getScannerin classMapRDbUtils- Throws:
IOException
-
getScanner
public MapRDbResultScanner getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) throws IOException - Overrides:
getScannerin classMapRDbUtils- Throws:
IOException
-
getScanner
public MapRDbResultScanner getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn, boolean onlyKeys) throws IOException - Overrides:
getScannerin classMapRDbUtils- Throws:
IOException
-
getScannerForPrefix
public MapRDbResultScanner getScannerForPrefix(byte[] prefix, boolean defaultColumn) throws IOException - Overrides:
getScannerForPrefixin classMapRDbUtils- Throws:
IOException
-