Class MapRDBMetadataMgr

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class MapRDBMetadataMgr
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • MapRDBMetadataMgr

        public MapRDBMetadataMgr​(MapRFileSystem mfs,
                                 java.lang.String clusterName)
      • MapRDBMetadataMgr

        public MapRDBMetadataMgr​(MapRFileSystem mfs,
                                 java.util.Collection<java.lang.String> skipRegexList)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • prepareCreate

        public void prepareCreate​(java.lang.String tablePathStr)
      • commitCreate

        public boolean commitCreate​(java.lang.String tablePathStr)
      • deleteEntry

        public void deleteEntry​(java.lang.String tablePathStr)
      • deleteEntries

        public void deleteEntries​(java.util.List<java.lang.String> entriesToDelete)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getMetaDataEntries

        public java.lang.Iterable<MetadataEntry> getMetaDataEntries()
                                                             throws java.io.IOException
        The Iterable returned by this method can be used to get only one Iterator
        Throws:
        java.io.IOException
      • update

        public int update​(org.apache.hadoop.fs.Path rootPath)
                   throws java.io.IOException
        Throws:
        java.io.IOException