Package com.mapr.client.impl
Class MapRClient
- java.lang.Object
-
- com.mapr.client.impl.MapRClient
-
- All Implemented Interfaces:
Connection,LifeCycle
public class MapRClient extends java.lang.Object implements Connection, LifeCycle
-
-
Constructor Summary
Constructors Constructor Description MapRClient(Cluster cluster)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponsecolumnFamilyScan(Fid tableFid)TablecreateTable(java.lang.String tablePath)FiddoPathWalk(java.lang.String filePath, Fid startFid)com.mapr.fs.proto.Fileserver.GetattrResponsegetAttr(Fid fileFid)com.mapr.fs.proto.Common.SetattrMsggetAttributes()CldbClientgetCldbClient()io.netty.channel.EventLoopGroupgetClientEventLoopGroup()com.mapr.fs.proto.Security.CredentialsMsggetCredentials()MfsClientgetMfsClientFromContainerId(int containerId)FidgetRootFid()io.netty.channel.EventLoopGroupgetServerEventLoopGroup()TablegetTable(java.lang.String tablePath)booleanisSecure()booleanisStarted()com.mapr.fs.proto.Dbserver.TabletLookupResponselookupTablet(java.lang.String key, Fid tableFid, int numTablets)intnextEpoh()com.stumbleupon.async.Deferred<java.lang.Object>start()com.stumbleupon.async.Deferred<java.lang.Object>stop()com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.PutResponse>submitPutReq(Fid tableFid, java.lang.String columnFamilyName, io.netty.buffer.ByteBuf rowKey, io.netty.buffer.ByteBuf rowValue)com.mapr.fs.proto.Fileserver.UnlinkResponseunlink(java.lang.String filePath)
-
-
-
Constructor Detail
-
MapRClient
public MapRClient(Cluster cluster)
-
-
Method Detail
-
start
public com.stumbleupon.async.Deferred<java.lang.Object> start()
-
stop
public com.stumbleupon.async.Deferred<java.lang.Object> stop()
-
getCldbClient
public CldbClient getCldbClient()
-
getCredentials
public com.mapr.fs.proto.Security.CredentialsMsg getCredentials()
-
getAttributes
public com.mapr.fs.proto.Common.SetattrMsg getAttributes()
-
nextEpoh
public int nextEpoh()
-
getClientEventLoopGroup
public io.netty.channel.EventLoopGroup getClientEventLoopGroup()
-
getServerEventLoopGroup
public io.netty.channel.EventLoopGroup getServerEventLoopGroup()
-
isSecure
public boolean isSecure()
-
getTable
public Table getTable(java.lang.String tablePath) throws MapRClientException
- Specified by:
getTablein interfaceConnection- Throws:
MapRClientException
-
createTable
public Table createTable(java.lang.String tablePath) throws MapRClientException
- Specified by:
createTablein interfaceConnection- Throws:
MapRClientException
-
getMfsClientFromContainerId
public MfsClient getMfsClientFromContainerId(int containerId) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRootFid
public Fid getRootFid() throws java.lang.Exception
- Throws:
java.lang.Exception
-
doPathWalk
public Fid doPathWalk(java.lang.String filePath, Fid startFid) throws java.lang.Exception
- Throws:
java.lang.Exception
-
unlink
public com.mapr.fs.proto.Fileserver.UnlinkResponse unlink(java.lang.String filePath) throws java.lang.Exception- Throws:
java.lang.Exception
-
getAttr
public com.mapr.fs.proto.Fileserver.GetattrResponse getAttr(Fid fileFid) throws java.lang.Exception
- Throws:
java.lang.Exception
-
columnFamilyScan
public com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponse columnFamilyScan(Fid tableFid) throws java.lang.Exception
- Throws:
java.lang.Exception
-
lookupTablet
public com.mapr.fs.proto.Dbserver.TabletLookupResponse lookupTablet(java.lang.String key, Fid tableFid, int numTablets) throws java.lang.Exception- Throws:
java.lang.Exception
-
submitPutReq
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.PutResponse> submitPutReq(Fid tableFid, java.lang.String columnFamilyName, io.netty.buffer.ByteBuf rowKey, io.netty.buffer.ByteBuf rowValue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-