public static ResultGenerator fromRowSpec(final String table, final RowSpec rowspec, final Filter filter, final boolean cacheBlocks) throws IOException { if (rowspec.isSingleRow()) { return new RowResultGenerator(table, rowspec, filter, cacheBlocks); } else { return new ScannerResultGenerator(table, rowspec, filter, cacheBlocks); } }
/** * @param inc How much to add to failedGetCount. */ public void incrementFailedGetRequests(final int inc) { source.incrementFailedGetRequests(inc); }
/** * @param inc How much to add to failedScanCount. */ public void incrementFailedScanRequests(final int inc) { source.incrementFailedScanRequests(inc); }
/** * Provides an extension point for tests that don't want a per row invocation. */ void testTimed() throws IOException { int lastRow = this.startRow + this.perClientRunRows; // Report on completion of 1/10th of total. for (int i = this.startRow; i < lastRow; i++) { testRow(i); if (status != null && i > 0 && (i % getReportingPeriod()) == 0) { status.setStatus(generateStatus(this.startRow, i, lastRow)); } } }
@Override public void beforeUnmarshal(Object target, Object parent) { if (target instanceof ClientSideCellSetModel) { ((ClientSideCellSetModel) target).setCellSetModelListener(listener); } }
public synchronized static void stop() { if (INSTANCE != null) { INSTANCE.shutdown(); INSTANCE = null; } }
/** * @param inc How much to add to failedDeleteCount. */ public void incrementFailedDeleteRequests(final int inc) { source.incrementFailedDeleteRequests(inc); }
/** * @param inc How much to add to sucessfulScanCount. */ public synchronized void incrementSucessfulScanRequests(final int inc) { source.incrementSucessfulScanRequests(inc); }
/** * @param inc How much to add to failedAppendCount. */ public void incrementFailedAppendRequests(final int inc) { source.incrementFailedAppendRequests(inc); }
/** * @param inc How much to add to sucessfulIncrementCount. */ public synchronized void incrementSucessfulIncrementRequests(final int inc) { source.incrementSucessfulIncrementRequests(inc); }
/** * @param inc How much to add to requests. */ public void incrementRequests(final int inc) { source.incrementRequests(inc); }
/** * @param inc How much to add to failedPutCount. */ public void incrementFailedPutRequests(final int inc) { source.incrementFailedPutRequests(inc); }
@Override protected Pair<byte[], byte[]> getStartAndStopRow() { return generateStartAndStopRows(100); } }
@Override protected Pair<byte[], byte[]> getStartAndStopRow() { return generateStartAndStopRows(10000); } }
protected static Response checkAndPutValuePB(String table, String row, String column, String valueToCheck, String valueToPut) throws IOException { return checkAndPutValuePB(table,row,column,valueToCheck,valueToPut,null); } protected static Response checkAndPutValuePB(String table, String row,
@Override public RecordReader<NullWritable, PeInputSplit> createRecordReader(InputSplit split, TaskAttemptContext context) { return new PeRecordReader(); }
@Override protected Pair<byte[], byte[]> getStartAndStopRow() { return generateStartAndStopRows(10); } }
@Override protected Pair<byte[], byte[]> getStartAndStopRow() { return generateStartAndStopRows(1000); } }
@Override public Void run() throws Exception { client.run(); return null; } });
@Override public void afterUnmarshal(Object target, Object parent) { if (target instanceof ClientSideCellSetModel) { ((ClientSideCellSetModel) target).setCellSetModelListener(null); } } });