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:
parent
8124fa7f7c
commit
fa86731a5b
|
@ -4,6 +4,9 @@ Release 0.3.0 - Unreleased
|
|||
|
||||
INCOMPATIBLE CHANGES
|
||||
BUG FIXES
|
||||
HBASE-805 Remove unnecessary getRow overloads in HRS (Jonathan Gray via
|
||||
Jim Kellerman)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-801 When a table haven't disable, shell could response in a "user
|
||||
friendly" way.
|
||||
|
|
|
@ -554,14 +554,7 @@ public class HTable {
|
|||
*/
|
||||
public RowResult getRow(final byte [] row, final long ts)
|
||||
throws IOException {
|
||||
return connection.getRegionServerWithRetries(
|
||||
new ServerCallable<RowResult>(connection, tableName, row) {
|
||||
public RowResult call() throws IOException {
|
||||
return server.getRow(location.getRegionInfo().getRegionName(), row,
|
||||
ts);
|
||||
}
|
||||
}
|
||||
);
|
||||
return getRow(row,null,ts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -93,18 +93,6 @@ public interface HRegionInterface extends VersionedProtocol {
|
|||
final byte [] column, final long timestamp, final int numVersions)
|
||||
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,
|
||||
* or the one that immediately preceeds it.
|
||||
|
@ -130,18 +118,6 @@ public interface HRegionInterface extends VersionedProtocol {
|
|||
final byte[][] columns, final long ts)
|
||||
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
|
||||
*
|
||||
|
|
|
@ -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} */
|
||||
public RowResult getRow(final byte [] regionName, final byte [] row,
|
||||
final byte [][] columns, final long ts)
|
||||
|
|
Loading…
Reference in New Issue