Skip to content

Commit 10f7466

Browse files
committed
fixes hbase properties
1 parent c4d0e2f commit 10f7466

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2020 Otávio Santana and others
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* and Apache License v2.0 which accompanies this distribution.
6+
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
7+
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
8+
*
9+
* You may elect to redistribute this code under either of these licenses.
10+
*
11+
* Contributors:
12+
*
13+
* Otavio Santana
14+
*/
15+
package org.eclipse.jnosql.diana.hbase.column;
16+
17+
import jakarta.nosql.column.ColumnFamilyManager;
18+
import jakarta.nosql.tck.communication.driver.column.ColumnFamilyManagerSupplier;
19+
20+
public class HBaseColumnFamilyManagerSupplier implements ColumnFamilyManagerSupplier {
21+
22+
private static final String DATABASE = "tck-database";
23+
public static final String FAMILY = "person";
24+
25+
@Override
26+
public ColumnFamilyManager get() {
27+
HBaseColumnConfiguration configuration = new HBaseColumnConfiguration();
28+
configuration.add(FAMILY);
29+
final HBaseColumnFamilyManagerFactory factory = configuration.get();
30+
return factory.get(DATABASE);
31+
}
32+
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.jnosql.diana.hbase.column.HBaseColumnFamilyManagerSupplier
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
query.1=insert person {"_id": 1, "name": "Diana"}
2+
id.name=_id
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
query.1=insert person {"_id": 1, "name": "Diana"}
2+
query.2=insert person {"_id": 2, "name": "Artemis"}
3+
id.name=_id

0 commit comments

Comments
 (0)