Package org.apache.hadoop.hbase.exceptions

Examples of org.apache.hadoop.hbase.exceptions.NoSuchColumnFamilyException


      OperationStatus codes[] = region.batchMutate(mutationsWithLocks);
      for (i = 0; i < codes.length; i++) {
        switch (codes[i].getOperationStatusCode()) {
          case BAD_FAMILY:
            result = ResponseConverter.buildActionResult(
                new NoSuchColumnFamilyException(codes[i].getExceptionMsg()));
            builder.setResult(i, result);
            break;

          case SANITY_CHECK_FAILURE:
            result = ResponseConverter.buildActionResult(
View Full Code Here


        delete.deleteFamily(family, delete.getTimeStamp());
      }
    } else {
      for(byte [] family : delete.getFamilyMap().keySet()) {
        if(family == null) {
          throw new NoSuchColumnFamilyException("Empty family is invalid");
        }
        checkFamily(family);
      }
    }
  }
View Full Code Here

    };
    OperationStatus[] batchMutate = this.batchMutate(mutateWithLocks);
    if (batchMutate[0].getOperationStatusCode().equals(OperationStatusCode.SANITY_CHECK_FAILURE)) {
      throw new FailedSanityCheckException(batchMutate[0].getExceptionMsg());
    } else if (batchMutate[0].getOperationStatusCode().equals(OperationStatusCode.BAD_FAMILY)) {
      throw new NoSuchColumnFamilyException(batchMutate[0].getExceptionMsg());
    }
  }
View Full Code Here

  //

  private void checkFamily(final byte [] family)
  throws NoSuchColumnFamilyException {
    if (!this.htableDescriptor.hasFamily(family)) {
      throw new NoSuchColumnFamilyException("Column family " +
          Bytes.toString(family) + " does not exist in region " + this
          + " in table " + this.htableDescriptor);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.exceptions.NoSuchColumnFamilyException

Copyright © 2018 www.massapicom. 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.