name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hbase_Result_setStatistics_rdh
/** * Set load information about the region to the information about the result * * @param loadStats * statistics about the current region from which this was returned */ @InterfaceAudience.Private public void setStatistics(RegionLoadStats loadStats) { this.stats = loadStats; }
3.26
hbase_Result_isStale_rdh
/** * Whether or not the results are coming from possibly stale data. Stale results might be returned * if {@link Consistency} is not STRONG for the query. * * @return Whether or not the results are coming from possibly stale data. */ public boolean isStale() { return stale; }
3.26
hbase_Result_value_rdh
/** * Returns the value of the first column in the Result. * * @return value of the first column */ public byte[] value() { if (isEmpty()) { return null; } return CellUtil.cloneValue(cells[0]); }
3.26
hbase_Result_toString_rdh
/** */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("keyvalues="); if (isEmpty()) { sb.append("NONE"); return sb.toString(); }sb.append("{"); boolean moreThanOne = false; for (Cell kv : this.cells) { if (moreThanOne) {...
3.26
hbase_Result_size_rdh
/** * Returns the size of the underlying Cell [] */ public int size() { return this.cells == null ? 0 : this.cells.length; }
3.26
hbase_Result_containsColumn_rdh
/** * Checks for existence of a value for the specified column (empty or not). * * @param family * family name * @param foffset * family offset * @param flength * family length * @param qualifier * column qualifier * @param qoffset * qualifier offset * @param qlength * qualifier length * @ret...
3.26
hbase_Result_create_rdh
/** * Instantiate a Result with the specified List of KeyValues. <br> * <strong>Note:</strong> You must ensure that the keyvalues are already sorted. * * @param cells * List of cells */ public static Result create(List<Cell> cells) { return create(cells, null); }
3.26
hbase_Result_compareResults_rdh
/** * Does a deep comparison of two Results, down to the byte arrays. * * @param res1 * first result to compare * @param res2 * second result to compare * @param verbose * includes string representation for all cells in the exception if true; otherwise * include rowkey only * @throws Exception * Ev...
3.26
hbase_Result_m0_rdh
/** * Map of families to all versions of its qualifiers and values. * <p> * Returns a three level Map of the form: * <code>Map&amp;family,Map&lt;qualifier,Map&lt;timestamp,value&gt;&gt;&gt;</code> * <p> * Note: All other map returning methods make use of this map internally. * * @return map from families to qua...
3.26
hbase_Result_getValue_rdh
/** * Get the latest version of the specified column. Note: this call clones the value content of the * hosting Cell. See {@link #getValueAsByteBuffer(byte[], byte[])}, etc., or {@link #listCells()} * if you would avoid the cloning. * * @param family * family name * @param qualifier * column qualifier * @r...
3.26
hbase_Result_containsEmptyColumn_rdh
/** * Checks if the specified column contains an empty value (a zero-length byte array). * * @param family * family name * @param foffset * family offset * @param flength * family length * @param qualifier * column qualifier * @param qoffset * qualifier offset * @param qlength * qualifier leng...
3.26
hbase_Result_binarySearch_rdh
/** * Searches for the latest value for the specified column. * * @param kvs * the array to search * @param family * family name * @param foffset * family offset * @param flength * family length * @param qualifier * column qualifier * @param qoffset * qualifier offset * @param qlength * qu...
3.26
hbase_Result_getTotalSizeOfCells_rdh
/** * Get total size of raw cells * * @return Total size. */ public static long getTotalSizeOfCells(Result result) { long size = 0; if (result.isEmpty()) { return size; } for (Cell v53 : result.rawCells()) { size += v53.heapSize(); } return size; }
3.26
hbase_Result_isCursor_rdh
/** * Return true if this Result is a cursor to tell users where the server has scanned. In this * Result the only meaningful method is {@link #getCursor()}. {@code while (r = scanner.next() && r != null) { * if(r.isCursor()){ * // scanning is not end, it is a cursor, save its row key and close scanner if you...
3.26
hbase_Result_getValueAsByteBuffer_rdh
/** * Returns the value wrapped in a new <code>ByteBuffer</code>. * * @param family * family name * @param foffset * family offset * @param flength * family length * @param qualifier * column qualifier * @param qoffset * qualifier offset * @param qlength * qualifier length * @return the lates...
3.26
hbase_Result_getStats_rdh
/** * Returns the associated statistics about the region from which this was returned. Can be * <tt>null</tt> if stats are disabled. */ public RegionLoadStats getStats() { return stats; }
3.26
hbase_Result_getCursor_rdh
/** * Return the cursor if this Result is a cursor result. {@link Scan#setNeedCursorResult(boolean)} * {@link Cursor} {@link #isCursor()} */ public Cursor getCursor() { return cursor; }
3.26
hbase_Result_listCells_rdh
/** * Create a sorted list of the Cell's in this result. Since HBase 0.20.5 this is equivalent to * raw(). * * @return sorted List of Cells; can be null if no cells in the result */ public List<Cell> listCells() { return isEmpty() ? null : Arrays.asList(rawCells()); } /** * Return the Cells for the specific ...
3.26
hbase_Result_getFamilyMap_rdh
/** * Map of qualifiers to values. * <p> * Returns a Map of the form: <code>Map&lt;qualifier,value&gt;</code> * * @param family * column family to get * @return map of qualifiers to values */ public NavigableMap<byte[], byte[]> getFamilyMap(byte[] family) { if (this.familyMap == null) { m0(); ...
3.26
hbase_Result_m1_rdh
/** * All methods modifying state of Result object must call this method to ensure that special * purpose immutable Results can't be accidentally modified. */ private void m1() { if (readonly == true) { throw new UnsupportedOperationException("Attempting to modify readonly EMPTY_RESULT!"); } }
3.26
hbase_Result_mayHaveMoreCellsInRow_rdh
/** * For scanning large rows, the RS may choose to return the cells chunk by chunk to prevent OOM or * timeout. This flag is used to tell you if the current Result is the last one of the current * row. False means this Result is the last one. True means there MAY be more cells belonging to * the current row. If yo...
3.26
hbase_Result_containsNonEmptyColumn_rdh
/** * Checks if the specified column contains a non-empty value (not a zero-length byte array). * * @param family * family name * @param foffset * family offset * @param flength * family length * @param qualifier * column qualifier * @param qoffset * qualifier offset * @param qlength * qualifi...
3.26
hbase_Result_createCompleteResult_rdh
/** * Forms a single result from the partial results in the partialResults list. This method is * useful for reconstructing partial results on the client side. * * @param partialResults * list ...
3.26
hbase_Result_loadValue_rdh
/** * Loads the latest version of the specified column into the provided <code>ByteBuffer</code>. * <p> * Does not clear or flip the buffer. * * @param family * family name * @param foffset * family offset * @param flength * family length * @param qualifier * column qualifier * @param qoffset * ...
3.26
hbase_ServerStatistics_update_rdh
/** * Good enough attempt. Last writer wins. It doesn't really matter which one gets to update, as * something gets set */ public void update(byte[] region, RegionLoadStats currentStats) {RegionStatistics regionStat = this.stats.get(region); if (regionStat == null) { regionStat = new RegionStatistics(); ...
3.26
hbase_HelloHBase_createNamespaceAndTable_rdh
/** * Invokes Admin#createNamespace and Admin#createTable to create a namespace with a table that has * one column-family. * * @param admin * Standard Admin object * @throws IOException * If IO problem encountered */ static void createNamespaceAndTable(final Admin admin) throws IOException { if (!namesp...
3.26
hbase_HelloHBase_deleteNamespaceAndTable_rdh
/** * Invokes Admin#disableTable, Admin#deleteTable, and Admin#deleteNamespace to disable/delete * Table and delete Namespace. * * @param admin * Standard Admin object * @throws IOException * If IO problem is encountered */ static void deleteNamespaceAndTable(final Admin admin) throws IOException { if ...
3.26
hbase_HelloHBase_namespaceExists_rdh
/** * Checks to see whether a namespace exists. * * @param admin * Standard Admin object * @param namespaceName * Name of namespace * @return true If namespace exists * @throws IOException * If IO problem encountered */ static boolean namespaceExists(final Admin admin, final String namespaceName) throws...
3.26
hbase_HelloHBase_putRowToTable_rdh
/** * Invokes Table#put to store a row (with two new columns created 'on the fly') into the table. * * @param table * Standard Table object (used for CRUD operations). * @throws IOException * If IO problem encountered */ static void putRowToTable(final Table table) throws IOException { table.put(new Put(...
3.26
hbase_HelloHBase_deleteRow_rdh
/** * Invokes Table#delete to delete test data (i.e. the row) * * @param table * Standard Table object * @throws IOException * If IO problem is encountered */ static void deleteRow(final Table table) throws IOException { System.out.println(((("Deleting row [" + Bytes.toString(MY_ROW_ID)) + "] from Table ...
3.26
hbase_HelloHBase_getAndPrintRowContents_rdh
/** * Invokes Table#get and prints out the contents of the retrieved row. * * @param table * Standard Table object * @throws IOException * If IO problem encountered */ static void getAndPrintRowContents(final Table table) throws IOException { Result row = table.get(new Get(MY_ROW_ID)); System.out...
3.26
hbase_CatalogJanitorReport_isEmpty_rdh
/** * Returns True if an 'empty' lastReport -- no problems found. */ public boolean isEmpty() {return ((this.holes.isEmpty() && this.overlaps.isEmpty()) && this.unknownServers.isEmpty()) && this.emptyRegionInfo.isEmpty(); }
3.26
hbase_HBaseConfiguration_createClusterConf_rdh
/** * Generates a {@link Configuration} instance by applying property overrides prefixed by a cluster * profile key to the base Configuration. Override properties are extracted by the * {@link #subset(Configuration, String)} method, then the merged on top of the base Configuration * and returned. * * @param baseC...
3.26
hbase_HBaseConfiguration_main_rdh
/** * For debugging. Dump configurations to system output as xml format. Master and RS configurations * can also be dumped using http services. e.g. "curl http://master:16010/dump" */ public static void main(String[] args) throws Exception { HBaseConfiguration.create().writeXml(System.out); }
3.26
hbase_HBaseConfiguration_addDeprecatedKeys_rdh
/** * The hbase.ipc.server.reservoir.initial.max and hbase.ipc.server.reservoir.initial.buffer.size * were introduced in HBase2.0.0, while in HBase3.0.0 the two config keys will be replaced by * hbase.server.allocator.max.buffer.count and hbase.server.allocator.buffer.size. Also the * hbase.ipc.server.reservoir.ena...
3.26
hbase_HBaseConfiguration_getPassword_rdh
/** * Get the password from the Configuration instance using the getPassword method if it exists. If * not, then fall back to the general get method for configuration elements. * * @param conf * configuration instance for accessing the passwords * @param alias * the name of the password element * @param def...
3.26
hbase_HBaseConfiguration_applyClusterKeyToConf_rdh
/** * Apply the settings in the given key to the given configuration, this is used to communicate * with distant clusters * * @param conf * configuration object to configure * @param key * string that contains the 3 required configuratins */ private static void applyClusterKeyToConf(Configuration conf, Stri...
3.26
hbase_HBaseConfiguration_create_rdh
/** * Creates a Configuration with HBase resources * * @param that * Configuration to clone. * @return a Configuration created with the hbase-*.xml files plus the given configuration. */ public static Configuration create(final Configuration that) { Configuration conf = create(); merge(conf, that); ...
3.26
hbase_HBaseConfiguration_m1_rdh
/** * Returns whether to show HBase Configuration in servlet */ public static boolean m1() { boolean isShowConf = false; try { if (Class.forName("org.apache.hadoop.conf.ConfServlet") != null) { isShowConf = true; } } catch (LinkageError e) { // should we handle it more ...
3.26
hbase_HBaseConfiguration_subset_rdh
/** * Returns a subset of the configuration properties, matching the given key prefix. The prefix is * stripped from the return keys, ie. when calling with a prefix of "myprefix", the entry * "myprefix.key1 = value1" would be returned as "key1 = value1". If an entry's key matches the * prefix exactly ("myprefix = v...
3.26
hbase_HBaseConfiguration_merge_rdh
/** * Merge two configurations. * * @param destConf * the configuration that will be overwritten with items from the srcConf * @param srcConf * the source configuration */ public static void merge(Configuration destConf, Configuration srcConf) { for (Map.Entry<String, String> e : srcConf) { destC...
3.26
hbase_ByteBufferKeyValue_equals_rdh
/** * Needed doing 'contains' on List. Only compares the key portion, not the value. */ @Override public boolean equals(Object other) { if (!(other instanceof Cell)) { return false; } return CellUtil.equals(this, ((Cell) (other))); }
3.26
hbase_ByteBufferKeyValue_hashCode_rdh
/** * In line with {@link #equals(Object)}, only uses the key portion, not the value. */ @Override public int hashCode() { return calculateHashForKey(this); }
3.26
hbase_SimpleMutableByteRange_putVLong_rdh
// Copied from com.google.protobuf.CodedOutputStream v2.5.0 writeRawVarint64 @Override public int putVLong(int index, long val) { int rPos = 0;while (true) { if ((val & (~0x7f)) == 0) { bytes[(offset + index) + rPos] = ((byte) (val)); break; } else { bytes[(offse...
3.26
hbase_SimpleMutableByteRange_deepCopy_rdh
// end copied from protobuf @Override public ByteRange deepCopy() {SimpleMutableByteRange clone = new SimpleMutableByteRange(deepCopyToNewArray()); if (isHashCached()) { clone.hash = hash; } return clone; }
3.26
hbase_TsvImporterTextMapper_setup_rdh
/** * Handles initializing this class with objects specific to it (i.e., the parser). Common * initialization that might be leveraged by a subclass is done in <code>doSetup</code>. Hence a * subclass may choose to override this method and call <code>doSetup</code> as well before * handling it's own custom params. ...
3.26
hbase_TsvImporterTextMapper_map_rdh
/** * Convert a line of TSV text into an HBase table row. */ @Override public void map(LongWritable offset, Text value, Context context) throws IOException { try { Pair<Integer, Integer> rowKeyOffests = parser.parseRowKey(value.getBytes(), value.getLength()); ImmutableBytesWritable rowKey = ne...
3.26
hbase_TsvImporterTextMapper_doSetup_rdh
/** * Handles common parameter initialization that a subclass might want to leverage. */ protected void doSetup(Context context) { Configuration conf = context.getConfiguration(); // If a custom separator has been used, // decode it back from Base64 encoding. separator = conf.get(ImportTsv.SEPARATOR_...
3.26
hbase_ThriftServer_main_rdh
/** * Start up the Thrift2 server. */ public static void main(String[] args) throws Exception { final Configuration conf = HBaseConfiguration.create();// for now, only time we return is on an argument error. final int status = ToolRunner.run(conf, new ThriftServer(conf), args); System.exit(status); }
3.26
hbase_BackupRestoreFactory_getRestoreJob_rdh
/** * Gets backup restore job * * @param conf * configuration * @return backup restore job instance */ public static RestoreJob getRestoreJob(Configuration conf) { Class<? extends RestoreJob> cls = conf.getClass(HBASE_INCR_RESTORE_IMPL_CLASS, MapReduceRestoreJob.class, RestoreJob.class); RestoreJob serv...
3.26
hbase_BackupRestoreFactory_getBackupCopyJob_rdh
/** * Gets backup copy job * * @param conf * configuration * @return backup copy job instance */ public static BackupCopyJob getBackupCopyJob(Configuration conf) { Class<? extends BackupCopyJob> cls = conf.getClass(HBASE_BACKUP_COPY_IMPL_CLASS, MapReduceBackupCopyJob.class, BackupCopyJob.class); Backup...
3.26
hbase_BackupRestoreFactory_getBackupMergeJob_rdh
/** * Gets backup merge job * * @param conf * configuration * @return backup merge job instance */ public static BackupMergeJob getBackupMergeJob(Configuration conf) { Class<? extends BackupMergeJob> cls = conf.getClass(HBASE_BACKUP_MERGE_IMPL_CLASS, MapReduceBackupMergeJob.class, BackupMergeJob.class); ...
3.26
hbase_PreviousBlockCompressionRatePredicator_shouldFinishBlock_rdh
/** * Returns <b>true</b> if the passed uncompressed size is larger than the limit calculated by * <code>updateLatestBlockSizes</code>. * * @param uncompressed * true if the block should be finished. */ @Override public boolean shouldFinishBlock(int uncompressed) { i...
3.26
hbase_ExcludeDatanodeManager_tryAddExcludeDN_rdh
/** * Try to add a datanode to the regionserver excluding cache * * @param datanodeInfo * the datanode to be added to the excluded cache * @param cause * the cause that the datanode is hope to be excluded * @return True if the datanode is added to the regionserver excluding cache, false otherwise */ public ...
3.26
hbase_SortedCompactionPolicy_getNextMajorCompactTime_rdh
/** * Returns When to run next major compaction */ public long getNextMajorCompactTime(Collection<HStoreFile> filesToCompact) { /** * Default to {@link org.apache.hadoop.hbase.HConstants#DEFAULT_MAJOR_COMPACTION_PERIOD}. */ long period = comConf.getMajorCompactionPeriod(); if (period <= 0) { ...
3.26
hbase_SortedCompactionPolicy_filterBulk_rdh
/** * * @param candidates * pre-filtrate */ protected void filterBulk(ArrayList<HStoreFile> candidates) { candidates.removeIf(HStoreFile::excludeFromMinorCompaction); }
3.26
hbase_SortedCompactionPolicy_throttleCompaction_rdh
/** * * @param compactionSize * Total size of some compaction * @return whether this should be a large or small compaction */ @Override public boolean throttleCompaction(long compactionSize) { return compactionSize > comConf.getThrottlePoint(); }
3.26
hbase_SortedCompactionPolicy_selectCompaction_rdh
/** * * @param candidateFiles * candidate files, ordered from oldest to newest by seqId. We rely on * DefaultStoreFileManager to sort the files by seqId to guarantee * contiguous compaction based on seqId for data consistency. * @return subset copy of candidate list that meets compaction criteria */ public...
3.26
hbase_SortedCompactionPolicy_removeExcessFiles_rdh
/** * * @param candidates * pre-filtrate */ protected void removeExcessFiles(ArrayList<HStoreFile> candidates, boolean isUserCompaction, boolean isMajorCompaction) { int excess = candidates.size() - comConf.getMaxFilesToCompact(); if (excess > 0) { if (isMajorCompaction && isUserCompaction) { ...
3.26
hbase_SortedCompactionPolicy_checkMinFilesCriteria_rdh
/** * * @param candidates * pre-filtrate * @return filtered subset forget the compactionSelection if we don't have enough files */ protected ArrayList<HStoreFile> checkMinFilesCriteria(ArrayList<HStoreFile> candidates, int minFiles) { if (candidates.size() < minFiles) { if (LOG.isDebugEnabled()) { ...
3.26
hbase_DataBlockEncoding_isCorrectEncoder_rdh
/** * Check if given encoder has this id. * * @param encoder * encoder which id will be checked * @param encoderId * id which we except * @return true if id is right for given encoder, false otherwise * @exception IllegalArgumentException * thrown when there is no matching data block encoder */ public s...
3.26
hbase_DataBlockEncoding_getDataBlockEncoderById_rdh
/** * Find and create data block encoder for given id; * * @param encoderId * id of data block encoder. * @return Newly created data block encoder. */ public static DataBlockEncoder getDataBlockEncoderById(short encoderId) { return getEncodingById(encoderId).getEncoder();...
3.26
hbase_DataBlockEncoding_getNameInBytes_rdh
/** * Returns name converted to bytes. */ public byte[] getNameInBytes() { return Bytes.toBytes(toString()); }
3.26
hbase_DataBlockEncoding_writeIdInBytes_rdh
/** * Writes id bytes to the given array starting from offset. * * @param dest * output array * @param offset * starting offset of the output array */ // System.arraycopy is static native. Nothing we can do this until we have minimum JDK 9. @SuppressWarnings("UnsafeFinalization") public void writeIdInBytes(b...
3.26
hbase_DataBlockEncoding_getNameFromId_rdh
/** * Find and return the name of data block encoder for the given id. * * @param encoderId * id of data block encoder * @return name, same as used in options in column family */ public static String getNameFromId(short encoderId) { return getEncodingById(encoderId).toString(); }
3.26
hbase_DataBlockEncoding_getEncoder_rdh
/** * Return new data block encoder for given algorithm type. * * @return data block encoder if algorithm is specified, null if none is selected. */ public DataBlockEncoder getEncoder() { if ((encoder == null) && (id != 0)) { // lazily create the encoder encoder = createEncoder(encoderCls); ...
3.26
hbase_MemStore_startReplayingFromWAL_rdh
/** * This message intends to inform the MemStore that next coming updates are going to be part of * the replaying edits from WAL */ default void startReplayingFromWAL() { return; }
3.26
hbase_MemStore_stopReplayingFromWAL_rdh
/** * This message intends to inform the MemStore that the replaying edits from WAL are done */ default void stopReplayingFromWAL() { return; }
3.26
hbase_MutableRegionInfo_isMetaRegion_rdh
/** * Returns true if this region is a meta region */ @Override public boolean isMetaRegion() { return tableName.equals(TableName.META_TABLE_NAME); }
3.26
hbase_MutableRegionInfo_containsRow_rdh
/** * Return true if the given row falls in this region. */ @Override public boolean containsRow(byte[] row) { CellComparator cellComparator = CellComparatorImpl.getCellComparator(tableName); return (cellComparator.compareRows(row, startKey) >= 0) && ((cellComparator.compareRows(row, endKey) < 0) || Bytes.eq...
3.26
hbase_MutableRegionInfo_getTable_rdh
/** * Get current table name of the region */ @Override public TableName getTable() { return this.tableName; }
3.26
hbase_MutableRegionInfo_getEncodedName_rdh
/** * Returns the encoded region name */ @Override public String getEncodedName() { return this.encodedName;}
3.26
hbase_MutableRegionInfo_getReplicaId_rdh
/** * Returns the region replica id * * @return returns region replica id */ @Override public int getReplicaId() { return replicaId; }
3.26
hbase_MutableRegionInfo_getEndKey_rdh
/** * Returns the endKey */ @Override public byte[] getEndKey() { return endKey; }
3.26
hbase_MutableRegionInfo_isSplit_rdh
/** * Returns True if has been split and has daughters. */ @Override public boolean isSplit() { return this.split;}
3.26
hbase_MutableRegionInfo_isSplitParent_rdh
/** * * @return True if this is a split parent region. * @deprecated since 3.0.0 and will be removed in 4.0.0, Use {@link #isSplit()} instead. * @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a> */@Override @Deprecated public boolean isSplitParent() { if (!isSplit()) { re...
3.26
hbase_MutableRegionInfo_hashCode_rdh
/** * * @see Object#hashCode() */ @Override public int hashCode() { return this.hashCode; }
3.26
hbase_MutableRegionInfo_containsRange_rdh
/** * Returns true if the given inclusive range of rows is fully contained by this region. For * example, if the region is foo,a,g and this is passed ["b","c"] or ["a","c"] it will return * true, but if this is passed ["b","z"] it will return false. * * @throws IllegalArgumentException * if the range passed is ...
3.26
hbase_MutableRegionInfo_getRegionNameAsString_rdh
/** * Returns Region name as a String for use in logging, etc. */ @Override public String getRegionNameAsString() { return RegionInfo.getRegionNameAsString(this, this.regionName); }
3.26
hbase_MutableRegionInfo_getRegionId_rdh
/** * Returns the regionId */ @Override public long getRegionId() { return regionId; }
3.26
hbase_MutableRegionInfo_isOffline_rdh
/** * * @return True if this region is offline. * @deprecated since 3.0.0 and will be removed in 4.0.0 * @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a> */ @Override @Deprecated public boolean isOffline() { return this.offLine; }
3.26
hbase_MutableRegionInfo_setOffline_rdh
/** * The parent of a region split is offline while split daughters hold references to the parent. * Offlined regions are closed. * * @param offLine * Set online/offline status. */ public MutableRegionInfo setOffline(boolean offLine) { this.offLine = offLine; return this; }
3.26
hbase_MutableRegionInfo_getShortNameToLog_rdh
/** * Returns Return a short, printable name for this region (usually encoded name) for us logging. */ @Override public String getShortNameToLog() { return RegionInfo.prettyPrint(this.getEncodedName()); }
3.26
hbase_MutableRegionInfo_toString_rdh
/** * * @see Object#toString() */ @Override public String toString() { return ((((((((((((("{ENCODED => " + getEncodedName()) + ", ") + HConstants.NAME) + " => '") + Bytes.toStringBinary(this.regionName)) + "', STARTKEY => '") + Bytes.toStringBinary(this.startKey)) + "', ENDKEY => '") + Bytes.toStringBinary(this...
3.26
hbase_MutableRegionInfo_setSplit_rdh
/** * Change the split status flag. * * @param split * set split status */ public MutableRegionInfo setSplit(boolean split) { this.split = split; return this; }
3.26
hbase_MutableRegionInfo_getStartKey_rdh
/** * Returns the startKey */ @Override public byte[] getStartKey() { return startKey; }
3.26
hbase_MutableRegionInfo_getRegionName_rdh
/** * * @return the regionName as an array of bytes. * @see #getRegionNameAsString() */ @Override public byte[] getRegionName() { return regionName; }
3.26
hbase_Coprocessor_stop_rdh
/** * Called by the {@link CoprocessorEnvironment} during it's own shutdown to stop the coprocessor. */ default void stop(CoprocessorEnvironment env) throws IOException { } /** * Coprocessor endpoints providing protobuf services should override this method. * * @return Iterable of {@link Service}
3.26
hbase_IndividualBytesFieldCell_getQualifierArray_rdh
// 3) Qualifier @Override public byte[] getQualifierArray() { // Qualifier could be null return qualifier == null ? HConstants.EMPTY_BYTE_ARRAY : qualifier; }
3.26
hbase_IndividualBytesFieldCell_getTypeByte_rdh
// 5) Type @Override public byte getTypeByte() { return type; }
3.26
hbase_IndividualBytesFieldCell_clone_rdh
/** * Implement Cloneable interface */ @Overridepublic Object clone() throws CloneNotSupportedException { return super.clone();// only a shadow copy }
3.26
hbase_IndividualBytesFieldCell_getTimestamp_rdh
// 4) Timestamp @Override public long getTimestamp() { return timestamp; }
3.26
hbase_IndividualBytesFieldCell_getRowArray_rdh
/** * Implement Cell interface */ // 1) Row @Override public byte[] getRowArray() { // If row is null, the constructor will reject it, by {@link KeyValue#checkParameters()}, // so it is safe to return row without checking. return row; }
3.26
hbase_IndividualBytesFieldCell_getFamilyArray_rdh
// 2) Family @Override public byte[] getFamilyArray() { // Family could be null return family == null ? HConstants.EMPTY_BYTE_ARRAY : family; }
3.26
hbase_IndividualBytesFieldCell_heapSize_rdh
/** * Implement HeapSize interface */ @Override public long heapSize() {// Size of array headers are already included into overhead, so do not need to include it for // each byte array return ((((heapOverhead()// overhead, with array headers included + ClassSize.align(getRowLength()))// row + ClassS...
3.26
hbase_IndividualBytesFieldCell_getValueArray_rdh
// 7) Value @Override public byte[] getValueArray() { // Value could be null return value == null ? HConstants.EMPTY_BYTE_ARRAY : value; }
3.26
hbase_IndividualBytesFieldCell_getSequenceId_rdh
// 6) Sequence id @Override public long getSequenceId() { return seqId; }
3.26
hbase_HealthReport_getHealthReport_rdh
/** * Gets the health report of the region server. */ String getHealthReport() { return f0; }
3.26
hbase_FileArchiverNotifierFactoryImpl_get_rdh
/** * Returns the {@link FileArchiverNotifier} instance for the given {@link TableName}. * * @param tn * The table to obtain a notifier for * @return The notifier for the given {@code tablename}. */ public FileArchiverNotifier get(Connection conn, Configuration conf, FileSystem fs, TableName tn) { // Ensure...
3.26
hbase_DemoClient_bytes_rdh
// Helper to translate strings to UTF8 bytes private byte[] bytes(String s) { return Bytes.toBytes(s); }
3.26