Package com.mapr.fs.jni
Class MapRTableTools
- java.lang.Object
-
- com.mapr.fs.jni.MapRTableTools
-
public class MapRTableTools extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MapRTableTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intAppendRPC(long clusterP, long fileP, MapRPut mput, boolean needResult, boolean shouldFlush, MapRUserInfo userInfo)static intBulkLoaderAppend(long clusterP, long fileP, long bulkLoaderP, MapRPut[] puts, MapRUserInfo userInfo)static intBulkLoaderAppendEncoded(long clusterP, long fileP, long bulkLoaderP, MapRJSONPut[] puts)static intBulkLoaderClose(long clusterP, long fileP, long bulkLoaderP)static intCheckAndMutateRPC(long clusterP, long fileP, java.nio.ByteBuffer key, java.nio.ByteBuffer[] serRecordMutations, int[] mutationsFamilyIds, byte[] serReadConstraint, java.nio.ByteBuffer serCondition, boolean shouldFlush, MapRUpdateAndGet muag, MapRUserInfo userInfo)static intCheckAndPutOrDeleteRPC(long clusterP, long fileP, byte[] row, boolean useCf, int familyId, byte[] qualifier, byte[] value, MapRPut mput, boolean shouldFlush, MapRUserInfo userInfo)static intCheckAndReplaceOrDeleteRPC(long clusterP, long fileP, java.nio.ByteBuffer key, java.nio.ByteBuffer[] serRecords, int[] recordFamilyIds, byte[] serReadConstraint, java.nio.ByteBuffer condition, boolean shouldFlush, boolean isDelete, MapRUpdateAndGet muag, MapRUserInfo userInfo)static intCheckIndexSyncState(IndexSyncStateTracker jTracker, long jniP)static intCreateJNISyncStateTracker(long clusterP, long fileP, IndexSyncStateTracker jTracker, byte[][] startKeys, byte[][] endKeys, long maxTs)static intFlushPuts(long clusterP, long fileP)static intFreeArena(long clusterP, long fileP, long arenaAddr)static longGetBulkLoader(long clusterP, long fileP, byte[] tableUuidForPuts, MapRUserInfo userInfo)static intGetColumnFamilyId(long clusterP, long fileP, java.lang.String fname, MapRConstants.ErrorValue err)static java.lang.StringGetColumnFamilyName(long clusterP, long fileP, int id, MapRConstants.ErrorValue err)static longGetLastUpdateTime(long fileP)static intGetRPC(long clusterP, long fileP, MapRGet[] gets, boolean shouldFlush, boolean doMultiGet, MapRUserInfo userInfo)static longGetScanner(long clusterP, long fileP, MapRScan scan, MapRUserInfo userInfo)static byte[]GetSchema(long clusterP, long fileP, long version)static booleanHasSecondaryIndex(long clusterP, long fileP)static intIncrementRPC(long clusterP, long fileP, MapRIncrement incr, boolean shouldFlush, MapRUserInfo userInfo)static intPutOrDeleteRPC(long clusterP, long fileP, MapRPut[] puts, boolean shouldBlock, boolean shouldFlush, boolean isRowMut, MapRUserInfo userInfo)static intReleaseJNISyncStateTracker(long jniP)static intScannerClearOldBuffer(long clusterP, long fileP, long scannerP)static intScannerClose(long clusterP, long fileP, long scannerP)static intScanNext(long clusterP, long fileP, long scannerP, int numRows, MapRResult[] results, MapRUserInfo userInfo)static intUpdateAndGetRPC(long clusterP, long fileP, byte[] row, boolean useCf, boolean checkForNonExist, MapRRowConstraint checkConstraint, byte[] serFilter, MapRPut[] mputs, boolean shouldFlush, MapRUserInfo userInfo)static intUpdateRecordRPC(long clusterP, long fileP, java.nio.ByteBuffer key, java.nio.ByteBuffer[] serRecordMutations, int[] mutationsFamilyIds, byte[] serReadConstraint, boolean shouldFlush, MapRUpdateAndGet muag, MapRUserInfo userInfo)
-
-
-
Method Detail
-
FlushPuts
public static int FlushPuts(long clusterP, long fileP)
-
GetLastUpdateTime
public static long GetLastUpdateTime(long fileP)
-
PutOrDeleteRPC
public static int PutOrDeleteRPC(long clusterP, long fileP, MapRPut[] puts, boolean shouldBlock, boolean shouldFlush, boolean isRowMut, MapRUserInfo userInfo)
-
GetRPC
public static int GetRPC(long clusterP, long fileP, MapRGet[] gets, boolean shouldFlush, boolean doMultiGet, MapRUserInfo userInfo)
-
IncrementRPC
public static int IncrementRPC(long clusterP, long fileP, MapRIncrement incr, boolean shouldFlush, MapRUserInfo userInfo)
-
AppendRPC
public static int AppendRPC(long clusterP, long fileP, MapRPut mput, boolean needResult, boolean shouldFlush, MapRUserInfo userInfo)
-
FreeArena
public static int FreeArena(long clusterP, long fileP, long arenaAddr)
-
CheckAndPutOrDeleteRPC
public static int CheckAndPutOrDeleteRPC(long clusterP, long fileP, byte[] row, boolean useCf, int familyId, byte[] qualifier, byte[] value, MapRPut mput, boolean shouldFlush, MapRUserInfo userInfo)
-
UpdateAndGetRPC
public static int UpdateAndGetRPC(long clusterP, long fileP, byte[] row, boolean useCf, boolean checkForNonExist, MapRRowConstraint checkConstraint, byte[] serFilter, MapRPut[] mputs, boolean shouldFlush, MapRUserInfo userInfo)
-
ScanNext
public static int ScanNext(long clusterP, long fileP, long scannerP, int numRows, MapRResult[] results, MapRUserInfo userInfo)
-
ScannerClose
public static int ScannerClose(long clusterP, long fileP, long scannerP)
-
ScannerClearOldBuffer
public static int ScannerClearOldBuffer(long clusterP, long fileP, long scannerP)
-
GetScanner
public static long GetScanner(long clusterP, long fileP, MapRScan scan, MapRUserInfo userInfo)
-
GetBulkLoader
public static long GetBulkLoader(long clusterP, long fileP, byte[] tableUuidForPuts, MapRUserInfo userInfo)
-
BulkLoaderAppend
public static int BulkLoaderAppend(long clusterP, long fileP, long bulkLoaderP, MapRPut[] puts, MapRUserInfo userInfo)
-
BulkLoaderAppendEncoded
public static int BulkLoaderAppendEncoded(long clusterP, long fileP, long bulkLoaderP, MapRJSONPut[] puts)
-
BulkLoaderClose
public static int BulkLoaderClose(long clusterP, long fileP, long bulkLoaderP)
-
GetSchema
public static byte[] GetSchema(long clusterP, long fileP, long version)
-
GetColumnFamilyName
public static java.lang.String GetColumnFamilyName(long clusterP, long fileP, int id, MapRConstants.ErrorValue err)
-
GetColumnFamilyId
public static int GetColumnFamilyId(long clusterP, long fileP, java.lang.String fname, MapRConstants.ErrorValue err)
-
CheckAndReplaceOrDeleteRPC
public static int CheckAndReplaceOrDeleteRPC(long clusterP, long fileP, java.nio.ByteBuffer key, java.nio.ByteBuffer[] serRecords, int[] recordFamilyIds, byte[] serReadConstraint, java.nio.ByteBuffer condition, boolean shouldFlush, boolean isDelete, MapRUpdateAndGet muag, MapRUserInfo userInfo)
-
CheckAndMutateRPC
public static int CheckAndMutateRPC(long clusterP, long fileP, java.nio.ByteBuffer key, java.nio.ByteBuffer[] serRecordMutations, int[] mutationsFamilyIds, byte[] serReadConstraint, java.nio.ByteBuffer serCondition, boolean shouldFlush, MapRUpdateAndGet muag, MapRUserInfo userInfo)
-
UpdateRecordRPC
public static int UpdateRecordRPC(long clusterP, long fileP, java.nio.ByteBuffer key, java.nio.ByteBuffer[] serRecordMutations, int[] mutationsFamilyIds, byte[] serReadConstraint, boolean shouldFlush, MapRUpdateAndGet muag, MapRUserInfo userInfo)
-
CreateJNISyncStateTracker
public static int CreateJNISyncStateTracker(long clusterP, long fileP, IndexSyncStateTracker jTracker, byte[][] startKeys, byte[][] endKeys, long maxTs)
-
CheckIndexSyncState
public static int CheckIndexSyncState(IndexSyncStateTracker jTracker, long jniP)
-
ReleaseJNISyncStateTracker
public static int ReleaseJNISyncStateTracker(long jniP)
-
HasSecondaryIndex
public static boolean HasSecondaryIndex(long clusterP, long fileP)
-
-