name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hbase_ScannerModel_setBatch_rdh | /**
*
* @param batch
* the number of cells to return in batch
*/
public void setBatch(int batch) {
this.batch = batch;
} | 3.26 |
hbase_ScannerModel_setEndTime_rdh | /**
*
* @param endTime
* the upper bound on timestamps of values of interest
*/
public void setEndTime(long endTime) {
this.endTime = endTime;
} | 3.26 |
hbase_ScannerModel_setLimit_rdh | /**
*
* @param limit
* the number of rows can fetch of each scanner at lifetime
*/
public void setLimit(int limit) {
this.limit = limit;
} | 3.26 |
hbase_ScannerModel_getMaxVersions_rdh | /**
* Returns maximum number of versions to return
*/
@XmlAttribute
public int getMaxVersions() {
return maxVersions;
} | 3.26 |
hbase_ScannerModel_getEndRow_rdh | /**
* Returns end row
*/
@XmlAttribute
public byte[] getEndRow() {
return endRow;
} | 3.26 |
hbase_ScannerModel_m0_rdh | /**
* Returns the lower bound on timestamps of items of interest
*/
@XmlAttribute
public long m0() {
return startTime;
} | 3.26 |
hbase_ScannerModel_setCacheBlocks_rdh | /**
*
* @param value
* true if HFile blocks should be cached on the servers for this scan, false
* otherwise
*/
public void setCacheBlocks(boolean value) {
this.cacheBlocks = value;
} | 3.26 |
hbase_ScannerModel_hasStartRow_rdh | /**
* Returns true if a start row was specified
*/
public boolean hasStartRow() {
return !Bytes.equals(startRow, HConstants.EMPTY_START_ROW);
} | 3.26 |
hbase_ScannerModel_setEndRow_rdh | /**
*
* @param endRow
* end row
*/
public void setEndRow(byte[] endRow) {
this.endRow = endRow;
} | 3.26 |
hbase_ScannerModel_getStartRow_rdh | /**
* Returns start row
*/
@XmlAttribute
public byte[] getStartRow() {
return startRow;
} | 3.26 |
hbase_ScannerModel_addLabel_rdh | /**
* Add a visibility label to the scan
*/
public void addLabel(String label) {
labels.add(label);
} | 3.26 |
hbase_ScannerModel_setFilter_rdh | /**
*
* @param filter
* the filter specification
*/
public void setFilter(String filter) {
this.filter = filter;
} | 3.26 |
hbase_ScannerModel_stringifyFilter_rdh | /**
*
* @param filter
* the filter
* @return the JSON representation of the filter
*/
public static String stringifyFilter(final Filter filter) throws Exception {
return getJasonProvider().locateMapper(ScannerModel.FilterModel.class, MediaType.APPLICATION_JSON_TYPE).writeValueAsString(new FilterModel(filter)... | 3.26 |
hbase_ScannerModel_fromScan_rdh | /**
*
* @param scan
* the scan specification
*/
public static ScannerModel fromScan(Scan scan) throws Exception {
ScannerModel
model = new ScannerModel();
model.setStartRow(scan.getStartRow());
model.setEndRow(scan.getStopRow());
Map<byte[], NavigableSet<byte[]>> families = scan.getFamilyMap()... | 3.26 |
hbase_ScannerModel_getBatch_rdh | /**
* Returns the number of cells to return in batch
*/
@XmlAttribute
public int getBatch() {
return batch;
} | 3.26 |
hbase_ScannerModel_getLimit_rdh | /**
* Returns the limit specification
*/
@XmlAttribute
public int getLimit() {
return limit;
} | 3.26 |
hbase_ScannerModel_setMaxVersions_rdh | /**
*
* @param maxVersions
* maximum number of versions to return
*/public void setMaxVersions(int maxVersions) {
this.maxVersions = maxVersions;
} | 3.26 |
hbase_ScannerModel_buildFilter_rdh | /**
*
* @param s
* the JSON representation of the filter
* @return the filter
*/
public static Filter buildFilter(String s) throws Exception {
FilterModel model = getJasonProvider().locateMapper(ScannerModel.FilterModel.class, MediaType.APPLICATION_JSON_TYPE).readValue(s, ScannerMo... | 3.26 |
hbase_HFileArchiveManager_enableHFileBackup_rdh | /**
* Turn on auto-backups of HFiles on the specified table.
* <p>
* When HFiles would be deleted from the hfile archive, they are instead preserved.
*
* @param table
* name of the table for which to preserve hfiles.
* @return <tt>this</tt> for chaining.
* @throws KeeperException
* if we can't reach zookee... | 3.26 |
hbase_HFileArchiveManager_isArchivingEnabled_rdh | /**
* Check to see if the table is currently marked for archiving
*
* @param table
* name of the table to check
* @return <tt>true</tt> if the archive znode for that table exists, <tt>false</tt> if not
* @throws KeeperException
* if an unexpected zookeeper error occurs
*/
public boolean isArchivingEnabled(b... | 3.26 |
hbase_HFileArchiveManager_disableHFileBackup_rdh | /**
* Disable long-term archival of all hfiles for all tables in the cluster.
*
* @return <tt>this</tt> for chaining.
* @throws IOException
* if the number of attempts is exceeded
*/
public HFileArchiveManager disableHFileBackup() throws IOException {
LOG.debug("Disabling backups on all tables.");
try ... | 3.26 |
hbase_HFileArchiveManager_disable_rdh | /**
* Disable all archiving of files for a given table
* <p>
* Inherently an <b>asynchronous operation</b>.
*
* @param zooKeeper
* watcher for the ZK cluster
* @param table
* name of the table to disable
* @throws KeeperException
* if an unexpected ZK connection issues occurs
*/
private void disable(ZK... | 3.26 |
hbase_HFileArchiveManager_getTableNode_rdh | /**
* Get the zookeeper node associated with archiving the given table
*
* @param table
* name of the table to check
* @return znode for the table's archive status
*/
private String getTableNode(byte[] table) {
return ZNodePaths.joinZNode(archiveZnode, Bytes.toString(table));
} | 3.26 |
hbase_HadoopCompressor_maxCompressedLength_rdh | // Package private
int maxCompressedLength(int len) {
return compressor.maxCompressedLength(len);
} | 3.26 |
hbase_StreamUtils_readByte_rdh | /**
* Read a byte from the given stream using the read method, and throw EOFException if it returns
* -1, like the implementation in {@code DataInputStream}.
* <p/>
* This is useful because casting the return value of read method into byte directly will make us
* lose the ability to check whether there is a byte a... | 3.26 |
hbase_RegionNormalizerManager_planSkipped_rdh | /**
* Call-back for the case where plan couldn't be executed due to constraint violation, such as
* namespace quota.
*
* @param type
* type of plan that was skipped.
*/public void planSkipped(NormalizationPlan.PlanType type) {
// TODO: this appears to be used only for testing.
if (worker != null) {
worker.planS... | 3.26 |
hbase_RegionNormalizerManager_setNormalizerOn_rdh | /**
* Set region normalizer on/off
*
* @param normalizerOn
* whether normalizer should be on or off
*/
public void setNormalizerOn(boolean normalizerOn) throws IOException {
regionNormalizerStateStore.set(normalizerOn);
} | 3.26 |
hbase_RegionNormalizerManager_getSkippedCount_rdh | /**
* Retrieve a count of the number of times plans of type {@code type} were submitted but skipped.
*
* @param type
* type of plan for which skipped count is to be returned
*/
public long getSkippedCount(NormalizationPlan.PlanType type) {
// TODO: this appears to be used only for testing.
return worker == null ... | 3.26 |
hbase_RegionNormalizerManager_getSplitPlanCount_rdh | /**
* Return the number of times a {@link SplitNormalizationPlan} has been submitted.
*/
public long getSplitPlanCount() {
return worker == null ? 0 : worker.getSplitPlanCount();
}
/**
* Return the number of times a {@link MergeNormalizationPlan} | 3.26 |
hbase_RegionNormalizerManager_normalizeRegions_rdh | /**
* Submit tables for normalization.
*
* @param tables
* a list of tables to submit.
* @param isHighPriority
* {@code true} when these requested tables should skip to the front of the
* queue.
* @return {@code true} when work was queued, {@code false} otherwise.
*/
public boolean normalizeRegions(List<... | 3.26 |
hbase_RowCountEndpoint_start_rdh | /**
* Stores a reference to the coprocessor environment provided by the
* {@link org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost} from the region where this
* coprocessor is loaded. Since this is a coprocessor endpoint, it always expects to be loaded on
* a table region, so always expects this to be an i... | 3.26 |
hbase_RowCountEndpoint_getRowCount_rdh | /**
* Returns a count of the rows in the region where this coprocessor is loaded.
*/
@Override
public void getRowCount(RpcController controller, CountRequest request, RpcCallback<CountResponse> done) {
Scan scan = new Scan();
scan.setFilter(new FirstKeyOnlyFilter());
CountResponse response = null;
Int... | 3.26 |
hbase_RowCountEndpoint_getKeyValueCount_rdh | /**
* Returns a count of all KeyValues in the region where this coprocessor is loaded.
*/
@Override
public void getKeyValueCount(RpcController controller, CountRequest request, RpcCallback<CountResponse> done) {
CountResponse response = null;
InternalSca... | 3.26 |
hbase_RowCountEndpoint_getServices_rdh | /**
* Just returns a reference to this object, which implements the RowCounterService interface.
*/
@Override
public Iterable<Service> getServices() {
return Collections.singleton(this);
} | 3.26 |
hbase_RegionCoprocessorHost_postPut_rdh | /**
*
* @param put
* The Put object
* @param edit
* The WALEdit object.
* @exception IOException
* Exception
*/
public void postPut(final Put put, final WALEdit edit) throws IOException {
if (coprocEnvironments.isEmpty()) {
return;
}
execOperation(new RegionObserverOperationWithoutResult() {
@Override
pu... | 3.26 |
hbase_RegionCoprocessorHost_postScannerNext_rdh | /**
*
* @param s
* the scanner
* @param results
* the result set returned by the region server
* @param limit
* the maximum number of results to return
* @return 'has more' indication to give to client
* @exception IOException
* Exception
*/
public boolean postScannerNext(final InternalScanner s, fin... | 3.26 |
hbase_RegionCoprocessorHost_postFlush_rdh | /**
* Invoked after a memstore flush
*/
public void postFlush(HStore store, HStoreFile storeFile, FlushLifeCycleTracker tracker) throws IOException {
if (coprocEnvironments.isEmpty()) {
return;
}
execOperation(new RegionObserverOperationWithoutResult() {
@Override
public void call(RegionObserver observer) thr... | 3.26 |
hbase_RegionCoprocessorHost_preCompactSelection_rdh | /**
* Called prior to selecting the {@link HStoreFile}s for compaction from the list of currently
* available candidates.
* <p>
* Supports Coprocessor 'bypass' -- 'bypass' is how this method indicates that it changed the
* passed in <code>candidates</code>.
*
* @param store
* The store where compaction is bei... | 3.26 |
hbase_RegionCoprocessorHost_preMemStoreCompactionCompactScannerOpen_rdh | /**
* Invoked before create StoreScanner for in memory compaction.
*/
public ScanInfo preMemStoreCompactionCompactScannerOpen(HStore store) throws IOException {
CustomizedScanInfoBuilder builder = new CustomizedScanInfoBuilder(store.getScanInfo());
execOperation(coprocEnvironments.isEmpty() ? null : new Regio... | 3.26 |
hbase_RegionCoprocessorHost_getRegion_rdh | /**
* Returns the region
*/
@Override
public Region getRegion() {
return
region;
} | 3.26 |
hbase_RegionCoprocessorHost_preCompact_rdh | /**
* Called prior to rewriting the store files selected for compaction
*
* @param store
* the store being compacted
* @param scanner
* the scanner used to read store data during compaction
* @param scanType
* type of Scan
* ... | 3.26 |
hbase_RegionCoprocessorHost_preFlush_rdh | /**
* Invoked before a memstore flush
*/
public void preFlush(FlushLifeCycleTracker tracker) throws IOException {
execOperation(coprocEnvironments.isEmpty() ? null : new RegionObserverOperationWithoutResult() {
@Override
public void call(RegionObserver observer) throws IOException {
o... | 3.26 |
hbase_RegionCoprocessorHost_postScannerFilterRow_rdh | /**
* This will be called by the scan flow when the current scanned row is being filtered out by the
* filter.
*
* @param s
* the scanner
* @param curRowCell
* The cell in the current row which got filtered out
* @return whether more rows are available for the scanner or not
*/
public boolean postScannerFi... | 3.26 |
hbase_RegionCoprocessorHost_preIncrement_rdh | /**
* Supports Coprocessor 'bypass'.
*
* @param increment
* increment object
* @param edit
* The WALEdit object.
* @return result to return to client if default operation should be bypassed, null otherwise
* @throws IOException
* if an error occurred on the coprocessor
*/
public Result
preIncrement(fina... | 3.26 |
hbase_RegionCoprocessorHost_m2_rdh | /**
* Called prior to opening store scanner for compaction.
*/
public ScanInfo m2(HStore store, ScanType scanType, CompactionLifeCycleTracker tracker, CompactionRequest request, User user) throws IOException {
if (coprocEnvironments.isEmpty()) {
return store.getScanInfo();
}
CustomizedScanInfoBuil... | 3.26 |
hbase_RegionCoprocessorHost_postBulkLoadHFile_rdh | /**
*
* @param familyPaths
* pairs of { CF, file path } submitted for bulk load
* @param map
* Map of CF to List of file paths for the final loaded files
*/
public void postBulkLoadHFile(final List<Pair<byte[], String>> familyPaths, Map<byte[], List<Path>> map) throws IOException {
if (this.coprocEnviro... | 3.26 |
hbase_RegionCoprocessorHost_preScannerClose_rdh | /**
* Supports Coprocessor 'bypass'.
*
* @param s
* the scanner
* @return true if default behavior should be bypassed, false otherwise
* @exception IOException
* Exception
*/
// Should this be bypassable?
public boolean preScannerClose(final InternalScanner
s) throws IOException {return execOperation(copro... | 3.26 |
hbase_RegionCoprocessorHost_postCompact_rdh | /**
* Called after the store compaction has completed.
*
* @param store
* the store being compacted
* @param resultFile
* the new store file written during compaction
* @param tracker
* used to track the life cycle of a compaction
* @param request
* the compaction request
* @param user
* the user
... | 3.26 |
hbase_RegionCoprocessorHost_postScannerOpen_rdh | /**
*
* @param scan
* the Scan specification
* @param s
* the scanner
* @return the scanner instance to use
* @exception IOException
* Exception
*/
public RegionScanner postScannerOpen(final Scan scan, RegionScanner s) throws IOException {
if (this.coprocEnvironments.isEmpty()) {
return s;
}return... | 3.26 |
hbase_RegionCoprocessorHost_postInstantiateDeleteTracker_rdh | /**
*
* @deprecated Since 2.0 with out any replacement and will be removed in 3.0
*/
@Deprecated
public DeleteTracker postInstantiateDeleteTracker(DeleteTracker result) throws IOException {
if (this.coprocEnvironments.isEmpty()) {
return result;
}
return execOperationWithResult(new ObserverOperat... | 3.26 |
hbase_RegionCoprocessorHost_postOpen_rdh | /**
* Invoked after a region open
*/
public void postOpen() {
if (coprocEnvironments.isEmpty()) {
return;
}
try {
execOperation(new RegionObserverOperationWithoutResult() {
@Override
public void call(RegionObserver observer) throws IOException
{
... | 3.26 |
hbase_RegionCoprocessorHost_preGet_rdh | // RegionObserver support
/**
* Supports Coprocessor 'bypass'.
*
* @param get
* the Get request
* @param results
* What to return if return is true/'bypass'.
* @return true if default processing should be bypassed.
* @exception IOException
* Exception
*/
public boolean preGet(final Get get, final List<C... | 3.26 |
hbase_RegionCoprocessorHost_postMemStoreCompaction_rdh | /**
* Invoked after in memory compaction.
*/
public void
postMemStoreCompaction(HStore store) throws IOException {
execOperation(coprocEnvironments.isEmpty() ? null : new RegionObserverOperationWithoutResult() {
@Override
public void call(RegionObserver observer) throws IOException {
observer.postMe... | 3.26 |
hbase_RegionCoprocessorHost_preExists_rdh | /**
* Supports Coprocessor 'bypass'.
*
* @param get
* the Get request
* @return true or false to return to client if bypassing normal operation, or null otherwise
* @exception IOException
* Exception
*/
public Boolean preExists(final Get get) throws IOException {
boolean bypassable = true;
boolean defaultRe... | 3.26 |
hbase_RegionCoprocessorHost_postDelete_rdh | /**
*
* @param delete
* The Delete object
* @param edit
* The WALEdit object.
* @exception IOException
* Exception
*/
public void postDelete(final Delete delete, final WALEdit edit) throws IOException {
execOperation(coprocEnvironments.isEmpty()
? null : new RegionObserverOperationWithoutResult() {
@Overr... | 3.26 |
hbase_RegionCoprocessorHost_preAppend_rdh | /**
* Supports Coprocessor 'bypass'.
*
* @param append
* append object
* @param edit
* The WALEdit object.
* @return result to return to client if default operation should be bypassed, null otherwise
* @throws IOException
* if an error occurred on the coprocessor
*/
public Result preAppend(final Append ... | 3.26 |
hbase_RegionCoprocessorHost_postGet_rdh | /**
*
* @param get
* the Get request
* @param results
* the result set
* @exception IOException
* Exception
*/
public void postGet(final Get get, final List<Cell> results) throws IOException {
if (coprocEnvironments.isEmpty()) {return;
}
execOperation(new RegionObserverOperationWithoutResult() {
@Overri... | 3.26 |
hbase_RegionCoprocessorHost_hasCustomPostScannerFilterRow_rdh | /* Whether any configured CPs override postScannerFilterRow hook */
public boolean hasCustomPostScannerFilterRow() {
return hasCustomPostScannerFilterRow;
} | 3.26 |
hbase_RegionCoprocessorHost_preMemStoreCompactionCompact_rdh | /**
* Invoked before compacting memstore.
*/
public InternalScanner preMemStoreCompactionCompact(HStore store, InternalScanner scanner) throws
IOException {
if (coprocEnvironments.isEmpty()) {
return scanner;
}
return execOperationWithResult(new ObserverOperationWithResult<RegionObserver, Internal... | 3.26 |
hbase_RegionCoprocessorHost_preOpen_rdh | // ////////////////////////////////////////////////////////////////////////////////////////////////
// Observer operations
// ////////////////////////////////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////////////////////////////... | 3.26 |
hbase_RegionCoprocessorHost_preIncrementAfterRowLock_rdh | /**
* Supports Coprocessor 'bypass'.
*
* @param increment
* increment object
* @return result to return to client if default operation should be bypassed, null otherwise
* @throws IOException
* if an error occurred on the coprocessor
*/
public Result preIncrementAfterRowLock(final Increment increment) throw... | 3.26 |
hbase_RegionCoprocessorHost_preStoreScannerOpen_rdh | /**
* Called before open store scanner for user scan.
*/
public ScanInfo preStoreScannerOpen(HStore store, Scan scan) throws IOException {
if (coprocEnvironments.isEmpty())
return store.getScanInfo();
CustomizedScanInfoBuilder builder = new CustomizedScanInfoBuilder(store.getScanInfo(), scan);
... | 3.26 |
hbase_RegionCoprocessorHost_postStoreFileReaderOpen_rdh | /**
*
* @param fs
* fileystem to read from
* @param p
* path to the file
* @param in
* {@link FSDataInputStreamWrapper}
* @param size
* Full size of the file
* @param r
* original reference file. This will be not null only when reading a split file.
* @param reader
* the base reader instance
*... | 3.26 |
hbase_RegionCoprocessorHost_preFlushScannerOpen_rdh | /**
* Invoked before create StoreScanner for flush.
*/
public ScanInfo preFlushScannerOpen(HStore store, FlushLifeCycleTracker tracker) throws IOException {
if (coprocEnvironments.isEmpty()) {
return store.getScanInfo();
}
CustomizedScanInfoBuilder builder = new CustomizedScanInfoBuilder(store.g... | 3.26 |
hbase_RegionCoprocessorHost_testTableCoprocessorAttrs_rdh | /**
* Sanity check the table coprocessor attributes of the supplied schema. Will throw an exception
* if there is a problem.
*/
public static void testTableCoprocessorAttrs(final Configuration conf, final TableDescriptor htd) throws IOException {
String pathPrefix = UUID.randomUUID().toString();
for (Table... | 3.26 |
hbase_RegionCoprocessorHost_postIncrement_rdh | /**
*
* @param increment
* increment object
* @param result
* the result returned by postIncrement
* @param edit
* The WALEdit object.
* @throws IOException
* if an error occurred on the coprocessor
*/
public Result postIncrement(final Increment increment, Result result, final WALEdit edit) throws IOE... | 3.26 |
hbase_RegionCoprocessorHost_postAppend_rdh | /**
*
* @param append
* Append object
* @param result
* the result returned by the append
* @param edit
* The WALEdit object.
* @throws IOException
* if an error occurred on the coprocessor
*/
public Result postAppend(final Append append, final Result result, final WALEdit edit) throws IOException {
i... | 3.26 |
hbase_RegionCoprocessorHost_preDelete_rdh | /**
* Supports Coprocessor 'bypass'.
*
* @param delete
* The Delete object
* @param edit
* The WALEdit object.
* @return true if default processing should be bypassed
* @exception IOException
* Exception
*/
public boolean preDelete(final Delete delete, final WALEdit edit) throws IOException {
if (this.c... | 3.26 |
hbase_RegionCoprocessorHost_postExists_rdh | /**
*
* @param get
* the Get request
* @param result
* the result returned by the region server
* @return the result to return to the client
* @exception IOException
* Exception
*/
public boolean postExists(final Get get, boolean result) throws IOException {
if (this.coprocEnvironments.isEmpty()) {
ret... | 3.26 |
hbase_RegionCoprocessorHost_preScannerOpen_rdh | /**
*
* @param scan
* the Scan specification
* @exception IOException
* Exception
*/
public void preScannerOpen(final Scan scan) throws IOException {
execOperation(coprocEnvironments.isEmpty() ? null : new RegionObserverOperationWithoutResult() {
@Override
public void call(RegionObserver observer) th... | 3.26 |
hbase_RegionCoprocessorHost_postScannerClose_rdh | /**
*
* @exception IOException
* Exception
*/
public void postScannerClose(final InternalScanner s) throws IOException {
execOperation(coprocEnvironments.isEmpty() ? null : new RegionObserverOperationWithoutResult() {
@Override public void call(RegionObserver observer) throws IOException {
... | 3.26 |
hbase_RegionCoprocessorHost_prePrepareBulkLoad_rdh | // ///////////////////////////////////////////////////////////////////////////////////////////////
// BulkLoadObserver hooks
// ///////////////////////////////////////////////////////////////////////////////////////////////
public void prePrepareBulkLoad(User user) throws IOException {
execOperation(coprocEnvironme... | 3.26 |
hbase_RegionCoprocessorHost_postClose_rdh | /**
* Invoked after a region is closed
*
* @param abortRequested
* true if the server is aborting
*/
public void postClose(final boolean abortRequested) {
try {
execOperation(new RegionObserve... | 3.26 |
hbase_RegionCoprocessorHost_postReplayWALs_rdh | /**
*
* @param info
* the RegionInfo for this region
* @param edits
* the file of recovered edits
* @throws IOException
* Exception
*/
public void postReplayWALs(final RegionInfo info, final Path edits) throws IOException {
execOperation(coprocEnvironments.isEmpty() ? null : new RegionObserverOperatio... | 3.26 |
hbase_RegionCoprocessorHost_preBulkLoadHFile_rdh | /**
*
* @param familyPaths
* pairs of { CF, file path } submitted for bulk load
*/
public void preBulkLoadHFile(final List<Pair<byte[], String>>
familyPaths) throws IOException {execOperation(coprocEnvironments.isEmpty() ? null : new RegionObserverOperationWithoutResult() {
@Override
public void ... | 3.26 |
hbase_RegionCoprocessorHost_prePut_rdh | /**
* Supports Coprocessor 'bypass'.
*
* @param put
* The Put object
* @param edit
* The WALEdit object.
* @return true if default processing should be bypassed
* @exception IOException
* Exception
*/
public boolean prePut(final Put put, final WALEdit edit) throws IOException {
if (coprocEnvironments... | 3.26 |
hbase_RegionCoprocessorHost_preScannerNext_rdh | /**
*
* @param s
* the scanner
* @param results
* the result set returned by the region server
* @param limit
* the maximum number of results to return
* @return 'has next' indication to client if bypassing default behavior, or null otherwise
* @exception IOException
* Exception
*/
public Boolean pre... | 3.26 |
hbase_RegionCoprocessorHost_preClose_rdh | /**
* Invoked before a region is closed
*
* @param abortRequested
* true if the server is aborting
*/
public void preClose(final boolean abortRequested) throws IOException {
execOperation(new RegionObserverOperationWithoutResult() {
@Override
public
void call(RegionObserver observer) ... | 3.26 |
hbase_RegionCoprocessorHost_preMemStoreCompaction_rdh | /**
* Invoked before in memory compaction.
*/
public void
preMemStoreCompaction(HStore store) throws IOException {
execOperation(coprocEnvironments.isEmpty() ? null : new RegionObserverOperationWithoutResult() {
@Override
public void call(RegionObserver observer) throws IOExcep... | 3.26 |
hbase_RegionCoprocessorHost_postCompactSelection_rdh | /**
* Called after the {@link HStoreFile}s to be compacted have been selected from the available
* candidates.
*
* @param store
* The store where compaction is being requested
* @param selected
* The store files selected to compact
* @param tracker
* used to track the life cycle of a compaction
* @param... | 3.26 |
hbase_WALKeyImpl_addClusterId_rdh | /**
* Marks that the cluster with the given clusterId has consumed the change
*/
public void addClusterId(UUID clusterId)
{
if (!clusterIds.contains(clusterId)) {
clusterIds.add(clusterId);
}
} | 3.26 |
hbase_WALKeyImpl_getWriteTime_rdh | /**
* Returns the write time
*/
@Override
public long getWriteTime() {
return this.writeTime;
} | 3.26 |
hbase_WALKeyImpl_setOrigLogSeqNum_rdh | /**
* Used to set original sequenceId for WALKeyImpl during WAL replay
*/
public void setOrigLogSeqNum(final long sequenceId) {
this.origLogSeqNum = sequenceId;
} | 3.26 |
hbase_WALKeyImpl_m0_rdh | /**
* Drop this instance's tablename byte array and instead hold a reference to the provided
* tablename. This is not meant to be a general purpose setter - it's only used to collapse
* references to conserve memory.
*/
void m0(TableName tablename) {
// We should not use this as a setter - only to swap
// in a new ... | 3.26 |
hbase_WALKeyImpl_setSequenceId_rdh | // For deserialization. DO NOT USE. See setWriteEntry below.
@InterfaceAudience.Private
protected void setSequenceId(long sequenceId) {
this.sequenceId = sequenceId;
} | 3.26 |
hbase_WALKeyImpl_internEncodedRegionName_rdh | /**
* Drop this instance's region name byte array and instead hold a reference to the provided region
* name. This is not meant to be a general purpose setter - it's only used to collapse references
* to conserve memory.
*/
void internEncodedRegionName(byte[] encodedRegionName) {
// We should not use this as a sett... | 3.26 |
hbase_WALKeyImpl_getNonce_rdh | /**
* Returns The nonce
*/
@Override
public long getNonce() {
return nonce;
} | 3.26 |
hbase_WALKeyImpl_getEncodedRegionName_rdh | /**
* Returns encoded region name
*/
@Override
public byte[] getEncodedRegionName() {
return encodedRegionName;
} | 3.26 |
hbase_WALKeyImpl_getWriteEntry_rdh | /**
* Use it to complete mvcc transaction. This WALKeyImpl was part of (the transaction is started
* when you call append; see the comment on FSHLog#append). To complete call
* {@link MultiVersionConcurrencyControl#complete(MultiVersionConcurrencyControl.WriteEntry)} or
* {@link MultiVersionConcurrencyControl#compl... | 3.26 |
hbase_WALKeyImpl_getOrigLogSeqNum_rdh | /**
* Return a positive long if current WALKeyImpl is created from a replay edit; a replay edit is an
* edit that came in when replaying WALs of a crashed server.
*
* @return original sequence number of the WALEdit
*/
@Override
public long getOrigLogSeqNum() {
return this.origLogSeqNum;
} | 3.26 |
hbase_WALKeyImpl_getNonceGroup_rdh | /**
* Returns The nonce group
*/
@Override
public long getNonceGroup() {
return nonceGroup;
} | 3.26 |
hbase_WALKeyImpl_getTableName_rdh | /**
* Returns table name
*/
@Override
public TableName getTableName() {
return tablename;
} | 3.26 |
hbase_WALKeyImpl_getSequenceId_rdh | /**
* SequenceId is only available post WAL-assign. Calls before this will get you a
* {@link SequenceId#NO_SEQUENCE_ID}. See the comment on FSHLog#append and #getWriteNumber in this
* method for more on when this sequenceId comes available.
*
* @return long the new assigned sequence number
*/
@Override
public lo... | 3.26 |
hbase_WALKeyImpl_getClusterIds_rdh | /**
* Returns the set of cluster Ids that have consumed the change
*/
public List<UUID> getClusterIds() {
return clusterIds;
} | 3.26 |
hbase_ReplicationSourceManager_m1_rdh | /**
* Get the ReplicationPeers used by this ReplicationSourceManager
*
* @return the ReplicationPeers used by this ReplicationSourceManager
*/
public ReplicationPeers m1() {
return this.replicationPeers;
} | 3.26 |
hbase_ReplicationSourceManager_claimQueue_rdh | /**
* Claim a replication queue.
* <p/>
* We add a flag to indicate whether we are called by ReplicationSyncUp. For normal claiming queue
* operation, we are the last step of a SCP, so we can assume that all the WAL files are under
* oldWALs directory. But for ReplicationSyncUp, we may want to claim the replicatio... | 3.26 |
hbase_ReplicationSourceManager_getSources_rdh | /**
* Get a list of all the normal sources of this rs
*
* @return list of all normal sources
*/
public List<ReplicationSourceInterface> getSources() {
return new ArrayList<>(this.sources.values());
} | 3.26 |
hbase_ReplicationSourceManager_releaseWALEntryBatchBufferQuota_rdh | /**
* To release the buffer quota of {@link WALEntryBatch} which acquired by
* {@link ReplicationSourceManager#acquireWALEntryBufferQuota}.
*
* @return the released buffer quota size.
*/
long releaseWALEntryBatchBufferQuota(WALEntryBatch walEntryBatch) {
long usedBufferSize = walEntryBatch.getUsedBufferSize();... | 3.26 |
hbase_ReplicationSourceManager_join_rdh | /**
* Terminate the replication on this region server
*/
public void join() {
this.executor.shutdown();
for (ReplicationSourceInterface source : this.sources.values()) {source.terminate("Region server is closing");
}
synchronized(oldsources) {
for (ReplicationSourceInterface source : this.oldsources)... | 3.26 |
hbase_ReplicationSourceManager_logPositionAndCleanOldLogs_rdh | /**
* This method will log the current position to storage. And also clean old logs from the
* replication queue.
*
* @param source
* the replication source
* @param entryBatch
* the wal entry batch we just shipped
*/
public void logPositionAndCleanOldLogs(ReplicationSourceInterface source, WALEntryBatch e... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.