Package com.mapr.fs
Class MapRDbUtils
- java.lang.Object
-
- com.mapr.fs.MapRDbUtils
-
public class MapRDbUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MapRDbUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidDelete(byte[] key)voidDelete(byte[] key, java.lang.String colName)booleanExist(byte[] key)byte[]Get(byte[] key)MapRDbResultScannergetKeysScanner(byte[] startKey, byte[] endKey)MapRDbResultScannergetKeysScanner(byte[] startKey, byte[] endKey, boolean defaultColumn)MapRDbResultScannergetScanner(byte[] startKey, byte[] endKey)MapRDbResultScannergetScanner(byte[] startKey, byte[] endKey, boolean defaultColumn)MapRDbResultScannergetScanner(byte[] startKey, byte[] endKey, boolean defaultColumn, boolean onlyKeys)voidInit(java.lang.String tablePath, java.lang.String defaultColumnFamily, java.lang.String defaultQualifier)static booleanisDbCreated(java.lang.String path)java.util.Map<java.lang.String,byte[]>MultiColumnGet(byte[] key)static java.lang.StringprintBytes(byte[] bytes)voidPut(byte[] key, byte[] value)voidPut(byte[] key, java.util.Map<java.lang.String,byte[]> valueMap)voidPut(byte[] key, java.util.Map<java.lang.String,byte[]> insValueMap, java.util.List<java.lang.String> delColumns)
-
-
-
Method Detail
-
isDbCreated
public static boolean isDbCreated(java.lang.String path)
-
Init
public void Init(java.lang.String tablePath, java.lang.String defaultColumnFamily, java.lang.String defaultQualifier) throws java.io.IOException- Throws:
java.io.IOException
-
Put
public void Put(byte[] key, byte[] value) throws java.io.IOException- Throws:
java.io.IOException
-
Put
public void Put(byte[] key, java.util.Map<java.lang.String,byte[]> valueMap) throws java.io.IOException- Throws:
java.io.IOException
-
Put
public void Put(byte[] key, java.util.Map<java.lang.String,byte[]> insValueMap, java.util.List<java.lang.String> delColumns) throws java.io.IOException- Throws:
java.io.IOException
-
Delete
public void Delete(byte[] key, java.lang.String colName) throws java.io.IOException- Throws:
java.io.IOException
-
Delete
public void Delete(byte[] key) throws java.io.IOException- Throws:
java.io.IOException
-
Get
public byte[] Get(byte[] key) throws java.io.IOException- Throws:
java.io.IOException
-
MultiColumnGet
public java.util.Map<java.lang.String,byte[]> MultiColumnGet(byte[] key) throws java.io.IOException- Throws:
java.io.IOException
-
Exist
public boolean Exist(byte[] key) throws java.io.IOException- Throws:
java.io.IOException
-
getKeysScanner
public MapRDbResultScanner getKeysScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) throws java.io.IOException
- Throws:
java.io.IOException
-
getKeysScanner
public MapRDbResultScanner getKeysScanner(byte[] startKey, byte[] endKey) throws java.io.IOException
- Throws:
java.io.IOException
-
getScanner
public MapRDbResultScanner getScanner(byte[] startKey, byte[] endKey) throws java.io.IOException
- Throws:
java.io.IOException
-
getScanner
public MapRDbResultScanner getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn) throws java.io.IOException
- Throws:
java.io.IOException
-
getScanner
public MapRDbResultScanner getScanner(byte[] startKey, byte[] endKey, boolean defaultColumn, boolean onlyKeys) throws java.io.IOException
- Throws:
java.io.IOException
-
printBytes
public static java.lang.String printBytes(byte[] bytes)
-
-