Package com.mapr.fs

Class 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
      void Delete​(byte[] key)  
      void Delete​(byte[] key, java.lang.String colName)  
      boolean Exist​(byte[] key)  
      byte[] Get​(byte[] key)  
      MapRDbResultScanner getKeysScanner​(byte[] startKey, byte[] endKey)  
      MapRDbResultScanner getKeysScanner​(byte[] startKey, byte[] endKey, boolean defaultColumn)  
      MapRDbResultScanner getScanner​(byte[] startKey, byte[] endKey)  
      MapRDbResultScanner getScanner​(byte[] startKey, byte[] endKey, boolean defaultColumn)  
      MapRDbResultScanner getScanner​(byte[] startKey, byte[] endKey, boolean defaultColumn, boolean onlyKeys)  
      void Init​(java.lang.String tablePath, java.lang.String defaultColumnFamily, java.lang.String defaultQualifier)  
      java.util.Map<java.lang.String,​byte[]> MultiColumnGet​(byte[] key)  
      static java.lang.String printBytes​(byte[] bytes)  
      void Put​(byte[] key, byte[] value)  
      void Put​(byte[] key, java.util.Map<java.lang.String,​byte[]> valueMap)  
      void Put​(byte[] key, java.util.Map<java.lang.String,​byte[]> insValueMap, java.util.List<java.lang.String> delColumns)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapRDbUtils

        public MapRDbUtils()
    • Method Detail

      • 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)