Package org.kiji.schema

Examples of org.kiji.schema.InternalKijiError


                    Lists.newArrayList(ExceptionUtils.getStackFrames(new Throwable())), 2));
        mCounter.incrementAndGet();
        mReferenceTracker.registerResource(resource, message, stackTrace);
        break;
      }
      default: throw new InternalKijiError(String.format(
          "Unknown DebugResourceTracker.TrackingType: %s", TRACKING_LEVEL));
    }
  }
View Full Code Here


        mCounter.incrementAndGet();
        mReferenceTracker.registerResource(resource, resource.toString(), stackTrace);
        break;
      }
      default: throw new InternalKijiError(String.format(
          "Unknown DebugResourceTracker.TrackingType: %s", TRACKING_LEVEL));
    }
  }
View Full Code Here

      case REFERENCES: {
        mCounter.decrementAndGet();
        mReferenceTracker.unregisterResource(resource);
        break;
      }
      default: throw new InternalKijiError(String.format(
          "Unknown DebugResourceTracker.TrackingType: %s", TRACKING_LEVEL));
    }
  }
View Full Code Here

        case REFERENCES: {
          logCounter();
          mReferenceTracker.close();
          break;
        }
        default: throw new InternalKijiError(String.format(
            "Unknown DebugResourceTracker.TrackingType: %s", TRACKING_LEVEL));
      }
    }
View Full Code Here

   */
  public static HBaseKijiTable downcast(KijiTable kijiTable) {
    if (!(kijiTable instanceof HBaseKijiTable)) {
      // This should really never happen.  Something is seriously
      // wrong with Kiji code if we get here.
      throw new InternalKijiError(
          "Found a KijiTable object that was not an instance of HBaseKijiTable.");
    }
    return (HBaseKijiTable) kijiTable;
  }
View Full Code Here

   */
  private static LoadIncrementalHFiles createHFileLoader(Configuration conf) {
    try {
      return new LoadIncrementalHFiles(conf); // throws Exception
    } catch (Exception exn) {
      throw new InternalKijiError(exn);
    }
  }
View Full Code Here

        }
      } finally {
        htable.close();
      }
    } catch (TableNotFoundException tnfe) {
      throw new InternalKijiError(tnfe);
    }
  }
View Full Code Here

    try {
      hbaseGet = hbaseRequestAdapter.toGet(entityId, tableLayout);
    } catch (InvalidLayoutException e) {
      // The table layout should never be invalid at this point, since we got it from a valid
      // opened table.  If it is, there's something seriously wrong.
      throw new InternalKijiError(e);
    }
    // Send the HTable Get.
    final Result result = hbaseGet.hasFamilies() ? doHBaseGet(hbaseGet) : new Result();

    // Parse the result.
View Full Code Here

          .withCellDecoderProvider(capsule.getCellDecoderProvider())
          .withReopenScannerOnTimeout(kijiScannerOptions.getReopenScannerOnTimeout()));
    } catch (InvalidLayoutException e) {
      // The table layout should never be invalid at this point, since we got it from a valid
      // opened table.  If it is, there's something seriously wrong.
      throw new InternalKijiError(e);
    }
  }
View Full Code Here

      }
      return hbaseGetList;
    } catch (InvalidLayoutException ile) {
      // The table layout should never be invalid at this point, since we got it from a valid
      // opened table.  If it is, there's something seriously wrong.
      throw new InternalKijiError(ile);
    }
  }
View Full Code Here

TOP

Related Classes of org.kiji.schema.InternalKijiError

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.