Examples of AIOError


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 {
        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 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 {
        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 {
        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 {
        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

        }
        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

    aie.message = new Utf8("scanner ID is invalid: " + scannerId);
          throw aie;
        }
        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

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

    public Utf8 getHBaseVersion() throws AIOError {
      try {
  return new Utf8(admin.getClusterStatus().getHBaseVersion());
      } 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 AClusterStatus getClusterStatus() throws AIOError {
      try {
  return AvroUtil.csToACS(admin.getClusterStatus());
      } 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

        for (HTableDescriptor table : tables) {
    result.add(AvroUtil.htdToATD(table));
  }
        return result;
      } 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

    // TODO(hammer): Handle the case where the table does not exist explicitly?
    public ATableDescriptor describeTable(ByteBuffer table) throws AIOError {
      try {
  return AvroUtil.htdToATD(admin.getTableDescriptor(Bytes.toBytes(table)));
      } 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 isTableEnabled(ByteBuffer table) throws AIOError {
      try {
  return admin.isTableEnabled(Bytes.toBytes(table));
      } 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.