@@ -0,0 +1,2531 @@
+/*%0A * Licensed to the University of California, Berkeley under one or more contributor license%0A * agreements. See the NOTICE file distributed with this work for additional information regarding%0A * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance with the License. You may obtain a%0A * copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software distributed under the License%0A * is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express%0A * or implied. See the License for the specific language governing permissions and limitations under%0A * the License.%0A */%0A%0Apackage tachyon.master.next.rawtable;%0A%0Aimport java.nio.ByteBuffer;%0A%0Aimport org.apache.thrift.TException;%0A%0Aimport tachyon.TachyonURI;%0Aimport tachyon.thrift.FileAlreadyExistException;%0Aimport tachyon.thrift.InvalidPathException;%0Aimport tachyon.thrift.RawTableInfo;%0Aimport tachyon.thrift.RawTableMasterService;%0Aimport tachyon.thrift.TableColumnException;%0Aimport tachyon.thrift.TableDoesNotExistException;%0Aimport tachyon.thrift.TachyonException;%0A%0Apublic class RawTableMasterServiceHandler implements RawTableMasterService.Iface %7B%0A  private final RawTableMaster mRawTableMaster;%0A%0A  public RawTableMasterServiceHandler(RawTableMaster rawTableMaster) %7B%0A    mRawTableMaster = rawTableMaster;%0A  %7D%0A%0A  @Override%0A  public long userCreateRawTable(String path, int columns, ByteBuffer metadata)%0A      throws FileAlreadyExistException, InvalidPathException, TableColumnException,%0A      TachyonException, TException %7B%0A    return mRawTableMaster.createRawTable(new TachyonURI(path), columns, metadata);%0A  %7D%0A%0A  @Override%0A  public long userGetRawTableId(String path) throws InvalidPathException,%0A      TableDoesNotExistException, TException %7B%0A    return mRawTableMaster.getRawTableId(new TachyonURI(path));%0A  %7D%0A%0A  @Override%0A  public RawTableInfo userGetClientRawTableInfo(long id, String path)%0A      throws TableDoesNotExistException, InvalidPathException, TException %7B%0A    if (id != -1) %7B%0A      return mRawTableMaster.getClientRawTableInfo(id);%0A    %7D%0A    return mRawTableMaster.getClientRawTableInfo(new TachyonURI(path));%0A  %7D%0A%0A  @Override%0A  public void userUpdateRawTableMetadata(long tableId, ByteBuffer metadata)%0A      throws TableDoesNotExistException, TachyonException, TException %7B%0A    mRawTableMaster.updateRawTableMetadata(tableId, metadata);%0A  %7D%0A%7D%0A

Implement service handler for RawTableMaster.