Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into 4.0
  • Loading branch information
Mujtaba committed Aug 25, 2014
2 parents 59ebcbd + e32676d commit 4028255
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -35,6 +35,7 @@
import org.apache.hadoop.hbase.client.HTableInterface;
import org.apache.hadoop.hbase.client.Mutation;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import org.apache.hadoop.hbase.util.Addressing;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.util.Pair;
import org.apache.phoenix.compile.MutationPlan;
Expand Down Expand Up @@ -86,6 +87,8 @@
* @since 0.1
*/
public class ConnectionlessQueryServicesImpl extends DelegateQueryServices implements ConnectionQueryServices {
private static ServerName SERVER_NAME = ServerName.parseServerName(HConstants.LOCALHOST + Addressing.HOSTNAME_PORT_SEPARATOR + HConstants.DEFAULT_ZOOKEPER_CLIENT_PORT);

private PMetaData metaData;
private final Map<SequenceKey, SequenceInfo> sequenceMap = Maps.newHashMap();
private final String userName;
Expand Down Expand Up @@ -145,7 +148,7 @@ public void clearStats() throws SQLException {
public List<HRegionLocation> getAllTableRegions(byte[] tableName) throws SQLException {
return Collections.singletonList(new HRegionLocation(
new HRegionInfo(TableName.valueOf(tableName), HConstants.EMPTY_START_ROW, HConstants.EMPTY_END_ROW),
ServerName.valueOf("localhost", HConstants.DEFAULT_REGIONSERVER_PORT,0), -1));
SERVER_NAME, -1));
}

@Override
Expand Down

0 comments on commit 4028255

Please sign in to comment.