name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hbase_HMaster_getMaxBalancingTime_rdh
/** * Returns Maximum time we should run balancer for */private int getMaxBalancingTime() { // if max balancing time isn't set, defaulting it to period time int maxBalancingTime = getConfiguration().getInt(HConstants.HBASE_BALANCER_MAX_BALANCING, getConfiguration().getInt(HConstants.HBASE_BALANCER_PERIOD, HConstants...
3.26
hbase_HMaster_balanceOrUpdateMetrics_rdh
/** * Trigger a normal balance, see {@link HMaster#balance()} . If the balance is not executed this * time, the metrics related to the balance will be updated. When balance is running, related * metrics will be updated at the same time. But if some checking logic failed and cause the * balancer exit early, we lost ...
3.26
hbase_HMaster_listTableNames_rdh
/** * Returns the list of table names that match the specified request * * @param regex * The regular expression to match against, or null if querying for all * @param namespace * the namespace to query, or null if querying for all * @param includeSysTables * False to match only against userspace tables ...
3.26
hbase_HMaster_deleteNamespace_rdh
/** * Delete an existing Namespace. Only empty Namespaces (no tables) can be removed. * * @param nonceGroup * Identifier for the source of the request, a client or process. * @param nonce * A unique identifier for this operation from the client or process identified * by <code>nonceGroup</code> (the source...
3.26
hbase_HMaster_initializeZKBasedSystemTrackers_rdh
/** * Initialize all ZK based system trackers. But do not include {@link RegionServerTracker}, it * should have already been initialized along with {@link ServerManager}. */ private void initializeZKBasedSystemTrackers() throws IOException, KeeperException, ReplicationException, DeserializationException { if (maint...
3.26
hbase_HMaster_getActiveMasterInfoPort_rdh
/** * Returns info port of active master or 0 if any exception occurs. */ public int getActiveMasterInfoPort() { return activeMasterManager.getActiveMasterInfoPort(); }
3.26
hbase_HMaster_setCatalogJanitorEnabled_rdh
/** * Switch for the background CatalogJanitor thread. Used for testing. The thread will continue to * run. It will just be a noop if disabled. * * @param b * If false, the catalog janitor won't do anything. */public void setCatalogJanitorEnabled(final boolean b) {this.f3.setEnabled(b); }
3.26
hbase_HMaster_initClusterSchemaService_rdh
// Will be overridden in tests @InterfaceAudience.Private protected void initClusterSchemaService() throws IOException, InterruptedException { this.clusterSchemaService = new ClusterSchemaServiceImpl(this); this.clusterSchemaService.startAsync(); try { this.clusterSchemaService.awaitRunning(getConfiguration().getInt(HB...
3.26
hbase_HMaster_main_rdh
/** * * @see org.apache.hadoop.hbase.master.HMasterCommandLine */ public static void main(String[] args) { LOG.info("STARTING service " + HMaster.class.getSimpleName()); VersionInfo.logVersion(); new HMasterCommandLine(HMaster.class).doMain(args); }
3.26
hbase_HMaster_shutdown_rdh
/** * Shutdown the cluster. Master runs a coordinated stop of all RegionServers and then itself. */ public void shutdown() throws IOException { TraceUtil.trace(() -> { if (cpHost != null) { cpHost.preShutdown(); } // Tell the servermanager cluster shutdown has been called. This makes it so when Master is // last runn...
3.26
hbase_HMaster_listTableDescriptors_rdh
/** * Returns the list of table descriptors that match the specified request * * @param namespace * the namespace to query, or null if querying for all * @param regex * The regular expression to match against, or null if querying for all * @param tableNameList * the list of table names, or null if queryin...
3.26
hbase_HMaster_createActiveMasterManager_rdh
/** * Protected to have custom implementations in tests override the default ActiveMaster * implementation. */ protected ActiveMasterManager createActiveMasterManager(ZKWatcher zk, ServerName sn, Server server) throws InterruptedIOException { return new ActiveMasterManager(zk, sn, server); }
3.26
hbase_HMaster_createNamespace_rdh
/** * Create a new Namespace. * * @param namespaceDescriptor * descriptor for new Namespace * @param nonceGroup * Identifier for the source of the request, a client or process. * @param nonce * A unique identifier for this operation from the client or process * identified by <code>nonceGroup</code> (th...
3.26
hbase_HMaster_executeRegionPlansWithThrottling_rdh
/** * Execute region plans with throttling * * @param plans * to execute * @return succeeded plans */ public List<RegionPlan> executeRegionPlansWithThrottling(List<RegionPlan> plans) { List<RegionPlan> successRegionPlans = new ArrayList<>(); int maxRegionsInTransition = m2();long balanceStartTime = EnvironmentE...
3.26
hbase_HMaster_getMasterFinishedInitializationTime_rdh
/** * Returns timestamp in millis when HMaster finished becoming the active master */ public long getMasterFinishedInitializationTime() { return masterFinishedInitializationTime; }
3.26
hbase_HMaster_getMasterCoprocessors_rdh
/** * Returns array of coprocessor SimpleNames. */ public String[] getMasterCoprocessors() { Set<String> masterCoprocessors = getMasterCoprocessorHost().getCoprocessors(); return masterCoprocessors.toArray(new String[masterCoprocessors.size()]); }
3.26
hbase_HMaster_finishActiveMasterInitialization_rdh
/** * Finish initialization of HMaster after becoming the primary master. * <p/> * The startup order is a bit complicated but very important, do not change it unless you know * what you are doing. * <ol> * <li>Initialize file system based components - file system manager, wal manager, table * descriptors, etc</l...
3.26
hbase_HMaster_m2_rdh
/** * Returns Maximum number of regions in transition */ private int m2() { int numRegions = this.assignmentManager.getRegionStates().getRegionAssignments().size(); return Math.max(((int) (Math.floor(numRegions * this.maxRitPercent))), 1); }
3.26
hbase_HMaster_isNormalizerOn_rdh
/** * Queries the state of the {@link RegionNormalizerStateStore}. If it's not initialized, false is * returned. */ public boolean isNormalizerOn() { return (!isInMaintenanceMode()) && getRegionNormalizerManager().isNormalizerOn(); }
3.26
hbase_HMaster_reopenRegions_rdh
/** * Reopen regions provided in the argument * * @param tableName * The current table name * @param regionNames * The region names of the regions to reopen * @param nonceGroup * Identifier for the source of the request, a client or process * @param nonce * A unique identifier for this operation from ...
3.26
hbase_HMaster_getClusterMetrics_rdh
/** * Returns cluster status */ public ClusterMetrics getClusterMetrics() throws IOException { return getClusterMetrics(EnumSet.allOf(Option.class));}
3.26
hbase_HMaster_decommissionRegionServers_rdh
/** * Mark region server(s) as decommissioned (previously called 'draining') to prevent additional * regions from getting assigned to them. Also unload the regions on the servers asynchronously.0 * * @param servers * Region servers to decommission. */ public void decommissionRegionServers(final List<ServerName>...
3.26
hbase_HMaster_getCompactionState_rdh
/** * Get the compaction state of the table * * @param tableName * The table name * @return CompactionState Compaction state of the table */ public CompactionState getCompactionState(final TableName tableName) { CompactionState compactionState = CompactionState.NONE; try { List<RegionInfo> v250 = assignmentMan...
3.26
hbase_HMaster_putUpJettyServer_rdh
// return the actual infoPort, -1 means disable info server. private int putUpJettyServer() throws IOException { if (!conf.getBoolean("hbase.master.infoserver.redirect", true)) { return -1; } final int infoPort = conf.getInt("hbase.master.info.port.orig", HConstants.DEFAULT_MASTER_INFOPORT); // ...
3.26
hbase_HMaster_getNamespaces_rdh
/** * Get all Namespaces * * @return All Namespace descriptors */ List<NamespaceDescriptor> getNamespaces() throws IOException { checkInitialized(); final List<NamespaceDescriptor> nsds = new ArrayList<>(); if (cpHost != null) { cpHost.preListNamespaceDescriptors(nsds); }nsds.addAll(this.clusterSchemaService.getN...
3.26
hbase_HMaster_isOnline_rdh
/** * Report whether this master is started This method is used for testing. * * @return true if master is ready to go, false if not. */ public boolean isOnline() { return serviceStarted; }
3.26
hbase_HMaster_constructMaster_rdh
/** * Utility for constructing an instance of the passed HMaster class. * * @return HMaster instance. */ public static HMaster constructMaster(Class<? extends HMaster> masterClass, final Configuration conf) { try { Constructor<? extends HMaster> c = masterClass.getConstructor(Configuration.class); return c.newInsta...
3.26
hbase_HMaster_getTableDescriptors_rdh
/** * Return a list of table table descriptors after applying any provided filter parameters. Note * that the user-facing description of this filter logic is presented on the class-level javadoc * of {@link NormalizeTableFilterParams}. */ private List<TableDescriptor> getTableDescriptors(final List<TableDescriptor...
3.26
hbase_HMaster_getMobCompactionState_rdh
/** * Gets the mob file compaction state for a specific table. Whether all the mob files are selected * is known during the compaction execution, but the statistic is done just before compaction * starts, it is hard to know the compaction type at that time, so the rough statistics are chosen * for the mob file comp...
3.26
hbase_HMaster_modifyNamespace_rdh
/** * Modify an existing Namespace. * * @param nonceGroup * Identifier for the source of the request, a client or process. * @param nonce * A unique identifier for this operation from the client or process identified * by <code>nonceGroup</code> (the source must ensure each operation gets a * unique id)...
3.26
hbase_HMaster_createServerManager_rdh
/** * <p> * Create a {@link ServerManager} instance. * </p> * <p> * Will be overridden in tests. * </p> */ @InterfaceAudience.Private protected ServerManager createServerManager(MasterServices master, RegionServerList storage) throws IOException { // We put this out here in a method so can do a Mockito.spy and ...
3.26
hbase_HMaster_isSplitOrMergeEnabled_rdh
/** * Queries the state of the {@link SplitOrMergeStateStore}. If it is not initialized, false is * returned. If switchType is illegal, false will return. * * @param switchType * see {@link org.apache.hadoop.hbase.client.MasterSwitchType} * @return The state of the switch */ @Override public boolean isSplitOrM...
3.26
hbase_HMaster_isBalancerOn_rdh
/** * Queries the state of the {@link LoadBalancerStateStore}. If the balancer is not initialized, * false is returned. * * @return The state of the load balancer, or false if the load balancer isn't defined. */ public boolean isBalancerOn() { return ((!isInMaintenanceMode()) && (loadBalancerStateStore != null)) &...
3.26
hbase_HMaster_m0_rdh
/** * Check hbase:namespace table is assigned. If not, startup will hang looking for the ns table * <p/> * This is for rolling upgrading, later we will migrate the data in ns table to the ns family of * meta table. And if this is a new cluster, this method will return immediately as there will be * no namespace ta...
3.26
hbase_HMaster_decorateMasterConfiguration_rdh
/** * This method modifies the master's configuration in order to inject replication-related features */ @InterfaceAudience.Private public static void decorateMasterConfiguration(Configuration conf) { String plugins = conf.get(HBASE_MASTER_LOGCLEANER_PLUGINS); String cleanerClass = ReplicationLogCleaner.class.getCano...
3.26
hbase_HMaster_getMasterProcedureManagerHost_rdh
/** * Returns the underlying MasterProcedureManagerHost */ @Overridepublic MasterProcedureManagerHost getMasterProcedureManagerHost() { return mpmHost; }
3.26
hbase_HMaster_recommissionRegionServer_rdh
/** * Remove decommission marker (previously called 'draining') from a region server to allow regions * assignments. Load regions onto the server asynchronously if a list of regions is given * * @param server * Region server to remove decommission marker from. */ public void recommissionRegionServer(final Serv...
3.26
hbase_HMaster_getMasterActiveTime_rdh
/** * Returns timestamp in millis when HMaster became the active master. */ public long getMasterActiveTime() { return masterActiveTime; }
3.26
hbase_HMaster_getClientIdAuditPrefix_rdh
/** * Returns Client info for use as prefix on an audit log string; who did an action */ @Override public String getClientIdAuditPrefix() { return (("Client=" + RpcServer.getRequestUserName().orElse(null)) + "/") + RpcServer.getRemoteAddress().orElse(null); }
3.26
hbase_HMaster_getBackupMasterInfoPort_rdh
/** * * @param sn * is ServerName of the backup master * @return info port of backup master or 0 if any exception occurs. */ public int getBackupMasterInfoPort(final ServerName sn) { return activeMasterManager.getBackupMasterInfoPort(sn); }
3.26
hbase_HMaster_m1_rdh
/** * Adds the {@code MasterQuotasObserver} to the list of configured Master observers to * automatically remove quotas for a table when that table is deleted. */ @InterfaceAudience.Private public void m1(Configuration conf) { // We're configured to not delete quotas on table deletion, so we don't need to add the ob...
3.26
hbase_HMaster_move_rdh
// Public so can be accessed by tests. Blocks until move is done. // Replace with an async implementation from which you can get // a success/failure result. @InterfaceAudience.Private public void move(final byte[] encodedRegionName, byte[] destServerName) throws IOException { RegionState regionState = assignmentManag...
3.26
hbase_HMaster_getMasterStartTime_rdh
/** * Returns timestamp in millis when HMaster was started. */ public long getMasterStartTime() { return startcode; }
3.26
hbase_HMaster_getLoadedCoprocessors_rdh
/** * The set of loaded coprocessors is stored in a static set. Since it's statically allocated, it * does not require that HMaster's cpHost be initialized prior to accessing it. * * @return a String representation of the set of names of the loaded coprocessors. */ public static String getLoadedCoprocessors() { r...
3.26
hbase_HMaster_getAverageLoad_rdh
/** * Compute the average load across all region servers. Currently, this uses a very naive * computation - just uses the number of regions being served, ignoring stats about number of * requests. * * @return the average load */ public double getAverageLoad() { if (this.assignmentManager == null) { return 0; } R...
3.26
hbase_HMaster_balanceThrottling_rdh
/** * It first sleep to the next balance plan start time. Meanwhile, throttling by the max number * regions in transition to protect availability. * * @param nextBalanceStartTime * The next balance plan start time * @param maxRegionsInTransition * max number of regions in transition * @param cutoffTime * ...
3.26
hbase_HMaster_isInMaintenanceMode_rdh
/** * Report whether this master is in maintenance mode. * * @return true if master is in maintenanceMode */ @Override public boolean isInMaintenanceMode() { return maintenanceMode; }
3.26
hbase_HMaster_run_rdh
// Main run loop. Calls through to the regionserver run loop AFTER becoming active Master; will // block in here until then. @Override public void run() { try { installShutdownHook(); registerConfigurationObservers(); Threads.setDaemonThreadRunning(new Thread(TraceUtil.tracedRunnable(() -> {...
3.26
hbase_HMaster_getRemoteInetAddress_rdh
/** * Returns Get remote side's InetAddress */ InetAddress getRemoteInetAddress(final int port, final long serverStartCode) throws UnknownHostException { // Do it out here in its own little method so can fake an address when // mocking up in tests. InetAddress ia = RpcServer.getRemoteIp(); // The call could be from t...
3.26
hbase_HMaster_getLoadBalancerClassName_rdh
/** * Fetch the configured {@link LoadBalancer} class name. If none is set, a default is returned. * <p/> * Notice that, the base load balancer will always be {@link RSGroupBasedLoadBalancer} now, so * this method will return the balancer used inside each rs group. * * @return The name of the {@link LoadBalancer}...
3.26
hbase_HMaster_startProcedureExecutor_rdh
// will be override in UT protected void startProcedureExecutor() throws IOException { procedureExecutor.startWorkers(); }
3.26
hbase_HMaster_skipRegionManagementAction_rdh
/** * Checks master state before initiating action over region topology. * * @param action * the name of the action under consideration, for logging. * @return {@code true} when the caller should exit early, {@code false} otherwise. */ @Override public boolean skipRegionManagementAction(final String action) { /...
3.26
hbase_HMaster_createAssignmentManager_rdh
// Will be overriden in test to inject customized AssignmentManager @InterfaceAudience.Private protected AssignmentManager createAssignmentManager(MasterServices master, MasterRegion masterRegion) { return new AssignmentManager(master, masterRegion); }
3.26
hbase_HMaster_getSnapshotManager_rdh
/** * Returns the underlying snapshot manager */ @Override public SnapshotManager getSnapshotManager() { return this.snapshotManager; }
3.26
hbase_HMaster_getNamespace_rdh
/** * Get a Namespace * * @param name * Name of the Namespace * @return Namespace descriptor for <code>name</code> */ NamespaceDescriptor getNamespace(String name) throws IOException { checkInitialized(); if (this.cpHost != null) this.cpHost.preGetNamespaceDescriptor(name); NamespaceDescriptor nsd = this.clust...
3.26
hbase_MetaFixer_createRegionInfosForHoles_rdh
/** * Create a new {@link RegionInfo} corresponding to each provided "hole" pair. */ private static List<RegionInfo> createRegionInfosForHoles(final List<Pair<RegionInfo, RegionInfo>> holes) { final List<RegionInfo> newRegionInfos = holes.stream().map(MetaFixer::getHoleCover).filter(Optional::isPresent).map(Optio...
3.26
hbase_MetaFixer_calculateMerges_rdh
/** * Run through <code>overlaps</code> and return a list of merges to run. Presumes overlaps are * ordered (which they are coming out of the CatalogJanitor consistency report). * * @param maxMergeCount * Maximum regions to merge at a time (avoid merging 100k regions in one go!) */ static List<SortedSet<RegionI...
3.26
hbase_MetaFixer_m0_rdh
/** * If hole, it papers it over by adding a region in the filesystem and to hbase:meta. Does not * assign. */ void m0(CatalogJanitorReport report) { final List<Pair<RegionInfo, RegionInfo>> holes = report.getHoles(); if (holes.isEmpty()) { f0.info("CatalogJanitor Report contains no holes to fix. Ski...
3.26
hbase_MetaFixer_fixOverlaps_rdh
/** * Fix overlaps noted in CJ consistency report. */ List<Long> fixOverlaps(CatalogJanitorReport report) throws IOException { List<Long> pidList = new ArrayList<>(); for (Set<RegionInfo> regions : calculateMerges(maxMergeCount, report.getOverlaps())) { RegionInfo[] v19 =...
3.26
hbase_ByteBufferArray_next_rdh
/** * The returned ByteBuffer is an sliced one, it won't affect the position or limit of the * original one. */ @Override public ByteBuffer next() { ByteBuffer bb = buffers[curIndex].duplicate(); if (curIndex == startBuffer) { bb.position(f0).limit(Math.min(bufferSize, f0 + len)); } else if ...
3.26
hbase_ByteBufferArray_internalTransfer_rdh
/** * Transferring all remaining bytes from b to the buffers array starting at offset, or * transferring bytes from the buffers array at offset to b until b is filled. Notice that * position of ByteBuff b will be advanced. * * @param offset * where we start in the big logical array. * @param b * the ByteBuf...
3.26
hbase_ByteBufferArray_read_rdh
/** * Transfers bytes from this buffers array into the given destination {@link ByteBuff} * * @param offset * start position in this big logical array. * @param dst * the destination ByteBuff. Notice that its position will be advanced. * @return number of bytes read */ public int read(long offset, ByteBuff ...
3.26
hbase_ByteBufferArray_write_rdh
/** * Transfers bytes from the given source {@link ByteBuff} into this buffer array * * @param offset * start offset of this big logical array. * @param src * the source ByteBuff. Notice that its position will be advanced. * @return number of bytes write */ public int write(long offset, ByteBuff src) { ...
3.26
hbase_TableState_isEnabled_rdh
/** * Returns True if table is {@link State#ENABLED}. */ public boolean isEnabled() { return isInStates(State.ENABLED); }
3.26
hbase_TableState_isDisabled_rdh
/** * Returns True if table is disabled. */ public boolean isDisabled() { return isInStates(State.DISABLED); }
3.26
hbase_TableState_isDisabledOrDisabling_rdh
/** * Returns True if {@link State#DISABLED} or {@link State#DISABLED} */ public boolean isDisabledOrDisabling() { return isInStates(State.DISABLED, State.DISABLING); }
3.26
hbase_TableState_getState_rdh
/** * Returns table state */ public State getState() { return state; }
3.26
hbase_TableState_isInStates_rdh
/** * Static version of state checker * * @param target * equals to any of * @return true if satisfies */ public boolean isInStates(State... target) { for (State tableState : target) { if (this.state.equals(tableState)) { return true; } } return false; }
3.26
hbase_TableState_getTableName_rdh
/** * Table name for state */ public TableName getTableName() { return tableName; }
3.26
hbase_TableState_isDisabling_rdh
/** * Returns True if table is disabling. */ public boolean isDisabling() { return isInStates(State.DISABLING); }
3.26
hbase_TableState_convert_rdh
/** * Covert from PB version of TableState * * @param tableName * table this state of * @param tableState * convert from */ public static TableState convert(TableName tableName, HBaseProtos.TableState tableState) { TableState.State state = State.convert(tableState.getState()); return new TableSta...
3.26
hbase_TableState_isEnabling_rdh
/** * Returns True if table is {@link State#ENABLING}. */ public boolean isEnabling() { return isInStates(State.ENABLING); }
3.26
hbase_TableState_inStates_rdh
/** * Check that table in given states * * @param states * state list * @return true if satisfies */ public boolean inStates(State... states) { for (State s : states) { if (s.equals(this.state)) return true; } return false;}
3.26
hbase_TableState_isEnabledOrEnabling_rdh
/** * Returns True if {@link State#ENABLED} or {@link State#ENABLING} */ public boolean isEnabledOrEnabling() { return isInStates(State.ENABLED, State.ENABLING); }
3.26
hbase_RegionReplicationFlushRequester_recordFlush_rdh
/** * Record that we have already finished a flush with the given {@code sequenceId}. * <p/> * We can cancel the pending flush request if the failed sequence id is less than the given * {@code sequenceId}. */ synchronized void recordFlush(long sequenceId) { this.lastFlushedSequenceId = sequenceId; // cance...
3.26
hbase_ZKProcedureUtil_getReachedBarrierNode_rdh
/** * Get the full znode path for the node used by the coordinator to trigger a global barrier * execution and release on each subprocedure. * * @param controller * controller running the procedure * @param opInstanceName * name of the running procedure instance (not the procedure description). * @return fu...
3.26
hbase_ZKProcedureUtil_getAbortNode_rdh
/** * Get the full znode path for the node used by the coordinator or member to trigger an abort of * the global barrier acquisition or execution in subprocedures. * * @param controller * controller running the procedure * @param opInstanceName * name of the running procedure instance (not the procedure desc...
3.26
hbase_ZKProcedureUtil_isAbortPathNode_rdh
/** * Is this in the procedure barrier abort znode path */ public boolean isAbortPathNode(String path) { return path.startsWith(this.abortZnode) && (!path.equals(abortZnode)); }
3.26
hbase_ZKProcedureUtil_isAcquiredNode_rdh
/** * Is this the exact procedure barrier acquired znode */ boolean isAcquiredNode(String path) { return path.equals(acquiredZnode); }
3.26
hbase_ZKProcedureUtil_getAcquireBarrierNode_rdh
/** * Get the full znode path for the node used by the coordinator to trigger a global barrier * acquire on each subprocedure. * * @param controller * controller running the procedure * @param opInstanceName * name of the running procedure instance (not the procedure description). * @return full znode path ...
3.26
hbase_ZKProcedureUtil_logZKTree_rdh
/** * Helper method to print the current state of the ZK tree. * * @see #logZKTree(String) * @throws KeeperException * if an unexpected exception occurs */ protected void logZKTree(String root, String prefix) throws KeeperException { List<String> children = ZKUtil.listChildrenNoWatch(watcher, root); if (childre...
3.26
hbase_ZKProcedureUtil_isReachedNode_rdh
/** * Is this the exact procedure barrier reached znode */ boolean isReachedNode(String path) {return path.equals(reachedZnode); }
3.26
hbase_ZKProcedureUtil_isAcquiredPathNode_rdh
/** * Is this in the procedure barrier acquired znode path */ boolean isAcquiredPathNode(String path) { return (path.startsWith(this.acquiredZnode) && (!path.equals(acquiredZnode))) && isMemberNode(path, acquiredZnode); }
3.26
hbase_ZKProcedureUtil_isInProcedurePath_rdh
/** * Is this a procedure related znode path? TODO: this is not strict, can return true if had name * just starts with same prefix but is different zdir. * * @return true if starts with baseZnode */ boolean isInProcedurePath(String path) { return path.startsWith(baseZNode); }
3.26
hbase_ZKProcedureUtil_isReachedPathNode_rdh
/** * Is this in the procedure barrier reached znode path */ boolean isReachedPathNode(String path) { return (path.startsWith(this.reachedZnode) && (!path.equals(reachedZnode))) && isMemberNode(path, reachedZnode); }
3.26
hbase_ZKProcedureUtil_isAbortNode_rdh
/** * Is this in the procedure barrier abort znode path */ boolean isAbortNode(String path) { return path.equals(abortZnode); }
3.26
hbase_VersionModel_setOSVersion_rdh
/** * * @param version * the OS version string */ public void setOSVersion(String version) { this.osVersion = version; }
3.26
hbase_VersionModel_setJVMVersion_rdh
/** * * @param version * the JVM version string */ public void setJVMVersion(String version) { this.jvmVersion = version; }
3.26
hbase_VersionModel_setRESTVersion_rdh
/** * * @param version * the REST gateway version string */ public void setRESTVersion(String version) { this.restVersion = version; }
3.26
hbase_VersionModel_toString_rdh
/* (non-Javadoc) @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("rest "); sb.append(restVersion); sb.append(" [JVM: "); sb.append(jvmVersion); sb.append("] [OS: "); sb.append(osVersion); sb.append("] [Server: "...
3.26
hbase_VersionModel_getServerVersion_rdh
/** * Returns the servlet container version */ @XmlAttribute(name = "Server") public String getServerVersion() { return serverVersion; }
3.26
hbase_VersionModel_getJerseyVersion_rdh
/** * Returns the version of the embedded Jersey framework */ @XmlAttribute(name = "Jersey") public String getJerseyVersion() { return jerseyVersion; }
3.26
hbase_VersionModel_getJVMVersion_rdh
/** * Returns the JVM vendor and version */ @XmlAttribute(name = "JVM") public String getJVMVersion() { return jvmVersion; }
3.26
hbase_VersionModel_getRESTVersion_rdh
/** * Returns the REST gateway version */ @XmlAttribute(name = "REST") public String getRESTVersion() { return restVersion; }
3.26
hbase_VersionModel_getOSVersion_rdh
/** * Returns the OS name, version, and hardware architecture */ @XmlAttribute(name = "OS") public String getOSVersion() { return osVersion; }
3.26
hbase_VersionModel_setServerVersion_rdh
/** * * @param version * the servlet container version string */ public void setServerVersion(String version) { this.serverVersion = version; }
3.26
hbase_VersionModel_setJerseyVersion_rdh
/** * * @param version * the Jersey framework version string */ public void setJerseyVersion(String version) { this.jerseyVersion = version; }
3.26
hbase_Result_isEmpty_rdh
/** * Check if the underlying Cell [] is empty or not * * @return true if empty */ public boolean isEmpty() { return (this.cells == null) || (this.cells.length == 0); }
3.26
hbase_Result_getRow_rdh
/** * Method for retrieving the row key that corresponds to the row from which this Result was * created. */ public byte[] getRow() { if (this.row == null) { this.row = ((this.cells == null) || (this.cells.length == 0)) ? null : CellUtil.cloneRow(this.cells[0]); } return this.row; } /** * Retur...
3.26
hbase_Result_copyFrom_rdh
/** * Copy another Result into this one. Needed for the old Mapred framework * * @throws UnsupportedOperationException * if invoked on instance of EMPTY_RESULT (which is supposed * to be immutable). */ public void copyFrom(Result other) { m1(); this.row = null; this.familyMap = null; thi...
3.26