name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hbase_ReplicationSourceManager_postLogRoll_rdh
// public because of we call it in TestReplicationEmptyWALRecovery public void postLogRoll(Path newLog) throws IOException { String logName = newLog.getName(); String logPrefix = AbstractFSWALProvider.getWALPrefixFromWALName(logName); // synchronized on latestPaths to avoid the new open...
3.26
hbase_ReplicationSourceManager_cleanOldLogs_rdh
/** * Cleans a log file and all older logs from replication queue. Called when we are sure that a log * file is closed and has no more entries. * * @param log * Path to the log * @param inclusive * whether we should also remove the given log file * @param source * the replication source */ void cleanOld...
3.26
hbase_ReplicationSourceManager_getWALs_rdh
/** * Get a copy of the wals of the normal sources on this rs * * @return a sorted set of wal names */ @RestrictedApi(explanation = "Should only be called in tests", link = "", allowedOnPath = ".*/src/test/.*") public Map<ReplicationQueueId, Map<String, NavigableSet<String>>> getWALs() { return Collections.unmo...
3.26
hbase_ReplicationSourceManager_getOldSources_rdh
/** * Get a list of all the recovered sources of this rs * * @return list of all recovered sources */ public List<ReplicationSourceInterface> getOldSources() { return this.oldsources; }
3.26
hbase_ReplicationSourceManager_getFs_rdh
/** * Get the handle on the local file system * * @return Handle on the local file system */ public FileSystem getFs() { return this.fs; }
3.26
hbase_ReplicationSourceManager_getStats_rdh
/** * Get a string representation of all the sources' metrics */ public String getStats() { StringBuilder stats = new StringBuilder(); // Print stats that apply across all Replication Sources stats.append("Global stats: "); stats.append("WAL Edits Buffer Used=").append...
3.26
hbase_ReplicationSourceManager_refreshSources_rdh
/** * Close the previous replication sources of this peer id and open new sources to trigger the new * replication state changes or new replication config changes. Here we don't need to change * replication queue storage and only to enqueue all logs to the new replication source * * @param peerId * the id of th...
3.26
hbase_ReplicationSourceManager_getTotalBufferLimit_rdh
/** * Returns the maximum size in bytes of edits held in memory which are pending replication across * all sources inside this RegionServer. */ public long getTotalBufferLimit() { return totalBufferLimit; }
3.26
hbase_ReplicationSourceManager_addPeer_rdh
/** * <ol> * <li>Add peer to replicationPeers</li> * <li>Add the normal source and related replication queue</li> * <li>Add HFile Refs</li> * </ol> * * @param peerId * the id of replication peer */ public void addPeer(String peerId) throws IOException { boolean added = false; try { added = ...
3.26
hbase_ReplicationSourceManager_drainSources_rdh
/** * <p> * This is used when we transit a sync replication peer to {@link SyncReplicationState#STANDBY}. * </p> * <p> * When transiting to {@link SyncReplicationState#STANDBY}, we can remove all the pending wal * files for a replication peer as we do not need to replicate them any more. And this is * necessary,...
3.26
hbase_ReplicationSourceManager_getLogDir_rdh
/** * Get the directory where wals are stored by their RSs * * @return the directory where wals are stored by their RSs */ public Path getLogDir() { return this.logDir; }
3.26
hbase_ReplicationSourceManager_getSource_rdh
/** * Get the normal source for a given peer * * @return the normal source for the give peer if it exists, otherwise null. */ public ReplicationSourceInterface getSource(String peerId) { return this.sources.get(peerId); }
3.26
hbase_ReplicationSourceManager_getWALFilesToReplicate_rdh
// sorted from oldest to newest private PriorityQueue<Path> getWALFilesToReplicate(ServerName sourceRS, boolean syncUp, Map<String, ReplicationGroupOffset> offsets) throws IOException { List<Path> walFiles = AbstractFSWALProvider.getArchivedWALFiles(conf, sourceRS, URLEncoder.encode(sourceRS.toString(), StandardCharse...
3.26
hbase_ReplicationSourceManager_addSource_rdh
/** * Add a normal source for the given peer on this region server. Meanwhile, add new replication * queue to storage. For the newly added peer, we only need to enqueue the latest log of each wal * group and do replication. * <p/> * We add a {@code init} parameter to indicate whether this is part of the initializa...
3.26
hbase_ReplicationSourceManager_removeSource_rdh
/** * Clear the metrics and related replication queue of the specified old source * * @param src * source to clear */ void removeSource(ReplicationSourceInterface src) { LOG.info("Done with the queue " + src.getQueueId()); this.sources.remove(src.getPeerId()); // Delete queue from storage and memory deleteQueue(...
3.26
hbase_ReplicationSourceManager_interruptOrAbortWhenFail_rdh
/** * Refresh replication source will terminate the old source first, then the source thread will be * interrupted. Need to handle it instead of abort the region server. */ private void interruptOrAbortWhenFail(ReplicationQueueOperation op) { try { op.exec(); } catch (ReplicationException e) { if ((((e.getC...
3.26
hbase_ReplicationSourceManager_getOldLogDir_rdh
/** * Get the directory where wals are archived * * @return the directory where wals are archived */ public Path getOldLogDir() { return this.oldLogDir; }
3.26
hbase_ReplicationSourceManager_removeRecoveredSource_rdh
/** * Clear the metrics and related replication queue of the specified old source * * @param src * source to clear */ private boolean removeRecoveredSource(ReplicationSourceInterface src) { if (!this.oldsources.remove(src)) { return false;} LOG.info("Done with the recovered queue {}", src.getQueueId()); // Dele...
3.26
hbase_ReplicationSourceManager_shouldReplicate_rdh
/** * Check whether we should replicate the given {@code wal}. * * @param wal * the file name of the wal * @return {@code true} means we should replicate the given {@code wal}, otherwise {@code false}. */ private boolean shouldReplicate(ReplicationGroupOffset offset, String wal) { // skip replicating meta wals ...
3.26
hbase_ReplicationSourceManager_deleteQueue_rdh
/** * Delete a complete queue of wals associated with a replication source * * @param queueId * the id of replication queue to delete */ private void deleteQueue(ReplicationQueueId queueId) { abortWhenFail(() -> this.queueStorage.removeQueue(queueId));}
3.26
hbase_ReplicationSourceManager_removePeer_rdh
/** * <ol> * <li>Remove peer for replicationPeers</li> * <li>Remove all the recovered sources for the specified id and related replication queues</li> * <li>Remove the normal source and related replication queue</li> * <li>Remove HFile Refs</li> * </ol> * * @param peerId ...
3.26
hbase_ReplicationSourceManager_acquireWALEntryBufferQuota_rdh
/** * Acquire the buffer quota for {@link Entry} which is added to {@link WALEntryBatch}. * * @param entry * the wal entry which is added to {@link WALEntryBatch} and should acquire buffer * quota. * @return true if we should clear buffer and push all */ boolean acquireWALEntryBufferQuota(WALEntryBatch walEn...
3.26
hbase_ReplicationSourceManager_init_rdh
/** * Adds a normal source per registered peer cluster. */ void init() throws IOException { for (String id : this.replicationPeers.getAllPeerIds()) { addSource(id, true); } }
3.26
hbase_ReplicationSourceManager_createSource_rdh
/** * * @return a new 'classic' user-space replication source. * @param queueId * the id of the replication queue to associate the ReplicationSource with. * @see #createCatalogReplicationSource(RegionInfo) for creating a ReplicationSource for meta. */ private ReplicationSourceInterface createSource(ReplicationQ...
3.26
hbase_ReplicationSourceManager_releaseBufferQuota_rdh
/** * To release the buffer quota which acquired by * {@link ReplicationSourceManager#acquireBufferQuota}. */void releaseBufferQuota(long size) { if (size < 0) { throw new IllegalArgumentException("size should not less than 0"); } addTotalBufferUsed(-size); }
3.26
hbase_ActivePolicyEnforcement_getPolicies_rdh
/** * Returns an unmodifiable version of the active {@link SpaceViolationPolicyEnforcement}s. */ public Map<TableName, SpaceViolationPolicyEnforcement> getPolicies() { return Collections.unmodifiableMap(activePolicies); }
3.26
hbase_ActivePolicyEnforcement_getLocallyCachedPolicies_rdh
/** * Returns an unmodifiable version of the policy enforcements that were cached because they are * not in violation of their quota. */ Map<TableName, SpaceViolationPolicyEnforcement> getLocallyCachedPolicies() {return Collections.unmodifiableMap(locallyCachedPolicies); }
3.26
hbase_ActivePolicyEnforcement_getPolicyEnforcement_rdh
/** * Returns the proper {@link SpaceViolationPolicyEnforcement} implementation for the given table. * If the given table does not have a violation policy enforced, a "no-op" policy will be returned * which always allows an action. * * @param tableName * The table to fetch the policy for. * @return A non-null ...
3.26
hbase_HBaseFsckRepair_forceOfflineInZK_rdh
/** * In 0.90, this forces an HRI offline by setting the RegionTransitionData in ZK to have * HBCK_CODE_NAME as the server. This is a special case in the AssignmentManager that attempts an * assign call by the master. This doesn't seem to work properly in the updated version of 0.92+'s * hbck so we use assign to fo...
3.26
hbase_HBaseFsckRepair_createHDFSRegionDir_rdh
/** * Creates, flushes, and closes a new region. */ public static HRegion createHDFSRegionDir(Configuration conf, RegionInfo hri, TableDescriptor htd) throws IOException {// Create HRegion Path root = CommonFSUtils.getRootDir(conf); HRegion region = HRegion.createHRegion(hri, root, conf, htd, null); ...
3.26
hbase_HBaseFsckRepair_removeParentInMeta_rdh
/* Remove parent */ public static void removeParentInMeta(Configuration conf, RegionInfo hri) throws IOException { throw new UnsupportedOperationException("HBCK1 is read-only now, use HBCK2 instead"); }
3.26
hbase_HBaseFsckRepair_fixUnassigned_rdh
/** * Fix unassigned by creating/transition the unassigned ZK node for this region to OFFLINE state * with a special flag to tell the master that this is a forced operation by HBCK. This assumes * that info is in META. */ public static void fixUnassigned(Admin admin, RegionInfo region) throws IOException, KeeperExc...
3.26
hbase_HBaseFsckRepair_waitUntilAssigned_rdh
/* Should we check all assignments or just not in RIT? */ public static void waitUntilAssigned(Admin admin, RegionInfo region) throws IOException, InterruptedException { long timeout = admin.getConfiguration().getLong("hbase.hbck.assign.timeout", 120000);long expiration = timeout + EnvironmentEdgeManager.curren...
3.26
hbase_HBaseFsckRepair_fixMetaHoleOnlineAndAddReplicas_rdh
/** * Puts the specified RegionInfo into META with replica related columns */ public static void fixMetaHoleOnlineAndAddReplicas(Configuration conf, RegionInfo hri, Collection<ServerName> servers, int numReplicas) throws IOException {Connection conn = ConnectionFactory.createConnection(conf); T...
3.26
hbase_WALUtil_writeFlushMarker_rdh
/** * Write a flush marker indicating a start / abort or a complete of a region flush * <p/> * This write is for internal use only. Not for external client consumption. */ public static WALKeyImpl writeFlushMarker(WAL wal, NavigableMap<byte[], Integer> replicationScope, RegionInfo hri, final FlushDescriptor f, bo...
3.26
hbase_WALUtil_writeBulkLoadMarkerAndSync_rdh
/** * Write a log marker that a bulk load has succeeded and is about to be committed. This write is * for internal use only. Not for external client consumption. * * @param wal * The log to write into. * @param replicationScope * The replication scope of the families in the HRegion * @param hri * A descr...
3.26
hbase_WALUtil_getWALBlockSize_rdh
/** * Public because of FSHLog. Should be package-private * * @param isRecoverEdits * the created writer is for recovered edits or WAL. For recovered edits, it * is true and for WAL it is false. */ public static long getWALBlockSize(Configuration conf, FileSystem fs, Path dir, boolean isRecoverEdits) throws I...
3.26
hbase_WALUtil_writeRegionEventMarker_rdh
/** * Write a region open marker indicating that the region is opened. This write is for internal use * only. Not for external client consumption. */ public static WALKeyImpl writeRegionEventMarker(WAL wal, NavigableMap<byte[], Integer> replicationScope, RegionInfo hri, RegionEventDescriptor r,...
3.26
hbase_WALUtil_doFullMarkerAppendTransaction_rdh
/** * A 'full' WAL transaction involves starting an mvcc transaction followed by an append, an * optional sync, and then a call to complete the mvcc transaction. This method does it all. Good * for case of adding a single edit or marker to the WAL. * <p/> * This write is for internal use only. Not for external cli...
3.26
hbase_WALUtil_m0_rdh
/** * Write the marker that a compaction has succeeded and is about to be committed. This provides * info to the HMaster to allow it to recover the compaction if this regionserver dies in the * middle. It also prevents the compaction from finishing if this regionserver has already lost * its lease on the log. * <p...
3.26
hbase_ScanResultConsumerBase_onScanMetricsCreated_rdh
/** * If {@code scan.isScanMetricsEnabled()} returns true, then this method will be called prior to * all other methods in this interface to give you the {@link ScanMetrics} instance for this scan * operation. The {@link ScanMetrics} instance will be updated on-the-fly during the scan, you can * store it somewhere ...
3.26
hbase_HbckReport_getRegionInfoMap_rdh
/** * This map contains the state of all hbck items. It maps from encoded region name to * HbckRegionInfo structure. The information contained in HbckRegionInfo is used to detect and * correct consistency (hdfs/meta/deployment) problems. */ public Map<String, HbckRegionInfo> getRegionInfoMap() { return regionIn...
3.26
hbase_HbckReport_getCheckingEndTimestamp_rdh
/** * Used for web ui to show when the HBCK checking report generated. */ public Instant getCheckingEndTimestamp() { return checkingEndTimestamp; }
3.26
hbase_HbckReport_getOrphanRegionsOnRS_rdh
/** * The regions only opened on RegionServers, but no region info in meta. */ public Map<String, ServerName> getOrphanRegionsOnRS() { return orphanRegionsOnRS; }
3.26
hbase_HbckReport_getCheckingStartTimestamp_rdh
/** * Used for web ui to show when the HBCK checking started. */ public Instant getCheckingStartTimestamp() { return checkingStartTimestamp; }
3.26
hbase_HbckReport_getInconsistentRegions_rdh
/** * The inconsistent regions. There are three case: case 1. Master thought this region opened, but * no regionserver reported it. case 2. Master thought this region opened on Server1, but * regionserver reported Server2 case 3. More than one regionservers reported opened this region */ public Map<String, Pair<Se...
3.26
hbase_PermissionStorage_getUserPermissions_rdh
/** * Returns the currently granted permissions for a given table/namespace with associated * permissions based on the specified column family, column qualifier and user name. * * @param conf * the configuration * @param entryName * Table name or the namespace * @param cf * Column family * @param cq * ...
3.26
hbase_PermissionStorage_removeUserPermission_rdh
/** * Removes a previously granted permission from the stored access control lists. The * {@link TablePermission} being removed must exactly match what is stored -- no wildcard matching * is attempted. Ie, if user "bob" has been granted "READ" access to the "data" table, but only to * column family plus qualifier "...
3.26
hbase_PermissionStorage_addUserPermission_rdh
/** * Stores a new user permission grant in the access control lists table. * * @param conf * the configuration * @param userPerm * the details of the permission to be granted * @param t * acl table instance. It is closed upon method return. * @throws IOException * in the case of an error accessing th...
3.26
hbase_PermissionStorage_parsePermissions_rdh
/** * Parse and filter permission based on the specified column family, column qualifier and user * name. */ private static ListMultimap<String, UserPermission> parsePermissions(byte[] entryName, Result result, byte[] cf, byte[] cq, String user, boolean hasFilterUser) { ListMultimap<String, UserPermission> per...
3.26
hbase_PermissionStorage_removeTablePermissions_rdh
/** * Remove specified table column from the acl table. */ static void removeTablePermissions(Configuration conf, TableName tableName, byte[] column, Table t) throws IOException { if (f0.isDebugEnabled()) { f0.debug((("Removing permissions of removed column " + Bytes.toString(column)) + " from table ") +...
3.26
hbase_PermissionStorage_userPermissionKey_rdh
/** * Build qualifier key from user permission: username username,family username,family,qualifier */static byte[] userPermissionKey(UserPermission permission) { byte[] key = Bytes.toBytes(permission.getUser()); byte[] qualifier = null; byte[] family = null; if (permission.getPermission().getAccessSc...
3.26
hbase_PermissionStorage_getUserTablePermissions_rdh
/** * Returns the currently granted permissions for a given table as the specified user plus * associated permissions. */ public static List<UserPermission> getUserTablePermissions(Configuration conf, TableName tableName, byte[] cf, byte[] cq, String userName, boolean hasFilterUser) throws IOException { return g...
3.26
hbase_PermissionStorage_getPermissions_rdh
/** * Reads user permission assignments stored in the <code>l:</code> column family of the first * table row in <code>_acl_</code>. * <p> * See {@link PermissionStorage class documentation} for th...
3.26
hbase_PermissionStorage_removeNamespacePermissions_rdh
/** * Remove specified namespace from the acl table. */ static void removeNamespacePermissions(Configuration conf, String namespace, Table t) throws IOException { Delete d = new Delete(Bytes.toBytes(toNamespaceEntry(namespace))); d.addFamily(ACL_LIST_FAMILY); if (f0.isDebugEnabled()) { f0.debug("...
3.26
hbase_PermissionStorage_writePermissionsAsBytes_rdh
/** * Writes a set of permissions as {@link org.apache.hadoop.io.Writable} instances and returns the * resulting byte array. Writes a set of permission [user: table permission] */ public static byte[] writePermissionsAsBytes(ListMultimap<String, UserPermission> perms, Configuration conf) { return ProtobufUtil.pr...
3.26
hbase_PermissionStorage_isAclTable_rdh
/** * Returns {@code true} if the given table is {@code _acl_} metadata table. */ static boolean isAclTable(TableDescriptor desc) { return ACL_TABLE_NAME.equals(desc.getTableName()); }
3.26
hbase_PermissionStorage_loadAll_rdh
/** * Load all permissions from the region server holding {@code _acl_}, primarily intended for * testing purposes. */ static Map<byte[], ListMultimap<String, UserPermission>> loadAll(Configuration conf) throws IOException { Map<byte[], ListMultimap<String, UserPermission>> allPerms = new TreeMap<>(Bytes.BYTES_R...
3.26
hbase_PermissionStorage_isAclRegion_rdh
/** * Returns {@code true} if the given region is part of the {@code _acl_} metadata table. */ static boolean isAclRegion(Region region) { return ACL_TABLE_NAME.equals(region.getTableDescriptor().getTableName()); }
3.26
hbase_InclusiveCombinedBlockCache_cacheBlock_rdh
/** * * @param cacheKey * The block's cache key. * @param buf * The block contents wrapped in a ByteBuffer. * @param inMemory * Whether block should be treated as in-memory. This parameter is only useful for * the L1 lru cache. */ @Override public void cacheBlock(BlockCacheKey cacheKey, Cacheable buf, ...
3.26
hbase_DynamicMetricsRegistry_info_rdh
/** * Returns the info object of the metrics registry */ public MetricsInfo info() { return metricsInfo; }
3.26
hbase_DynamicMetricsRegistry_getGaugeInt_rdh
/** * Get a MetricMutableGaugeInt from the storage. If it is not there atomically put it. * * @param gaugeName * name of the gauge to create or get. * @param potentialStartingValue * value of the new gauge if we have to create it. */ public MutableGaugeInt getGaugeInt(String gaugeName, int potentialStarting...
3.26
hbase_DynamicMetricsRegistry_newGauge_rdh
/** * Create a mutable long integer gauge * * @param info * metadata of the metric * @param iVal * initial value * @return a new gauge object */ public MutableGaugeLong newGauge(MetricsInfo info, long iVal) { MutableGaugeLong ret = new MutableGaugeLong(info, iVal); return addNewMetricIfAbsent(info.name(), r...
3.26
hbase_DynamicMetricsRegistry_newRate_rdh
/** * Create a mutable rate metric (for throughput measurement) * * @param name * of the metric * @param desc * description * @param extended * produce extended stat (stdev/min/max etc.) if true * @return a new mutable rate metric object */ public MutableRate newRate(String name, String desc, boolean e...
3.26
hbase_DynamicMetricsRegistry_newSizeHistogram_rdh
/** * Create a new histogram with size range counts. * * @param name * The name of the histogram * @param desc * The description of the data in the histogram. * @return A new MutableSizeHistogram */ public MutableSizeHistogram newSizeHistogram(String name, String desc) { MutableSizeHistogram histo = ne...
3.26
hbase_DynamicMetricsRegistry_getTag_rdh
/** * Get a tag by name * * @param name * of the tag * @return the tag object */ public MetricsTag getTag(String name) { return tagsMap.get(name); }
3.26
hbase_DynamicMetricsRegistry_setContext_rdh
/** * Set the metrics context tag * * @param name * of the context * @return the registry itself as a convenience */ public DynamicMetricsRegistry setContext(String name) { return tag(MsInfo.Context, name, true); }
3.26
hbase_DynamicMetricsRegistry_getCounter_rdh
/** * Get a MetricMutableCounterLong from the storage. If it is not there atomically put it. * * @param counterName * Name of the counter to get * @param potentialStartingValue * starting value if we have to create a new counter */ public MutableFastCounter getCounter(String counterName, long potentialStarti...
3.26
hbase_DynamicMetricsRegistry_newHistogram_rdh
/** * Create a new histogram. * * @param name * The name of the histogram * @param desc * The description of the data in the histogram. * @return A new MutableHistogram */ public MutableHistogram newHistogram(String name, String desc) { MutableHistogram histo = new MutableHistogram(name, desc); ...
3.26
hbase_DynamicMetricsRegistry_get_rdh
/** * Get a metric by name * * @param name * of the metric * @return the metric object */ public MutableMetric get(String name) { return metricsMap.get(name); }
3.26
hbase_DynamicMetricsRegistry_snapshot_rdh
/** * Sample all the mutable metrics and put the snapshot in the builder * * @param builder * to contain the metrics snapshot * @param all * get all the metrics even if the values are not changed. */ public void snapshot(MetricsRecordBuilder builder, boolean all) { for (MetricsTag tag : tags()) {builder...
3.26
hbase_DynamicMetricsRegistry_newTimeHistogram_rdh
/** * Create a new histogram with time range counts. * * @param name * The name of the histogram * @param desc * The description of the data in the histogram. * @return A new MutableTimeHistogram */ public MutableTimeHistogram newTimeHistogram(String name, String desc) { MutableTimeHistogram histo = new...
3.26
hbase_DynamicMetricsRegistry_newStat_rdh
/** * Create a mutable metric with stats * * @param name * of the metric * @param desc * metric description * @param sampleName * of the metric (e.g., "Ops") * @param valueName * of the metric (e.g., "Time" or "Latency") * @return a new mutable metric object */ public MutableStat newStat(String nam...
3.26
hbase_DynamicMetricsRegistry_add_rdh
/** * Add sample to a stat metric by name. * * @param name * of the metric * @param value * of the snapshot to add */ public void add(String name, long value) { MutableMetric m = metricsMap.get(name); if (m != null) { if (m instanceof MutableStat) { ((MutableStat) (m)).add(value);...
3.26
hbase_DynamicMetricsRegistry_getGauge_rdh
/** * Get a MetricMutableGaugeLong from the storage. If it is not there atomically put it. * * @param gaugeName * name of the gauge to create or get. * @param potentialStartingValue * value of the new gauge if we have to create it. */ public MutableGaugeLong getGauge(String gaugeName, long potentialStarting...
3.26
hbase_DynamicMetricsRegistry_newCounter_rdh
/** * Create a mutable long integer counter * * @param info * metadata of the metric * @param iVal * initial value * @return a new counter object */ public MutableFastCounter newCounter(MetricsInfo info, long iVal) { MutableFastCounter ret = new MutableFastCounter(i...
3.26
hbase_DynamicMetricsRegistry_tag_rdh
/** * Add a tag to the metrics * * @param info * metadata of the tag * @param value * of the tag * @param override * existing tag if true * @return the registry (for keep adding tags etc.) */ public DynamicMetricsRegistry tag(MetricsInfo info, String value, boolean override) { MetricsTag tag = Inter...
3.26
hbase_SingleColumnValueFilter_getQualifier_rdh
/** * Returns the qualifier */ public byte[] getQualifier() { return columnQualifier; }
3.26
hbase_SingleColumnValueFilter_setFilterIfMissing_rdh
/** * Set whether entire row should be filtered if column is not found. * <p> * If true, the entire row will be skipped if the column is not found. * <p> * If false, the row will pass if the column is not found. This is default. * * @param filterIfMissing * flag */ public void setFilterIfMissing(boolean filt...
3.26
hbase_SingleColumnValueFilter_getLatestVersionOnly_rdh
/** * Get whether only the latest version of the column value should be compared. If true, the row * will be returned if only the latest version of the column value matches. If false, the row will * be returned if any version of the column value matches. The default is true. * * @return return value */ public boo...
3.26
hbase_SingleColumnValueFilter_getComparator_rdh
/** * Returns the comparator */ public ByteArrayComparable getComparator() { return comparator; }
3.26
hbase_SingleColumnValueFilter_setLatestVersionOnly_rdh
/** * Set whether only the latest version of the column value should be compared. If true, the row * will be returned if only the latest version of the column value matches. If false, the row will * be returned if any version of the column value matches. The default is true. * * @param latestVersionOnly * flag ...
3.26
hbase_SingleColumnValueFilter_parseFrom_rdh
/** * Parse a serialized representation of {@link SingleColumnValueFilter} * * @param pbBytes * A pb serialized {@link SingleColumnValueFilter} instance * @return An instance of {@link SingleColumnValueFilter} made from <code>bytes</code> * @throws DeserializationException * if an error occurred * @see #toB...
3.26
hbase_SingleColumnValueFilter_isFamilyEssential_rdh
/** * The only CF this filter needs is given column family. So, it's the only essential column in * whole scan. If filterIfMissing == false, all families are essential, because of possibility of * skipping the rows without any data in filtered CF. */ @Override public boolean isFamilyEssential(byte[] name) { ret...
3.26
hbase_SingleColumnValueFilter_toByteArray_rdh
/** * Returns The filter serialized using pb */ @Override public byte[] toByteArray() { return convert().toByteArray(); }
3.26
hbase_SingleColumnValueFilter_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 SingleColumnValueFilter)) return false; ...
3.26
hbase_AdvancedScanResultConsumer_onHeartbeat_rdh
/** * Indicate that there is a heartbeat message but we have not cumulated enough cells to call * {@link #onNext(Result[], ScanController)}. * <p> * Note that this method will always be called when RS returns something to us but we do not have * enough cells to call {@link #onNext(Result[],...
3.26
hbase_Query_getACL_rdh
/** * Returns The serialized ACL for this operation, or null if none */ public byte[] getACL() { return getAttribute(AccessControlConstants.OP_ATTRIBUTE_ACL); }
3.26
hbase_Query_setAuthorizations_rdh
/** * Sets the authorizations to be used by this Query */ public Query setAuthorizations(Authorizations authorizations) { this.setAttribute(VisibilityConstants.VISIBILITY_LABELS_ATTR_KEY, ProtobufUtil.toAuthorizations(authorizations).toByteArray()); return this; }
3.26
hbase_Query_getReplicaId_rdh
/** * Returns region replica id where Query will fetch data from. * * @return region replica id or -1 if not set. */ public int getReplicaId() { return this.targetReplicaId; }
3.26
hbase_Query_setConsistency_rdh
/** * Sets the consistency level for this operation * * @param consistency * the consistency level */ public Query setConsistency(Consistency consistency) { this.consistency = consistency; return this; }
3.26
hbase_Query_getIsolationLevel_rdh
/** * Returns The isolation level of this query. If no isolation level was set for this query object, * then it returns READ_COMMITTED. */ public IsolationLevel getIsolationLevel() { byte[] attr = getAttribute(ISOLATION_LEVEL); return attr == null ? IsolationLevel.READ_COMMITTED : IsolationLevel.fromBytes(at...
3.26
hbase_Query_setLoadColumnFamiliesOnDemand_rdh
/** * Set the value indicating whether loading CFs on demand should be allowed (cluster default is * false). On-demand CF loading doesn't load column families until necessary, e.g. if you filter * on one column, the other column family data will be loaded only for the rows that are included * in result, not all row...
3.26
hbase_Query_getAuthorizations_rdh
/** * Returns The authorizations this Query is associated with. n */ public Authorizations getAuthorizations() throws DeserializationException { byte[] authorizationsBytes = this.getAttribute(VisibilityConstants.VISIBILITY_LABELS_ATTR_KEY); if (authorizationsBytes == null) return null; return Protobu...
3.26
hbase_Query_getConsistency_rdh
/** * Returns the consistency level for this operation * * @return the consistency level */ public Consistency getConsistency() { return consistency; }
3.26
hbase_Query_setACL_rdh
/** * Set the ACL for the operation. * * @param perms * A map of permissions for a user or users */ public Query setACL(Map<String, Permission> perms) { ListMultimap<String, Permission> permMap = ArrayListMultimap.create(); for (Map.Entry<String, Permission> entry : perms.entrySet()) { permMap.pu...
3.26
hbase_Query_getColumnFamilyTimeRange_rdh
/** * Returns A map of column families to time ranges */public Map<byte[], TimeRange> getColumnFamilyTimeRange() { return this.colFamTimeRangeMap; }
3.26
hbase_Query_setIsolationLevel_rdh
/** * Set the isolation level for this query. If the isolation level is set to READ_UNCOMMITTED, then * this query will return data from committed and uncommitted transactions. If the isolation level * is set to READ_COMMITTED, then this query will return data from committed transactions only. If * a isolation leve...
3.26
hbase_Query_doLoadColumnFamiliesOnDemand_rdh
/** * Get the logical value indicating whether on-demand CF loading should be allowed. */ public boolean doLoadColumnFamiliesOnDemand() { return (this.loadColumnFamiliesOnDemand != null) && this.loadColumnFamiliesOnDemand; }
3.26
hbase_Query_setColumnFamilyTimeRange_rdh
/** * Get versions of columns only within the specified timestamp range, [minStamp, maxStamp) on a * per CF bases. Note, default maximum versions to return is 1. If your time range spans more than * one version and you want all versions returned, up the number of versions beyond the default. * Column Family time ra...
3.26