This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.commonvox.hbase_column_manager_gist; | |
import java.io.IOException; | |
import org.apache.hadoop.hbase.HColumnDescriptor; | |
import org.apache.hadoop.hbase.HTableDescriptor; | |
import org.apache.hadoop.hbase.NamespaceDescriptor; | |
import org.apache.hadoop.hbase.NamespaceNotFoundException; | |
import org.apache.hadoop.hbase.TableName; | |
import org.apache.hadoop.hbase.client.Admin; | |
import org.apache.hadoop.hbase.client.Connection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.commonvox.hbase_column_manager_gist; | |
import java.io.File; | |
import java.io.IOException; | |
import org.apache.hadoop.hbase.HColumnDescriptor; | |
import org.apache.hadoop.hbase.HTableDescriptor; | |
import org.apache.hadoop.hbase.NamespaceDescriptor; | |
import org.apache.hadoop.hbase.NamespaceNotFoundException; | |
import org.apache.hadoop.hbase.TableName; | |
import org.apache.hadoop.hbase.client.Admin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.commonvox.collections.gists; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map.Entry; | |
import java.util.Set; | |
import org.commonvox.collections.KeyComponentProfile; | |
import org.commonvox.collections.OrderedSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.commonvox.collections.gists; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Date; | |
import java.util.Iterator; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import org.apache.hadoop.hbase.TableNotFoundException; | |
import org.apache.hadoop.hbase.client.Get; | |
import org.apache.hadoop.hbase.client.Table; | |
import org.apache.hadoop.hbase.util.Bytes; | |
/** The following was coded using HBase 1.0.1.1 */ | |
public class HbaseTableValidator { | |
private static final Get DUMMY_GET = new Get(Bytes.toBytes(0)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This brief HELLO WORLD Java program is meant to enable you to very quickly | |
* gain a rudimentary, hands-on understanding of how data (and metadata) is | |
* stored and retrieved in HBase via the "client API". | |
* | |
* PART 1: CONCEPTS | |
* ================ | |
* For those coming to the HBase world with previous experience in traditional | |
* RDBMS databases, it is essential to realize that Tables, Rows, and Columns | |
* in HBase, while bearing some resemblance to their namesakes in the RDBMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.TreeMap; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* This code was created to help its author to internalize and more deeply | |
* understand the fundamental constructs of the Data Model of the HBase | |
* database system. It is provided here in the event that it may prove useful | |
* to others engaging in similar explorations. The descriptive comments that | |
* follow may prove helpful, and those with basic Java programming skills may | |
* also find it useful to experiment with the create, list, put, scan, and get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.commonvox.indexedcollectionexample; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import org.commonvox.indexedcollection.CompositeIndex; | |
import org.commonvox.indexedcollection.IndexedCollection; | |
/** | |
* This is a simple example of constructing and querying an IndexedCollection. |