org.hbase.async.HBaseClient Java Examples
The following examples show how to use
org.hbase.async.HBaseClient.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HBaseStoreFactory.java From qmq with Apache License 2.0 | 5 votes |
HBaseStoreFactory(DynamicConfig config, DicService dicService, BackupKeyGenerator keyGenerator) { final DynamicConfig hbaseConfig = DynamicConfigLoader.load(DEFAULT_HBASE_CONFIG_FILE, true); final Config HBaseConfig = from(hbaseConfig); this.client = new HBaseClient(HBaseConfig); this.client.setFlushInterval(CLIENT_FLUSH_INTERVAL); this.client.setIncrementBufferSize(CLIENT_BUFFER_SIZE); this.table = config.getString(HBASE_MESSAGE_INDEX_TABLE_CONFIG_KEY, DEFAULT_HBASE_MESSAGE_INDEX_TABLE); this.delayTable = config.getString(HBASE_DELAY_MESSAGE_INDEX_TABLE_CONFIG_KEY, DEFAULT_HBASE_DELAY_MESSAGE_INDEX_TABLE); this.recordTable = config.getString(HBASE_RECORD_TABLE_CONFIG_KEY, DEFAULT_HBASE_RECORD_TABLE); this.deadTable = config.getString(HBASE_DEAD_MESSAGE_CONFIG_KEY, DEFAULT_HBASE_DEAD_TABLE); this.deadContentTable = config.getString(HBASE_DEAD_MESSAGE_CONTENT_CONFIG_KEY, DEFAULT_HBASE_DEAD_CONTENT_TABLE); this.dicService = dicService; this.keyGenerator = keyGenerator; }
Example #2
Source File: HBaseRecordStore.java From qmq with Apache License 2.0 | 5 votes |
HBaseRecordStore(byte[] table, byte[] indexTable, byte[] family, byte[][] qualifiers, HBaseClient client , DicService dicService, BackupKeyGenerator keyGenerator) { super(table, family, qualifiers, client); this.indexTable = indexTable; this.dicService = dicService; this.keyGenerator = keyGenerator; }
Example #3
Source File: AppModule.java From diver with Apache License 2.0 | 5 votes |
@Provides @Singleton private HBaseClient providesHBaseClient( @Named("zk.quorum_spec") final String quorumSpec, @Named("zk.base_path") final String basePath) { return new HBaseClient(quorumSpec, basePath); }
Example #4
Source File: JavaServer.java From diver with Apache License 2.0 | 5 votes |
@Inject public JavaServer( final OtpNode otpNode, final HBaseClient hbaseClient, @Named("erlang.registered_proc_name") final String registeredProcName) { this.otpNode = otpNode; this.hbaseClient = hbaseClient; this.registeredProcName = registeredProcName; }
Example #5
Source File: HBaseDeadMessageStore.java From qmq with Apache License 2.0 | 4 votes |
HBaseDeadMessageStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client, DicService dicService) { super(table, family, qualifiers, client); this.dicService = dicService; }
Example #6
Source File: HBaseIndexStore.java From qmq with Apache License 2.0 | 4 votes |
HBaseIndexStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client, DicService dicService) { super(table, family, qualifiers, client); this.dicService = dicService; }
Example #7
Source File: AbstractHBaseMessageStore.java From qmq with Apache License 2.0 | 4 votes |
AbstractHBaseMessageStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client) { super(table, family, qualifiers, client); }
Example #8
Source File: HBaseDeadMessageContentStore.java From qmq with Apache License 2.0 | 4 votes |
HBaseDeadMessageContentStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client, DicService dicService) { super(table, family, qualifiers, client); this.dicService = dicService; }