Package org.lilyproject.repository.impl

Examples of org.lilyproject.repository.impl.HBaseRepository


            // we need an HBaseRepository for bulk access
            Configuration conf = HBaseConfiguration.create();
            conf.set("hbase.zookeeper.quorum", zkConnString);
            HBaseTableFactory hbaseTableFactory = new HBaseTableFactoryImpl(conf);
            HBaseRepository hbaseRepository = createHBaseRepository(repositoryName, tableName, zk, conf, hbaseTableFactory);

            return new BulkIngester(
                    lilyClient,
                    hbaseRepository,
                    LilyHBaseSchema.getRecordTable(hbaseTableFactory, hbaseRepository.getRepositoryName(),
                            hbaseRepository.getTableName()),
                    bulkMode);

        } catch (Exception e) {
            ExceptionUtil.handleInterrupt(e);
            throw new RuntimeException(e);
View Full Code Here


        TypeManager typeManager = new HBaseTypeManager(idGenerator, conf, zk, hbaseTableFactory);
        RecordFactory recordFactory = new RecordFactoryImpl();

        RepositoryManager repositoryManager = new HBaseRepositoryManager(typeManager, idGenerator,
                recordFactory, hbaseTableFactory, new BlobsNotSupportedBlobManager(), conf, repositoryModel);
        HBaseRepository hbaseRepository;
        if (tableName != null) {
            hbaseRepository = (HBaseRepository) repositoryManager.getRepository(repositoryName).getTable(tableName);
        } else {
            hbaseRepository = (HBaseRepository) repositoryManager.getRepository(repositoryName);
        }
View Full Code Here

        if (decoratoredRepositoryCache.containsKey(key)) {
            throw new RuntimeException("Unexpected: createRepository is called twice for " + key);
        }

        HBaseRepository repository = (HBaseRepository)wrappedRepositoryManager.getRepository(
                key.getRepositoryName()).getTable(key.getTableName());

        recordUpdateHookActivator.activateUpdateHooks(repository);

        RepositoryDecoratorChain chain = repositoryDecoratorActivator.getDecoratedRepository(repository);
View Full Code Here

        repositoryManager = new HBaseRepositoryManager(typeManager, idGenerator, recordFactory, hbaseTableFactory,
                blobManager, hadoopConf, repositoryModel) {
            @Override
            protected Repository createRepository(RepoTableKey key) throws InterruptedException, RepositoryException {
                HBaseRepository repository = (HBaseRepository)super.createRepository(key);
                repository.setRecordUpdateHooks(recordUpdateHooks);
                return repository;
            }
        };

View Full Code Here

TOP

Related Classes of org.lilyproject.repository.impl.HBaseRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.