Select the correct statement for the Put operation 1. It is used to add a row to a table 2. It Takes the row key as a byte array 3. Access Mostly Uused Products by 50000+ Subscribers 4. Only 3 correct 5. All 1,2 and 3 are correct
Explanation: Use constants for column family and column name - Avoids calling Bytes.toBytes more times than necessary Batch data into a single put - Concurrent readers will not see partially written rows - Concurrent writers will not update the same row - Records with same rowkey/column will have different timestamp Put method can also take a List of Put Put p = new Put(Bytes.toBytes("rowkey")); p.add(META, FNAME, Bytes.toBytes("John")); p.add(META, LNAME, Bytes.toBytes("Peter")); p.add(..); table.put(p);
Question : Select the correct mapping
A setAutoFlush(boolean) B flushCommits()
X. Buffers the put operations Y. Executes all buffered operations Z. Buffer is automatically flushed when it becomes full
Explanation: setAutoFlush(boolean); - Buffers the put operations - Buffer is automatically flushed when it becomes full flushCommits() - Executes all buffered operations
1. Reads all the Store files and writes to a single Store 2. Deleted rows and expired versions are removed 3. Access Mostly Uused Products by 50000+ Subscribers 4. None of the 1,2 and 3 are correct 5. All 1,2 and 3 are correct