Examples of AIOError


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

      try {
  admin.modifyColumn(Bytes.toBytes(table), Bytes.toBytes(familyName),
                           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 {
        htablePool.putTable(htable);
      }
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 {
        htablePool.putTable(htable);
      }
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 {
        htablePool.putTable(htable);
      }
View Full Code Here

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

      HTableInterface htable = htablePool.getTable(Bytes.toBytes(table));
      try {
        htable.delete(AvroUtil.adeleteToDelete(adelete));
        return null;
      } catch (IOException e) {
      AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } finally {
        htablePool.putTable(htable);
      }
View Full Code Here

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

    public long incrementColumnValue(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, long amount, boolean writeToWAL) throws AIOError {
      HTableInterface htable = htablePool.getTable(Bytes.toBytes(table));
      try {
  return htable.incrementColumnValue(Bytes.toBytes(row), Bytes.toBytes(family), Bytes.toBytes(qualifier), amount, writeToWAL);
      } catch (IOException e) {
        AIOError ioe = new AIOError();
        ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } finally {
        htablePool.putTable(htable);
      }
View Full Code Here

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

      HTableInterface htable = htablePool.getTable(Bytes.toBytes(table));
      try {
        Scan scan = AvroUtil.ascanToScan(ascan);
        return addScanner(htable.getScanner(scan));
      } catch (IOException e) {
      AIOError ioe = new AIOError();
  ioe.message = new Utf8(e.getMessage());
        throw ioe;
      } finally {
        htablePool.putTable(htable);
      }
View Full Code Here

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

        }
        scanner.close();
        removeScanner(scannerId);
        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

          throw aie;
        }
        Result[] results = null;
        return AvroUtil.resultsToAResults(scanner.next(numberOfRows));
      } 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.