Examples of AIOError


Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public Void enableTable(ByteBuffer table) throws AIOError {
      try {
  admin.enableTable(Bytes.toBytes(table));
  return null;
      } catch (IOException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public Void disableTable(ByteBuffer table) throws AIOError {
      try {
  admin.disableTable(Bytes.toBytes(table));
  return null;
      } catch (IOException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public Void flush(ByteBuffer table) throws AIOError {
      try {
  admin.flush(Bytes.toBytes(table));
  return null;
      } catch (InterruptedException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } catch (IOException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public Void split(ByteBuffer table) throws AIOError {
      try {
  admin.split(Bytes.toBytes(table));
  return null;
      } catch (InterruptedException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } catch (IOException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

      try {
  admin.addColumn(Bytes.toBytes(table),
                        AvroUtil.afdToHCD(family));
  return null;
      } catch (IOException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public Void deleteFamily(ByteBuffer table, ByteBuffer family) throws AIOError {
      try {
  admin.deleteColumn(Bytes.toBytes(table), Bytes.toBytes(family));
  return null;
      } catch (IOException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public Void modifyFamily(ByteBuffer table, ByteBuffer familyName, AFamilyDescriptor familyDescriptor) throws AIOError {
      try {
  admin.modifyColumn(Bytes.toBytes(table), AvroUtil.afdToHCD(familyDescriptor));
  return null;
      } catch (IOException e) {
  AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public AResult get(ByteBuffer table, AGet aget) throws AIOError {
      HTableInterface htable = htablePool.getTable(Bytes.toBytes(table));
      try {
        return AvroUtil.resultToAResult(htable.get(AvroUtil.agetToGet(aget)));
      } catch (IOException e) {
      AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } finally {
        try {
          htablePool.putTable(htable);
        } catch (IOException e) {
          AIOError ioe = new AIOError();
          ioe.message = new Utf8(e.getMessage());
          throw ioe;
        }
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

    public boolean exists(ByteBuffer table, AGet aget) throws AIOError {
      HTableInterface htable = htablePool.getTable(Bytes.toBytes(table));
      try {
        return htable.exists(AvroUtil.agetToGet(aget));
      } catch (IOException e) {
      AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } finally {
        try {
          htablePool.putTable(htable);
        } catch (IOException e) {
          AIOError ioe = new AIOError();
          ioe.message = new Utf8(e.getMessage());
          throw ioe;
        }
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.avro.generated.AIOError

      HTableInterface htable = htablePool.getTable(Bytes.toBytes(table));
      try {
  htable.put(AvroUtil.aputToPut(aput));
        return null;
      } catch (IOException e) {
        AIOError ioe = new AIOError();
        ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } finally {
        try {
          htablePool.putTable(htable);
        } catch (IOException e) {
          AIOError ioe = new AIOError();
          ioe.message = new Utf8(e.getMessage());
          throw ioe;
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.