Package com.mapr.fs

Class MapRDbUtils

  • Direct Known Subclasses:
    MemMapRDBUtils

    public class MapRDbUtils
    extends java.lang.Object
    • Constructor Detail

      • MapRDbUtils

        public MapRDbUtils()
    • 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
      • GetTimeStamps

        public long[] GetTimeStamps​(byte[] key,
                                    boolean isDefaultColumn)
                             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
      • getScannerForPrefix

        public MapRDbResultScanner getScannerForPrefix​(byte[] prefix,
                                                       boolean defaultColumn)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getScannerForTimeRange

        public MapRDbResultScanner getScannerForTimeRange​(long minTimeStamp,
                                                          long maxTimeStamp,
                                                          boolean defaultColumn)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • printBytes

        public static java.lang.String printBytes​(byte[] bytes)
      • close

        public void close()