HBASE-805 Remove unnecessary getRow overloads in HRS (Jonathan Gray via Jim Kellerman)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@684054 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Kellerman 2008-08-08 18:55:46 +00:00
parent 8124fa7f7c
commit fa86731a5b
4 changed files with 1853 additions and 1895 deletions

View File

@ -4,6 +4,9 @@ Release 0.3.0 - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES
BUG FIXES BUG FIXES
HBASE-805 Remove unnecessary getRow overloads in HRS (Jonathan Gray via
Jim Kellerman)
IMPROVEMENTS IMPROVEMENTS
HBASE-801 When a table haven't disable, shell could response in a "user HBASE-801 When a table haven't disable, shell could response in a "user
friendly" way. friendly" way.

View File

@ -554,14 +554,7 @@ public class HTable {
*/ */
public RowResult getRow(final byte [] row, final long ts) public RowResult getRow(final byte [] row, final long ts)
throws IOException { throws IOException {
return connection.getRegionServerWithRetries( return getRow(row,null,ts);
new ServerCallable<RowResult>(connection, tableName, row) {
public RowResult call() throws IOException {
return server.getRow(location.getRegionInfo().getRegionName(), row,
ts);
}
}
);
} }
/** /**

View File

@ -93,18 +93,6 @@ public interface HRegionInterface extends VersionedProtocol {
final byte [] column, final long timestamp, final int numVersions) final byte [] column, final long timestamp, final int numVersions)
throws IOException; throws IOException;
/**
* Get all the data for the specified row at a given timestamp
*
* @param regionName region name
* @param row row key
* @return map of values
* @throws IOException
*/
public RowResult getRow(final byte [] regionName, final byte [] row,
final long ts)
throws IOException;
/** /**
* Return all the data for the row that matches <i>row</i> exactly, * Return all the data for the row that matches <i>row</i> exactly,
* or the one that immediately preceeds it. * or the one that immediately preceeds it.
@ -130,18 +118,6 @@ public interface HRegionInterface extends VersionedProtocol {
final byte[][] columns, final long ts) final byte[][] columns, final long ts)
throws IOException; throws IOException;
/**
* Get selected columns for the specified row at the latest timestamp.
*
* @param regionName region name
* @param row row key
* @return map of values
* @throws IOException
*/
public RowResult getRow(final byte [] regionName, final byte [] row,
final byte[][] columns)
throws IOException;
/** /**
* Applies a batch of updates via one RPC * Applies a batch of updates via one RPC
* *

View File

@ -1046,20 +1046,6 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
} }
} }
/** {@inheritDoc} */
public RowResult getRow(final byte [] regionName, final byte [] row,
final long ts)
throws IOException {
return getRow(regionName, row, null, ts);
}
/** {@inheritDoc} */
public RowResult getRow(final byte [] regionName, final byte [] row,
final byte [][] columns)
throws IOException {
return getRow(regionName, row, columns, HConstants.LATEST_TIMESTAMP);
}
/** {@inheritDoc} */ /** {@inheritDoc} */
public RowResult getRow(final byte [] regionName, final byte [] row, public RowResult getRow(final byte [] regionName, final byte [] row,
final byte [][] columns, final long ts) final byte [][] columns, final long ts)