コード例 #1
0
ファイル: Performance.java プロジェクト: NFLabs/tachyon
 public static void createFiles() throws IOException {
   long startTimeMs = CommonUtils.getCurrentMs();
   for (int k = 0; k < THREADS; k++) {
     int fileId = MTC.createFile(FILE_NAME + (k + BASE_FILE_NUMBER));
     CommonUtils.printTimeTakenMs(startTimeMs, LOG, "user_createFiles with fileId " + fileId);
   }
 }
コード例 #2
0
 public static void createRawTable() throws InvalidPathException {
   long startTimeMs = CommonUtils.getCurrentMs();
   ByteBuffer data = ByteBuffer.allocate(12);
   data.putInt(-1);
   data.putInt(-2);
   data.putInt(-3);
   data.flip();
   mId = sTachyonClient.createRawTable(sTablePath, 3, data);
   CommonUtils.printTimeTakenMs(startTimeMs, LOG, "createRawTable with id " + mId);
 }