@InterfaceAudience.Public @InterfaceStability.Evolving public class KuduTable extends Object
Modifier and Type | Method and Description |
---|---|
com.stumbleupon.async.Deferred<List<LocatedTablet>> |
asyncGetTabletsLocations(byte[] startKey,
byte[] endKey,
long deadline)
Deprecated.
use the
KuduScanToken API |
com.stumbleupon.async.Deferred<List<LocatedTablet>> |
asyncGetTabletsLocations(long deadline)
Deprecated.
use the
KuduScanToken API |
AsyncKuduClient |
getAsyncClient()
Get the async client that created this instance.
|
Map<String,String> |
getExtraConfig()
Get this table's extra configuration properties.
|
String |
getName()
Get this table's name.
|
int |
getNumReplicas()
Get this table's replication factor.
|
String |
getOwner()
Get this table's owner.
|
Schema |
getSchema()
Get this table's schema, as of the moment this instance was created.
|
String |
getTableId()
Get this table's unique identifier.
|
KuduTableStatistics |
getTableStatistics()
Get this table's statistics.
|
List<LocatedTablet> |
getTabletsLocations(byte[] startKey,
byte[] endKey,
long deadline)
Deprecated.
use the
KuduScanToken API |
List<LocatedTablet> |
getTabletsLocations(long deadline)
Deprecated.
use the
KuduScanToken API |
Delete |
newDelete()
Get a new delete configured with this table's schema.
|
DeleteIgnore |
newDeleteIgnore()
Get a new delete ignore configured with this table's schema.
|
Insert |
newInsert()
Get a new insert configured with this table's schema.
|
InsertIgnore |
newInsertIgnore()
Get a new insert ignore configured with this table's schema.
|
Update |
newUpdate()
Get a new update configured with this table's schema.
|
UpdateIgnore |
newUpdateIgnore()
Get a new update ignore configured with this table's schema.
|
Upsert |
newUpsert()
Get a new upsert configured with this table's schema.
|
public Schema getSchema()
public String getName()
public String getTableId()
public int getNumReplicas()
public Map<String,String> getExtraConfig()
public String getOwner()
public AsyncKuduClient getAsyncClient()
public Insert newInsert()
public Update newUpdate()
public Delete newDelete()
public Upsert newUpsert()
public InsertIgnore newInsertIgnore()
public UpdateIgnore newUpdateIgnore()
public DeleteIgnore newDeleteIgnore()
@Deprecated public com.stumbleupon.async.Deferred<List<LocatedTablet>> asyncGetTabletsLocations(long deadline)
KuduScanToken
APIdeadline
- max time spent in milliseconds for the deferred result of this method to
get called back, if deadline is reached, the deferred result will get erred backDeferred
object that yields a list containing the metadata and
locations for each of the tablets in the table@Deprecated public com.stumbleupon.async.Deferred<List<LocatedTablet>> asyncGetTabletsLocations(byte[] startKey, byte[] endKey, long deadline)
KuduScanToken
APIstartKey
- where to start in the table, pass null to start at the beginningendKey
- where to stop in the table (exclusive), pass null to get all the tablets until
the end of the tabledeadline
- max time spent in milliseconds for the deferred result of this method to
get called back, if deadline is reached, the deferred result will get erred backDeferred
object that yields a list containing the metadata and locations
for each of the tablets in the table@Deprecated public List<LocatedTablet> getTabletsLocations(long deadline) throws Exception
KuduScanToken
APIdeadline
- deadline in milliseconds for this method to finishException
@Deprecated public List<LocatedTablet> getTabletsLocations(byte[] startKey, byte[] endKey, long deadline) throws Exception
KuduScanToken
APIstartKey
- where to start in the table, pass null to start at the beginningendKey
- where to stop in the table (exclusive), pass null to get all the tablets until
the end of the tabledeadline
- deadline in milliseconds for this method to finishException
public KuduTableStatistics getTableStatistics() throws KuduException
KuduException