@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.
|
String |
getName()
Get this table's name.
|
int |
getNumReplicas()
Get this table's replication factor.
|
Schema |
getSchema()
Get this table's schema, as of the moment this instance was created.
|
String |
getTableId()
Get this table's unique identifier.
|
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.
|
Insert |
newInsert()
Get a new insert configured with this table's schema.
|
Update |
newUpdate()
Get a new update 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 AsyncKuduClient getAsyncClient()
public Insert newInsert()
public Update newUpdate()
public Delete newDelete()
public Upsert newUpsert()
@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
Copyright © 2018 The Apache Software Foundation. All rights reserved.