/** * Creates a <code>RawTable</code> and returns its id. * * @param path the RawTable's path * @param columns number of columns it has * @return the id if succeed, -1 otherwise * @throws IOException if the number of columns is invalid or the underlying master RPC fails */ public synchronized long createRawTable(TachyonURI path, int columns) throws IOException { return createRawTable(path, columns, ByteBuffer.allocate(0)); }
private void createRawTable(TachyonFS tachyonClient) throws IOException { ByteBuffer data = ByteBuffer.allocate(mMetadataLength * 4); data.order(ByteOrder.nativeOrder()); for (int k = -mMetadataLength; k < 0; k ++) { data.putInt(k); } data.flip(); mId = tachyonClient.createRawTable(mTablePath, 3, data); }
if (sOldTfs.createRawTable(new TachyonURI(mWorkDir + mSuccessNum), 1) == -1) { break;