All operations are identical to {@link Get} with the exception ofinstantiation. Rather than specifying a single row, an optional startRow and stopRow may be defined. If rows are not specified, the Scanner will iterate over all rows.
To scan everything for each row, instantiate a Scan object.
To modify scanner caching for just this scan, use {@link #setCaching(int) setCaching}. If caching is NOT set, we will use the caching value of the hosting {@link HTable}. See {@link HTable#setScannerCaching(int)}.
To further define the scope of what to get when scanning, perform additional methods as outlined below.
To get all columns from specific families, execute {@link #addFamily(byte[]) addFamily}for each family to retrieve.
To get specific columns, execute {@link #addColumn(byte[],byte[]) addColumn}for each column to retrieve.
To only retrieve columns within a specific range of version timestamps, execute {@link #setTimeRange(long,long) setTimeRange}.
To only retrieve columns with a specific timestamp, execute {@link #setTimeStamp(long) setTimestamp}.
To limit the number of versions of each column to be returned, execute {@link #setMaxVersions(int) setMaxVersions}.
To limit the maximum number of values returned for each call to next(), execute {@link #setBatch(int) setBatch}.
To add a filter, execute {@link #setFilter(org.apache.hadoop.hbase.filter.Filter) setFilter}.
Expert: To explicitly disable server-side block caching for this scan, execute {@link #setCacheBlocks(boolean)}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|