/** * Creates a new column partition. * * TODO(hy): Creating file here should be based on id. * * @param pId the partition id * @return whether operation succeeded * @throws IOException when the partition the path is invalid or points to an existing object */ public boolean createPartition(int pId) throws IOException { TachyonURI tUri = new TachyonURI(PathUtils.concatPath(getColumnPath(mRawTable.getPath(), mColumnIndex), pId)); return mTachyonFS.createFile(tUri) > 0; }
continue; long fileId = tfs.createFile(tfsPath, ufsPath); if (fileId == -1) { LOG.warn("Failed to create tachyon file: " + tfsPath);
long fileId = mTFS.createFile(path, blockSize); TachyonFile file = mTFS.getFile(fileId); file.setUFSConf(getConf());