public static FileSystemMetastore getFilesystemMetastore()

in src/main/java/com/netflix/bdp/s3mper/metastore/Metastore.java [41:64]


    public static FileSystemMetastore getFilesystemMetastore(Configuration conf)
            throws Exception {
        if (metastore == null) {
            synchronized (Metastore.class) {
                if (metastore == null) {
                    Class<?> metaImpl = conf.getClass("s3mper.metastore.impl",
                                com.netflix.bdp.s3mper.metastore.impl.BigTableMetastore.class);
//                            com.netflix.bdp.s3mper.metastore.impl.DynamoDBMetastore.class);

                    try {
                        metastore = (FileSystemMetastore) ReflectionUtils.newInstance(metaImpl, conf);
                        if (log.isDebugEnabled()) {
                            metastore = new LoggingMetastore(metastore);
                        }
                    } catch (Exception e) {
                        log.error("Error initializing s3mper metastore", e);
                        throw e;
                    }

                }
            }
        }
        return metastore;
    }