Package me.prettyprint.hector.api.query

Examples of me.prettyprint.hector.api.query.QueryResult


        endTime);
    DynamicComposite endRange = getEndRange(timeDimension, startTime,
        endTime);
    sliceCounterQuery.setColumnNames(startRange);
    sliceCounterQuery.setRange(startRange, endRange, false, 100);
    QueryResult result = sliceCounterQuery.execute();
    return result;
  }
View Full Code Here


      List<CassandraColumnInfo> columns=mapper.mapClassToColumnList(key.getEntityClass());
     
      if (!columns.isEmpty()) {
        for (CassandraColumnInfo column:columns) {
          ColumnQuery query=HFactory.createColumnQuery(keyspace, StringSerializer.get(), StringSerializer.get(), column.getSerializer());
          QueryResult result=query.setColumnFamily(key.getEntityClass().getName().replace(".", "_")).setKey(key.getId()).setName(column.getColumnName()).execute();
          if (result!=null) {
            if (entity==null) {
              entity=key.getEntityClass().newInstance();
            }
            Object value=result.get();
            column.setValue(entity, value);
          }
        }
      } else {
        // this is a entity with no setters, so we don't can set any attributes, the implementation retuns a empty object just containing the id
View Full Code Here

TOP

Related Classes of me.prettyprint.hector.api.query.QueryResult

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.