@InterfaceAudience.Public @InterfaceStability.Evolving public class KuduTable extends Object
Modifier and Type | Method and Description |
---|---|
AsyncKuduClient |
getAsyncClient()
Get the async client that created this instance.
|
String |
getName()
Get this table's name.
|
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)
Get all or some tablets for this table.
|
List<LocatedTablet> |
getTabletsLocations(long deadline)
Get all the tablets for this table.
|
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.
|
public Schema getSchema()
public String getName()
public String getTableId()
public AsyncKuduClient getAsyncClient()
public Insert newInsert()
public Update newUpdate()
public Delete newDelete()
public List<LocatedTablet> getTabletsLocations(long deadline) throws Exception
deadline
- deadline in milliseconds for this method to finishException
public List<LocatedTablet> getTabletsLocations(byte[] startKey, byte[] endKey, long deadline) throws Exception
startKey
- where to start in the table, pass null to start at the beginningendKey
- where to stop in the table, pass null to get all the tablets until the end of
the tabledeadline
- deadline in milliseconds for this method to finishException
Copyright © 2015. All rights reserved.