vilcek/HiveKVStorageHandler2 — pull request #1 by dvasilen (2013-09-03 14:55:22+00:00)
Title: Added support for oracle.kv.parentKey and oracle.kv.subRange properties.

Hi Alexandre,

Can I ask you to consider this pull request to add support for "oracle.kv.parentKey" and "oracle.kv.subRange" properties? Here are the relevant changes to the KVHiveInputFormat.java:

Key parentKey = null;
String parentKeyValue = conf.get("oracle.kv.parentKey");
if (parentKeyValue != null && parentKeyValue.length() > 0) {
parentKey = Key.fromString(parentKeyValue);
}
KeyRange subRange = null;
String subRangeValue = conf.get("oracle.kv.subRange");
if (subRangeValue != null && subRangeValue.length() > 0) {
subRange = KeyRange.fromString(subRangeValue);
}

I have updated the HiveKVStorageHandler.jar file as well. The user should be able to specify the "oracle.kv.parentKey" and "oracle.kv.subRange" in the Hive shell, e.g.
oracle.kv.parentKey=/Smith;

I have tested the implementation with Oracle NoSQL 2.1.8 Community Edition.

Best regards,
Dmitry Vasilenko