com.google.cloud.bigtable.hbase
Class BigtableRegionLocator
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.AbstractBigtableRegionLocator
-
- com.google.cloud.bigtable.hbase.BigtableRegionLocator
-
- All Implemented Interfaces:
- Closeable, AutoCloseable, RegionLocator
public abstract class BigtableRegionLocator extends AbstractBigtableRegionLocator implements RegionLocator
BigtableRegionLocator class.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Field Summary
Fields Modifier and Type Field and Description protected static Logger
LOG
ConstantLOG
-
Fields inherited from class com.google.cloud.bigtable.hbase.AbstractBigtableRegionLocator
MAX_REGION_AGE_MILLIS, tableName
-
-
Constructor Summary
Constructors Constructor and Description BigtableRegionLocator(TableName tableName, BigtableOptions options, IBigtableDataClient client)
Constructor for BigtableRegionLocator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
close()
List<HRegionLocation>
getAllRegionLocations()
byte[][]
getEndKeys()
TableName
getName()
HRegionLocation
getRegionLocation(byte[] row)
HRegionLocation
getRegionLocation(byte[] row, boolean reload)
Pair<byte[][],byte[][]>
getStartEndKeys()
byte[][]
getStartKeys()
-
Methods inherited from class com.google.cloud.bigtable.hbase.AbstractBigtableRegionLocator
getRegionsAsync, getSampledRowKeysAdapter
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
ConstantLOG
-
-
Constructor Detail
-
BigtableRegionLocator
public BigtableRegionLocator(TableName tableName, BigtableOptions options, IBigtableDataClient client)
Constructor for BigtableRegionLocator.- Parameters:
tableName
- aTableName
object.options
- aBigtableOptions
object.client
- aIBigtableDataClient
object.
-
-
Method Detail
-
getRegionLocation
public HRegionLocation getRegionLocation(byte[] row) throws IOException
- Specified by:
getRegionLocation
in interfaceRegionLocator
- Throws:
IOException
-
getRegionLocation
public HRegionLocation getRegionLocation(byte[] row, boolean reload) throws IOException
- Specified by:
getRegionLocation
in interfaceRegionLocator
- Throws:
IOException
-
getAllRegionLocations
public List<HRegionLocation> getAllRegionLocations() throws IOException
- Specified by:
getAllRegionLocations
in interfaceRegionLocator
- Throws:
IOException
-
getStartKeys
public byte[][] getStartKeys() throws IOException
- Specified by:
getStartKeys
in interfaceRegionLocator
- Throws:
IOException
-
getEndKeys
public byte[][] getEndKeys() throws IOException
- Specified by:
getEndKeys
in interfaceRegionLocator
- Throws:
IOException
-
getStartEndKeys
public Pair<byte[][],byte[][]> getStartEndKeys() throws IOException
- Specified by:
getStartEndKeys
in interfaceRegionLocator
- Throws:
IOException
-
getName
public TableName getName()
- Specified by:
getName
in interfaceRegionLocator
-
close
public void close() throws IOException
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-