Merge pull request #295 from JingchengDu/master

Modify the sqlType of the UNSIGNED_SMALLINT
re-calulate byte-size for MappedByteBufferSortedQueue
Phoenix#291
re-calculate byte size for OrderedResultIterator
Merge pull request #297 from maryannxue/master

Resolve issue #294
Reverting secondary indexing support to fix the build.

Original code is still available at SHA 1a11cb5f0280a2e404a79a0a8877f906ef526c22.
Merge pull request #302 from forcedotcom/revert-secondary-indexing

Reverting secondary indexing support to fix the build.
Merge pull request #284 from tonyhuang/index

Secondary Index I
Merge remote-tracking branch 'upstream/master'

Conflicts:
	src/main/antlr3/PhoenixSQL.g
Merge pull request #298 from anoopsjohn/master

Issue#291 (Support PERCENTILE_CONT aggregate function)
Partial work on secondary indexes
Issue#303
Merge pull request #306 from anoopsjohn/master

Fix for Issue#303
Fix compiler warning, use nested try block for Pig cleanupOnSuccess method
Adding a basic column-covered index implementation.

This is a Indexer that demonstrates how one might build
a covered index. In this case, we cover only the specified
columns and ignore the rest of the columns in the row.

The implementation has three main parts: the specifier, the
codec, and the indexer. The specifier is a helper to correctly
configure the columns that you want to index. The codec does the
work of transforming to/from index entries. It also supports
manipulation of the backing data so you can apply a delete/put
(or a subset of their kvs) to the row and then build the new index entry.
Finally, the indexer manages getting the local row, batching entries
based on their timestamp (one of the tricker pieces as a put/delete
can have KVs that all correspond to different timestamps).

Also, this commit fixes a small bug in the Indexer.
Previously, when we attempt to make an index update, but there are no resulting updates
(i.e. delete of an empty row) we early out in doPre which skips taking the update lock
since we don't need to lock rolling of the WAL if there are no index updates to write.
However, we still release the lock in doPost, even if no index updates had been made.
Therefore, we end up getting an IllegalMonitorException since that lock is unheld.
modify TenantCacheImpl and HashCacheClient for equi-joins
Merge pull request #307 from jyates/index-maintenance

Adding a basic column-covered index implementation to hbase-index
Merge pull request #310 from JingchengDu/master

#159: Support the FLOAT and DOUBLE types
partial work on secondary indexing
Keep secondary index branch in syn with master