use of com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session in project incubator-hugegraph by apache.
the class HbaseStore method mutate.
@Override
public void mutate(BackendMutation mutation) {
if (LOG.isDebugEnabled()) {
LOG.debug("Store {} mutation: {}", this.store, mutation);
}
this.checkOpened();
Session session = this.sessions.session();
for (Iterator<BackendAction> it = mutation.mutation(); it.hasNext(); ) {
this.mutate(session, it.next());
}
}
use of com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session in project incubator-hugegraph by apache.
the class HbaseStore method query.
@Override
public Iterator<BackendEntry> query(Query query) {
this.checkOpened();
Session session = this.sessions.session();
HbaseTable table = this.table(HbaseTable.tableType(query));
return table.query(session, query);
}
use of com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session in project incubator-hugegraph by apache.
the class HbaseStore method rollbackTx.
@Override
public void rollbackTx() {
this.checkOpened();
Session session = this.sessions.session();
session.rollback();
}
use of com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session in project incubator-hugegraph by apache.
the class HbaseStore method queryNumber.
@Override
public Number queryNumber(Query query) {
this.checkOpened();
Session session = this.sessions.session();
HbaseTable table = this.table(HbaseTable.tableType(query));
return table.queryNumber(session, query);
}
use of com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session in project incubator-hugegraph by apache.
the class HbaseStore method commitTx.
@Override
public void commitTx() {
this.checkOpened();
Session session = this.sessions.session();
session.commit();
}
Aggregations