Search in sources :

Example 1 with Session

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());
    }
}
Also used : BackendAction(com.baidu.hugegraph.backend.store.BackendAction) Session(com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session)

Example 2 with Session

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);
}
Also used : Session(com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session)

Example 3 with Session

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();
}
Also used : Session(com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session)

Example 4 with Session

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);
}
Also used : Session(com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session)

Example 5 with Session

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();
}
Also used : Session(com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session)

Aggregations

Session (com.baidu.hugegraph.backend.store.hbase.HbaseSessions.Session)5 BackendAction (com.baidu.hugegraph.backend.store.BackendAction)1