Package com.mapr.fs
Class MapRDbUtils
java.lang.Object
com.mapr.fs.MapRDbUtils
- Direct Known Subclasses:
MemMapRDBUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()voidDelete(byte[] key) voidvoidbooleanExist(byte[] key) byte[]Get(byte[] key) Map<byte[],byte[]> 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) getScannerForTimeRange(long minTimeStamp, long maxTimeStamp, boolean defaultColumn) long[]GetTimeStamps(byte[] key, boolean isDefaultColumn) voidstatic booleanisDbCreated(String path) MultiColumnGet(byte[] key) static StringprintBytes(byte[] bytes) voidPut(byte[] key, byte[] value) voidvoid
-
Constructor Details
-
MapRDbUtils
public MapRDbUtils() -
MapRDbUtils
-
-
Method Details
-
isDbCreated
-
Init
public void Init(String tablePath, String defaultColumnFamily, String defaultQualifier) throws IOException - Throws:
IOException
-
Put
- Throws:
IOException
-
Put
- Throws:
IOException
-
BatchPut
- Throws:
IOException
-
batchPut
- Throws:
IOException
-
Put
public void Put(byte[] key, Map<String, byte[]> insValueMap, List<String> delColumns) throws IOException- Throws:
IOException
-
Delete
- Throws:
IOException
-
Delete
- Throws:
IOException
-
Delete
- Throws:
IOException
-
Get
- Throws:
IOException
-
Get
- Throws:
IOException
-
MultiColumnGet
- Throws:
IOException
-
GetTimeStamps
- Throws:
IOException
-
Exist
- Throws:
IOException
-
getKeysScanner
public MapRDbResultScanner getKeysScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) throws IOException - Throws:
IOException
-
getKeysScanner
- Throws:
IOException
-
getScanner
- Throws:
IOException
-
getScanner
public MapRDbResultScanner getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) throws IOException - Throws:
IOException
-
getScanner
public MapRDbResultScanner getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn, boolean onlyKeys) throws IOException - Throws:
IOException
-
getScannerForPrefix
public MapRDbResultScanner getScannerForPrefix(byte[] prefix, boolean defaultColumn) throws IOException - Throws:
IOException
-
getScannerForTimeRange
public MapRDbResultScanner getScannerForTimeRange(long minTimeStamp, long maxTimeStamp, boolean defaultColumn) throws IOException - Throws:
IOException
-
printBytes
-
close
public void close()
-