public Scan getResultScan ( String tableName , String famName , ByteBuffer startKey , ByteBuffer endKey ) throws IOException { logger . debug ( "AbstractHBaseUtils Begin of getResultScan(" + tableName + ", " + famName + ")" ) ; Scan scan = new Scan ( ) ; scan . addFamily ( Bytes . toBytes ( famName ) ) ; // For a range scan, set start / stop id or just start. if ( startKey != null ) scan . setStartRow ( Bytes . toBytes ( startKey ) ) ; if ( endKey != null ) scan . setStopRow ( Bytes . toBytes ( endKey ) ) ; return scan ; }
Creates a scan