Package org.hypertable.thriftgen

Examples of org.hypertable.thriftgen.ScanSpec


                    Vector<HashMap<String, ByteIterator>> result)
    {
        //SELECT _columnFamily:fields FROM table WHERE (ROW >= startkey)
        //    LIMIT recordcount MAX_VERSIONS 1;
       
        ScanSpec spec = new ScanSpec();
        RowInterval elem = new RowInterval();
        elem.setStart_inclusive(true);
        elem.setStart_row(startkey);
        spec.addToRow_intervals(elem);
        if (null != fields) {
            for (String field : fields) {
                spec.addToColumns(_columnFamily + ":" + field);
            }
        }
        spec.setVersions(1);
        spec.setRow_limit(recordcount);

        SerializedCellsReader reader = new SerializedCellsReader(null);

        try {
            long sc = connection.scanner_open(ns, table, spec);
View Full Code Here

TOP

Related Classes of org.hypertable.thriftgen.ScanSpec

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.