PrepAway - Latest Free Exam Questions & Answers

Where your application should configure the maximum number of versions to be retrieved?

From within an HBase application, you want to retrieve two versions of a row, if they exist. Where
your application should configure the maximum number of versions to be retrieved?

PrepAway - Latest Free Exam Questions & Answers

A.
HTableDescriptor

B.
HTable

C.
Get or scan

D.
HColumnDescriptor

Explanation:
maxVersions – Maximum number of versions to keep
Note:
*public HColumnDescriptor(byte[] familyName,
int maxVersions,
String compression,
boolean inMemory,
boolean blockCacheEnabled,
int timeToLive,
String bloomFilter)
*
An HColumnDescriptor contains information about a column family such as the number of
versions, compression settings, etc. It is used as input when creating a table or adding a column.
Once set, the parameters that specify a column cannot be changed without deleting the column
and recreating it. If there is data stored in the column, it will be deleted when the column is
deleted.
Reference:org.apache.hadoop.hbase,Class HColumnDescriptor

One Comment on “Where your application should configure the maximum number of versions to be retrieved?


Leave a Reply to mr_tienvu Cancel reply

Your email address will not be published. Required fields are marked *