name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hbase_MiniHBaseCluster_suspendRegionServer_rdh
/** * Suspend the specified region server * * @param serverNumber * Used as index into a list. */ public RegionServerThread suspendRegionServer(int serverNumber) { JVMClusterUtil.RegionServerThread server = f0.getRegionServers().get(serverNumber); LOG.info("Suspending {}", server.toString()); server.suspend(); r...
3.26
hbase_MiniHBaseCluster_startRegionServer_rdh
/** * Starts a region server thread running * * @return New RegionServerThread */ public RegionServerThread startRegionServer() throws IOException { final Configuration newConf = HBaseConfiguration.create(conf); return startRegionServer(newConf); }
3.26
hbase_MiniHBaseCluster_startRegionServerAndWait_rdh
/** * Starts a region server thread and waits until its processed by master. Throws an exception when * it can't start a region server or when the region server is not processed by master within the * timeout. * * @return New RegionServerThread */ public RegionServerThread startRegionServerAndWait(long timeout) t...
3.26
hbase_MiniHBaseCluster_getMasterThread_rdh
/** * Returns the current active master thread, if available. * * @return the active MasterThread, null if none is active. */ public MasterThread getMasterThread() { for (MasterThread mt : f0.getLiveMasters()) { if (mt.getMaster().isActiveMaster()) { return mt; } } re...
3.26
hbase_MiniHBaseCluster_shutdown_rdh
/** * Shut down the mini HBase cluster */ @Override public void shutdown() throws IOException { if (this.f0 != null) { this.f0.shutdown(); }}
3.26
hbase_MiniHBaseCluster_handleReportForDutyResponse_rdh
/* @param currentfs We return this if we did not make a new one. @param uniqueName Same name used to help identify the created fs. @return A new fs instance if we are up on DistributeFileSystem. */ @Override protected void handleReportForDutyResponse(final RegionServerStartupResponse c) throws IOException { super....
3.26
hbase_MiniHBaseCluster_getLiveMasterThreads_rdh
/** * Returns List of live master threads (skips the aborted and the killed) */ public List<JVMClusterUtil.MasterThread> getLiveMasterThreads() { return this.f0.getLiveMasters(); }
3.26
hbase_MiniHBaseCluster_abortRegionServer_rdh
/** * Cause a region server to exit doing basic clean up only on its way out. * * @param serverNumber * Used as index into a list. */ public String abortRegionServer(int serverNumber) { HRegionServer server = getRegionServer(serverNumber); LOG.info("Aborting " + server.toString()); server.abort("Aborting for tes...
3.26
hbase_MiniHBaseCluster_resumeRegionServer_rdh
/** * Resume the specified region server * * @param serverNumber * Used as index into a list. */ public RegionServerThread resumeRegionServer(int serverNumber) { JVMClusterUtil.RegionServerThread server = f0.getRegionServers().get(serverNumber); LOG.info("Resuming {}", server.toString()); server.resu...
3.26
hbase_MiniHBaseCluster_getLiveRegionServerThreads_rdh
/** * Returns List of live region server threads (skips the aborted and the killed) */ public List<JVMClusterUtil.RegionServerThread> getLiveRegionServerThreads() { return this.f0.getLiveRegionServers(); }
3.26
hbase_MiniHBaseCluster_startMaster_rdh
/** * Starts a master thread running * * @return New RegionServerThread */ @SuppressWarnings(value = "ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", justification = "Testing only, not a big deal") public MasterThread startMaster() throws IOException { Configuration c = HBaseConfiguration.create(conf); User user = HBase...
3.26
hbase_MiniHBaseCluster_waitOnMaster_rdh
/** * Wait for the specified master to stop. Removes this thread from list of running threads. * * @return Name of master that just went down. */ public String waitOnMaster(final int serverNumber) { return this.f0.waitOnMaster(serverNumber); }
3.26
hbase_MiniHBaseCluster_stopMaster_rdh
/** * Shut down the specified master cleanly * * @param serverNumber * Used as index into a list. * @param shutdownFS * True is we are to shutdown the filesystem as part of this master's * shutdown. Usually we do but you do not want to do this if you are running * multiple master in a test and you shut ...
3.26
hbase_MiniHBaseCluster_countServedRegions_rdh
/** * Counts the total numbers of regions being served by the currently online region servers by * asking each how many regions they have. Does not look at hbase:meta at all. Count includes * catalog tables. * * @return number of regions being served by all region servers */public long countServedRegions() { ...
3.26
hbase_MiniHBaseCluster_abortMaster_rdh
/** * Cause a master to exit without shutting down entire cluster. * * @param serverNumber * Used as index into a list. */ public String abortMaster(int serverNumber) { HMaster server = getMaster(serverNumber); LOG.info("Aborting " + server.toString()); server.abort("Aborting for tests", new Excepti...
3.26
hbase_MiniHBaseCluster_getNumLiveRegionServers_rdh
/** * Returns Number of live region servers in the cluster currently. */ public int getNumLiveRegionServers() { return this.f0.getLiveRegionServers().size(); }
3.26
hbase_MiniHBaseCluster_join_rdh
/** * Wait for Mini HBase Cluster to shut down. */ public void join() { this.f0.join();}
3.26
hbase_MiniHBaseCluster_getRegionServer_rdh
/** * Grab a numbered region server of your choice. * * @return region server */ public HRegionServer getRegionServer(int serverNumber) { return f0.getRegionServer(serverNumber); }
3.26
hbase_MiniHBaseCluster_getMasterThreads_rdh
/** * Returns List of master threads. */ public List<JVMClusterUtil.MasterThread> getMasterThreads() { return this.f0.getMasters(); }
3.26
hbase_MiniHBaseCluster_waitOnRegionServer_rdh
/** * Wait for the specified region server to stop. Removes this thread from list of running threads. * * @return Name of region server that just went down. */ public String waitOnRegionServer(final int serverNumber) { return this.f0.waitOnRegionServer(serverNumber); }
3.26
hbase_MiniHBaseCluster_getMaster_rdh
/** * Returns the master at the specified index, if available. * * @return the active HMaster, null if none is active. */ public HMaster getMaster(final int serverNumber) { return this.f0.getMaster(serverNumber); }
3.26
hbase_SingleColumnValueExcludeFilter_filterRowCells_rdh
// Here we remove from row all key values from testing column @Overridepublic void filterRowCells(List<Cell> kvs) { Iterator<? extends Cell> it = kvs.iterator(); while (it.hasNext()) { // If the current column is actually the tested column, // we will skip it instead. if (CellUtil.matchi...
3.26
hbase_SingleColumnValueExcludeFilter_parseFrom_rdh
/** * Parse a serialized representation of {@link SingleColumnValueExcludeFilter} * * @param pbBytes * A pb serialized {@link SingleColumnValueExcludeFilter} instance * @return An instance of {@link SingleColumnValueExcludeFilter} made from <code>bytes</code> * @throws DeserializationException * if an error ...
3.26
hbase_SingleColumnValueExcludeFilter_areSerializedFieldsEqual_rdh
/** * Returns true if and only if the fields of the filter that are serialized are equal to the * corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(Filter o) { if (o == this) { return true; } if (!(o instanceof SingleColumnValueExcludeFilter)) { ...
3.26
hbase_SingleColumnValueExcludeFilter_toByteArray_rdh
/** * Returns The filter serialized using pb */ @Override public byte[] toByteArray() { FilterProtos.SingleColumnValueExcludeFilter.Builder builder = FilterProtos.SingleColumnValueExcludeFilter.newBuilder(); builder.setSingleColumnValueFilter(super.convert()); return builder.build().toByteArray(); }
3.26
hbase_HMobStore_createScanner_rdh
/** * Gets the MobStoreScanner or MobReversedStoreScanner. In these scanners, a additional seeks in * the mob files should be performed after the seek in HBase is done. */ @Override protected KeyValueScanner createScanner(Scan scan, ScanInfo scanInfo, NavigableSet<byte[]> targetCols, long readPt) throws IOException...
3.26
hbase_HMobStore_getLocations_rdh
/** * * @param tableName * to look up locations for, can not be null * @return a list of location in order of working dir, archive dir. will not be null. */ public List<Path> getLocations(TableName tableName) throws IOException { List<Path> locations = map.get(tableName);if (locations == null) { IdLock.Entry loc...
3.26
hbase_HMobStore_commitFile_rdh
/** * Commits the mob file. * * @param sourceFile * The source file. * @param targetPath * The directory path where the source file is renamed to. */ public void commitFile(final Path sourceFile, Path targetPath) throws IOException { if (sourceFile == null) { return; } Path dstPath = ne...
3.26
hbase_HMobStore_validateMobFile_rdh
/** * Validates a mob file by opening and closing it. * * @param path * the path to the mob file */ private void validateMobFile(Path path) throws IOException { HStoreFile storeFile = null; try { storeFile = new HStoreFile(getFileSystem(), path, conf, getCacheConfig(), BloomType.NONE, isPrimaryRepli...
3.26
hbase_HMobStore_createWriterInTmp_rdh
/** * Creates the writer for the mob file in temp directory. * * @param date * The date string, its format is yyyymmmdd. * @param basePath * The basic path for a temp directory. * @param maxKeyCount * The key count. * @param compression * The compression algorithm. * @param startKey * The start ke...
3.26
hbase_HMobStore_resolve_rdh
/** * Reads the cell from the mob file. * * @param reference * The cell found in the HBase, its value is a path to a mob * file. * @param cacheBlocks * Whether the scanner should cache blocks. * @param readPt * the read point. * @param readEmptyValueOnMobCellMiss * Whether return null value when th...
3.26
hbase_HMobStore_getPath_rdh
/** * Gets the mob file path. * * @return The mob file path. */ public Path getPath() { return mobFamilyPath; }
3.26
hbase_HMobStore_getTempDir_rdh
/** * Gets the temp directory. * * @return The temp directory. */ private Path getTempDir() { return new Path(homePath, MobConstants.TEMP_DIR_NAME); }
3.26
hbase_HMobStore_readCell_rdh
/** * Reads the cell from a mob file. The mob file might be located in different directories. 1. The * working directory. 2. The archive directory. Reads the cell from the files located in both of * the above directories. * * @param locations * The possible locations where the mob files are saved. * @param fil...
3.26
hbase_HMobStore_createStoreEngine_rdh
/** * Creates the mob store engine. */ @Override protected StoreEngine<?, ?, ?, ?> createStoreEngine(HStore store, Configuration conf, CellComparator cellComparator) throws IOException { MobStoreEngine engine = new MobStoreEngine(); engine.createComponentsOnce(conf, store, cellComparator); return en...
3.26
hbase_HMobStore_getConfiguration_rdh
/** * Gets current config. */ public Configuration getConfiguration() { return this.conf; }
3.26
hbase_OrderedBytesBase_isNullable_rdh
// almost all OrderedBytes implementations are nullable. @Override public boolean isNullable() { return true; }
3.26
hbase_OrderedBytesBase_isSkippable_rdh
// almost all OrderedBytes implementations are skippable. @Override public boolean isSkippable() { return true; }
3.26
hbase_MasterWalManager_splitMetaLog_rdh
/** * Specialized method to handle the splitting for meta WAL * * @param serverNames * logs belonging to these servers will be split */ public void splitMetaLog(final Set<ServerName> serverNames) throws IOException { splitLog(serverNames, META_FILTER); }
3.26
hbase_MasterWalManager_splitLog_rdh
/** * This method is the base split method that splits WAL files matching a filter. Callers should * pass the appropriate filter for meta and non-meta WALs. * * @param serverNames * logs belonging to these servers will be split; this will rename the log * directory out from under ...
3.26
hbase_MasterWalManager_getSplittingServersFromWALDir_rdh
/** * Get Servernames which are currently splitting; paths have a '-splitting' suffix. */ public Set<ServerName> getSplittingServersFromWALDir() throws IOException { return getServerNamesFromWALDirPath(p -> p.getName().endsWith(AbstractFSWALProvider.SPLITTING_EXT)); }
3.26
hbase_MasterWalManager_checkFileSystem_rdh
/** * Checks to see if the file system is still accessible. If not, sets closed * * @return false if file system is not available */ private boolean checkFileSystem() { if (this.fsOk) { try { FSUtils.checkFileSystemAvailable(this.f0); FSUtils.checkDfsSafeMode(this.conf); ...
3.26
hbase_MasterWalManager_getServerNamesFromWALDirPath_rdh
/** * Returns listing of ServerNames found by parsing WAL directory paths in FS. */ public Set<ServerName> getServerNamesFromWALDirPath(final PathFilter filter) throws IOException { FileStatus[] walDirForServerNames = getWALDirPaths(filter); return Stream.of(walDirForServerNames).map(s -> { ServerName...
3.26
hbase_MasterWalManager_getWALDirPaths_rdh
/** * Returns List of all RegionServer WAL dirs; i.e. this.rootDir/HConstants.HREGION_LOGDIR_NAME. */ public FileStatus[] getWALDirPaths(final PathFilter filter) throws IOException { Path walDirPath = new Path(CommonFSUtils.getWALRootDir(conf), HConstants.HREGION_LOGDIR_NAME); FileStatus[] walDirForServerName...
3.26
hbase_MasterWalManager_getOldLogDir_rdh
/** * Get the directory where old logs go * * @return the dir */ Path getOldLogDir() { return this.oldLogDir; }
3.26
hbase_MasterWalManager_archiveMetaLog_rdh
/** * The hbase:meta region may OPEN and CLOSE without issue on a server and then move elsewhere. On * CLOSE, the WAL for the hbase:meta table may not be archived yet (The WAL is only needed if * hbase:meta did not close cleanaly). Since meta region is no long on this server, the * ServerCrashProcedure won't split ...
3.26
hbase_MasterWalManager_getLiveServersFromWALDir_rdh
/** * Get Servernames that COULD BE 'alive'; excludes those that have a '-splitting' suffix as these * are already being split -- they cannot be 'alive'. */ public Set<ServerName> getLiveServersFromWALDir() throws IOException { return getServerNamesFromWALDirPath(p -> !p.getName().endsWi...
3.26
hbase_MergeTableRegionsProcedure_createMergedRegionInfo_rdh
/** * Create merged region info by looking at passed in <code>regionsToMerge</code> to figure what * extremes for start and end keys to use; merged region needs to have an extent sufficient to * cover all regions-to-merge. */ private static RegionInfo createMergedRegionInfo(final RegionInfo[] regionsToMerge) { ...
3.26
hbase_MergeTableRegionsProcedure_checkRegionsToMerge_rdh
/** * * @throws MergeRegionException * If unable to merge regions for whatever reasons. */ private static void checkRegionsToMerge(MasterProcedureEnv env, final RegionInfo[] regions, final boolean force) throws MergeRegionException { long count = Arrays.stream(regions).distinct()....
3.26
hbase_MergeTableRegionsProcedure_setRegionStateToMerging_rdh
/** * Set the region states to MERGING state */ private void setRegionStateToMerging(final MasterProcedureEnv env) { // Set State.MERGING to regions to be merged RegionStates regionStates = env.getAssignmentManager().getRegionStates(); for (RegionInfo ri : this.regionsToMerge) { regionStates.getRe...
3.26
hbase_MergeTableRegionsProcedure_postRollBackMergeRegions_rdh
/** * Action after rollback a merge table regions action. */ private void postRollBackMergeRegions(final MasterProcedureEnv env) throws IOException {final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost(); if (cpHost != null) { cpHost.postRollBackMergeRegionsAction(regionsToMerge, getUser());...
3.26
hbase_MergeTableRegionsProcedure_isRollbackSupported_rdh
/* Check whether we are in the state that can be rolled back */ @Override protected boolean isRollbackSupported(final MergeTableRegionsState state) { switch (state) { case MERGE_TABLE_REGIONS_POST_OPERATION : case MERGE_TABLE_REGIONS_OPEN_MERGED_REGION...
3.26
hbase_MergeTableRegionsProcedure_createMergedRegion_rdh
/** * Create merged region. The way the merge works is that we make a 'merges' temporary directory in * the FIRST parent region to merge (Do not change this without also changing the rollback where * we look in this FIRST region for the merge dir). We then collect here references to all the * store files in all the...
3.26
hbase_MergeTableRegionsProcedure_postCompletedMergeRegions_rdh
/** * Post merge region action * * @param env * MasterProcedureEnv */ private void postCompletedMergeRegions(final MasterProcedureEnv env) throws IOException { final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost(); if (cpHost != null) { cpHost.postCompletedMergeRegionsAction(region...
3.26
hbase_MergeTableRegionsProcedure_prepareMergeRegion_rdh
/** * Prepare merge and do some check */ private boolean prepareMergeRegion(final MasterProcedureEnv env) throws IOException { // Fail if we are taking snapshot for the given table TableName v18 = regionsToMerge[0].getTable(); if (env.getMasterServic...
3.26
hbase_MergeTableRegionsProcedure_getServerName_rdh
/** * The procedure could be restarted from a different machine. If the variable is null, we need to * retrieve it. * * @param env * MasterProcedureEnv */ private ServerName getServerName(final MasterProcedureEnv env) { if (regionLocation == null) { regionLocation = env.getAssignmentManager()....
3.26
hbase_MergeTableRegionsProcedure_preMergeRegionsCommit_rdh
/** * Post merge region action * * @param env * MasterProcedureEnv */ private void preMergeRegionsCommit(final MasterProcedureEnv env) throws IOException { final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost(); if (cpHost != null) { @MetaMutationAnnotation final List<Mutatio...
3.26
hbase_MergeTableRegionsProcedure_postMergeRegionsCommit_rdh
/** * Post merge region action * * @param env * MasterProcedureEnv */ private void postMergeRegionsCommit(final MasterProcedureEnv env) throws IOException { final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost(); if (cpHost != null) { cpHost.postMergeRegionsCommit(regionsToMerge,...
3.26
hbase_MergeTableRegionsProcedure_preMergeRegions_rdh
/** * Pre merge region action * * @param env * MasterProcedureEnv */ private void preMergeRegions(final MasterProcedureEnv env) throws IOException {final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost(); if (cpHost != null) { cpHost.preMergeRegionsAction(regi...
3.26
hbase_MergeTableRegionsProcedure_m1_rdh
/** * Clean up a merged region on rollback after failure. */ private void m1(final MasterProcedureEnv env) throws IOException { final MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem(); TableName tn = this.regionsToMerge[0].getTable(); final Path tabledir = CommonFSUtils.getTableDi...
3.26
hbase_MergeTableRegionsProcedure_getMergedRegion_rdh
/** * Returns The merged region. Maybe be null if called to early or we failed. */ RegionInfo getMergedRegion() { return this.mergedRegion; }
3.26
hbase_MergeTableRegionsProcedure_rollbackCloseRegionsForMerge_rdh
/** * Rollback close regions */ private void rollbackCloseRegionsForMerge(MasterProcedureEnv env) throws IOException { AssignmentManagerUtil.reopenRegionsForRollback(env, Arrays.asList(regionsToMerge), getRegionReplication(env), getServerName(env)); }
3.26
hbase_MergeTableRegionsProcedure_updateMetaForMergedRegions_rdh
/** * Add merged region to META and delete original regions. */ private void updateMetaForMergedRegions(final MasterProcedureEnv env) throws IOException { env.getAssignmentManager().markRegionAsMerged(mergedRegion, getServerName(env), this.regionsToMerge); }
3.26
hbase_ReplicationSource_postShipEdits_rdh
// offsets totalBufferUsed by deducting shipped batchSize. @Override public void postShipEdits(List<Entry> entries, long batchSize) { if (throttler.isEnabled()) { throttler.addPushSize(batchSize); } totalReplicatedEdits.addAndGet(entries.size()); this.manager.releaseBufferQuota(batchSize); }
3.26
hbase_ReplicationSource_sleepForRetries_rdh
/** * Do the sleeping logic * * @param msg * Why we sleep * @param sleepMultiplier * by how many times the default sleeping time is augmented * @return True if <code>sleepMultiplier</code> is &lt; <code>maxRetriesMultiplier</code> */ private boolean sleepForRetries(String msg, int sleepMultiplier) { try { i...
3.26
hbase_ReplicationSource_checkError_rdh
// log the error, check if the error is OOME, or whether we should abort the server private void checkError(Thread t, Throwable error) { OOMEChecker.exitIfOOME(error, getClass().getSimpleName()); LOG.error("Unexpected exception in {} currentPath={}", t.getName(), getCurrentPath(), error); if (abortOnError) { server...
3.26
hbase_ReplicationSource_init_rdh
/** * Instantiation method used by region servers * * @param conf * configuration to use * @param fs * file system to use * @param manager * replication manager to ping to * @param server * the server for this region server * @param queueData * the id and offsets of our replication queue * @param...
3.26
hbase_ReplicationSource_getWalEntryFilter_rdh
/** * Call after {@link #initializeWALEntryFilter(UUID)} else it will be null. * * @return WAL Entry Filter Chain to use on WAL files filtering *out* WALEntry edits. */ WALEntryFilter getWalEntryFilter() { return walEntryFilter; }
3.26
hbase_StoreFileReader_passesTimerangeFilter_rdh
/** * Check if this storeFile may contain keys within the TimeRange that have not expired (i.e. not * older than oldestUnexpiredTS). * * @param tr * the timeRange to restrict * @param oldestUnexpiredTS * the oldest timestamp that is not expired, as determined by the column * family's TTL * @return false ...
3.26
hbase_StoreFileReader_passesGeneralRowBloomFilter_rdh
/** * A method for checking Bloom filters. Called directly from StoreFileScanner in case of a * multi-column query. * * @return True if passes */ private boolean passesGeneralRowBloomFilter(byte[] row, int rowOffset, int rowLen) { BloomFilter bloomFilter = this.generalBloomFilter; if (bloomFilter == null...
3.26
hbase_StoreFileReader_incrementRefCount_rdh
/** * Indicate that the scanner has started reading with this reader. We need to increment the ref * count so reader is not close until some object is holding the lock */ void incrementRefCount() { storeFileInfo.increaseRefCount(); }
3.26
hbase_StoreFileReader_getFilterEntries_rdh
/** * The number of Bloom filter entries in this store file, or an estimate thereof, if the Bloom * filter is not loaded. This always returns an upper bound of the number of Bloom filter entries. * * @return an estimate of the number of Bloom filter entries in this file */ public long getFilterEntries() { return g...
3.26
hbase_StoreFileReader_passesGeneralRowPrefixBloomFilter_rdh
/** * A method for checking Bloom filters. Called directly from StoreFileScanner in case of a * multi-column query. * * @return True if passes */private boolean passesGeneralRowPrefixBloomFilter(Scan scan) { BloomFilter bloomFilter = this.generalBloomFilter; if (bloomFilter == null) {bloomFilterMetrics.i...
3.26
hbase_StoreFileReader_passesGeneralRowColBloomFilter_rdh
/** * A method for checking Bloom filters. Called directly from StoreFileScanner in case of a * multi-column query. the cell to check if present in BloomFilter * * @return True if passes */ public boolean passesGeneralRowColBloomFilter(Cell cell) { BloomFilter bloomFilter = this.generalBloomFilter;if (bloomFil...
3.26
hbase_StoreFileReader_getRefCount_rdh
/** * Return the ref count associated with the reader whenever a scanner associated with the reader * is opened. */ int getRefCount() { return storeFileInfo.getRefCount(); }
3.26
hbase_StoreFileReader_readCompleted_rdh
/** * Indicate that the scanner has finished reading with this reader. We need to decrement the ref * count, and also, if this is not the common pread reader, we should close it. */ void readCompleted() { storeFileInfo.decreaseRefCount(); if (context.getReaderType() == ReaderType.STREAM) { try { reader...
3.26
hbase_SaslAuthMethod_getSaslMechanism_rdh
/** * Returns the SASL mechanism used by this authentication method. */ public String getSaslMechanism() { return saslMech; }
3.26
hbase_SaslAuthMethod_getCode_rdh
/** * Returns the unique value to identify this authentication method among other HBase auth methods. */ public byte getCode() { return code; }
3.26
hbase_SaslAuthMethod_getName_rdh
/** * Returns the unique name to identify this authentication method among other HBase auth methods. */ public String getName() { return name; }
3.26
hbase_SaslAuthMethod_getAuthMethod_rdh
/** * Returns the Hadoop {@link AuthenticationMethod} for this method. */ public AuthenticationMethod getAuthMethod() { return method; }
3.26
hbase_MobStoreScanner_m0_rdh
/** * Firstly reads the cells from the HBase. If the cell are a reference cell (which has the * reference tag), the scanner need seek this cell from the mob file, and use the cell found from * the mob file as the result. */ @Overridepublic boolean m0(List<Cell> outResult, ScannerContext ctx)...
3.26
hbase_HbckChore_isRunning_rdh
/** * When running, the HBCK report may be changed later. */ public boolean isRunning() { return running; }
3.26
hbase_HbckChore_scanForMergedParentRegions_rdh
/** * Scan hbase:meta to get set of merged parent regions, this is a very heavy scan. * * @return Return generated {@link HashSet} */ private HashSet<String> scanForMergedParentRegions() throws IOException { HashSet<String> mergedParentRegions = new HashSet<>(); // Null tablename means scan all of meta. ...
3.26
hbase_HbckChore_getLastReport_rdh
/** * Returns Returns last published Report that comes of last successful execution of this chore. */public HbckReport getLastReport() { return lastReport; }
3.26
hbase_ImplType_toString_rdh
/** * Returns <code>-option</code> */ @Override public String toString() { return "-" + option; }
3.26
hbase_ClusterMetrics_getRequestCount_rdh
/** * Returns the number of requests since last report */ default long getRequestCount() { return getLiveServerMetrics().entrySet().stream().flatMap(v -> v.getValue().getRegionMetrics().values().stream()).mapToLong(RegionMetrics::getRequestCount).sum(); }
3.26
hbase_ClusterMetrics_m1_rdh
/** * Returns the number of regions deployed on the cluster */ default int m1() { return getLiveServerMetrics().entrySet().stream().mapToInt(v -> v.getValue().getRegionMetrics().size()).sum(); }
3.26
hbase_ClusterMetrics_getAverageLoad_rdh
/** * Returns the average cluster load */ default double getAverageLoad() { int serverSize = getLiveServerMetrics().size(); if (serverSize == 0) { return 0; } return ((double) (m1())) / ((double) (serverSize)); }
3.26
hbase_ScannerModel_getCacheBlocks_rdh
/** * Returns true if HFile blocks should be cached on the servers for this scan, false otherwise */ @XmlAttribute public boolean getCacheBlocks() { return cacheBlocks; }
3.26
hbase_ScannerModel_getCaching_rdh
/** * Returns the number of rows that the scanner to fetch at once */ @XmlAttribute public int getCaching() { return f0; }
3.26
hbase_ScannerModel_getColumns_rdh
/** * Returns list of columns of interest in column:qualifier format, or empty for all */ @XmlElement(name = "column") public List<byte[]> getColumns() { return columns; }
3.26
hbase_ScannerModel_setStartRow_rdh
/** * * @param startRow * start row */ public void setStartRow(byte[] startRow) { this.startRow = startRow; }
3.26
hbase_ScannerModel_addColumn_rdh
/** * Add a column to the column set * * @param column * the column name, as &lt;column&gt;(:&lt;qualifier&gt;)? */ public void addColumn(byte[] column) { columns.add(column); }
3.26
hbase_ScannerModel_getEndTime_rdh
/** * Returns the upper bound on timestamps of items of interest */ @XmlAttribute public long getEndTime() { return endTime; }
3.26
hbase_ScannerModel_getJasonProvider_rdh
/** * Get the <code>JacksonJaxbJsonProvider</code> instance; * * @return A <code>JacksonJaxbJsonProvider</code>. */ private static JacksonJaxbJsonProvider getJasonProvider() { return JaxbJsonProviderHolder.INSTANCE; }
3.26
hbase_ScannerModel_setStartTime_rdh
/** * * @param startTime * the lower bound on timestamps of values of interest */ public void setStartTime(long startTime) { this.startTime = startTime; }
3.26
hbase_ScannerModel_setColumns_rdh
/** * * @param columns * list of columns of interest in column:qualifier format, or empty for all */public void setColumns(List<byte[]> columns) { this.columns = columns; }
3.26
hbase_ScannerModel_hasEndRow_rdh
/** * Returns true if an end row was specified */ public boolean hasEndRow() { return !Bytes.equals(endRow, HConstants.EMPTY_END_ROW); }
3.26
hbase_ScannerModel_setCaching_rdh
/** * * @param caching * the number of rows to fetch at once */ public void setCaching(int caching) { this.f0 = caching; }
3.26
hbase_ScannerModel_getFilter_rdh
/** * Returns the filter specification */ @XmlElement public String getFilter() { return filter; }
3.26