hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableName()) { hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (hasEncodedRegionName()) { hash = (37 * hash) + ENCODED_REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getEncodedRegionName().hashCode(); if (hasFamilyName()) { hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFamilyName().hashCode(); if (getCompactionInputCount() > 0) { hash = (37 * hash) + COMPACTION_INPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionInputList().hashCode(); if (getCompactionOutputCount() > 0) { hash = (37 * hash) + COMPACTION_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionOutputList().hashCode(); if (hasStoreHomeDir()) { hash = (37 * hash) + STORE_HOME_DIR_FIELD_NUMBER; hash = (53 * hash) + getStoreHomeDir().hashCode(); if (hasRegionName()) { hash = (37 * hash) + REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getRegionName().hashCode();
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor.getDefaultInstance()) return this; if (other.hasTableName()) { setTableName(other.getTableName()); if (other.hasEncodedRegionName()) { setEncodedRegionName(other.getEncodedRegionName()); if (other.hasFamilyName()) { setFamilyName(other.getFamilyName()); if (other.hasStoreHomeDir()) { bitField0_ |= 0x00000020; storeHomeDir_ = other.storeHomeDir_; onChanged(); if (other.hasRegionName()) { setRegionName(other.getRegionName()); this.mergeUnknownFields(other.getUnknownFields()); return this;
if (CellUtil.matchingFamily(cell, WALEdit.METAFAMILY)) { CompactionDescriptor compaction = WALEdit.getCompaction(cell); if (compaction != null && compaction.hasRegionName()) { try { byte[][] regionName = HRegionInfo.parseRegionName(compaction.getRegionName() .toByteArray()); row = regionName[1]; // startKey of the region family = compaction.getFamilyName().toByteArray(); isCompactionEntry = true; } catch (Exception ex) {
throws IOException { try { checkTargetRegion(compaction.getEncodedRegionName().toByteArray(), "Compaction marker from WAL ", compaction); } catch (WrongRegionException wre) { Store store = this.getStore(compaction.getFamilyName().toByteArray()); if (store == null) { LOG.warn(getRegionInfo().getEncodedName() + " : " + "Found Compaction WAL edit for deleted family:" + Bytes.toString(compaction.getFamilyName().toByteArray())); return;
throws IOException { LOG.debug("Completing compaction from the WAL marker"); List<String> compactionInputs = compaction.getCompactionInputList(); List<String> compactionOutputs = Lists.newArrayList(compaction.getCompactionOutputList());
size += 1 * getCompactionInputList().size(); size += 1 * getCompactionOutputList().size(); .computeBytesSize(6, getStoreHomeDirBytes()); .computeBytesSize(7, regionName_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
size += 1 * getCompactionInputList().size(); size += 1 * getCompactionOutputList().size(); .computeBytesSize(6, getStoreHomeDirBytes()); .computeBytesSize(7, regionName_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
public org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor buildPartial() { org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor result = new org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { result = result && getTableName() .equals(other.getTableName()); result = result && (hasEncodedRegionName() == other.hasEncodedRegionName()); if (hasEncodedRegionName()) { result = result && getEncodedRegionName() .equals(other.getEncodedRegionName()); result = result && (hasFamilyName() == other.hasFamilyName()); if (hasFamilyName()) { result = result && getFamilyName() .equals(other.getFamilyName()); result = result && getCompactionInputList() .equals(other.getCompactionInputList()); result = result && getCompactionOutputList() .equals(other.getCompactionOutputList()); result = result && (hasStoreHomeDir() == other.hasStoreHomeDir()); if (hasStoreHomeDir()) { result = result && getStoreHomeDir() .equals(other.getStoreHomeDir()); result = result && (hasRegionName() == other.hasRegionName()); if (hasRegionName()) { result = result && getRegionName() .equals(other.getRegionName());
size += 1 * getCompactionInputList().size(); size += 1 * getCompactionOutputList().size(); .computeBytesSize(6, getStoreHomeDirBytes()); .computeBytesSize(7, regionName_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor.getDefaultInstance()) return this; if (other.hasTableName()) { setTableName(other.getTableName()); if (other.hasEncodedRegionName()) { setEncodedRegionName(other.getEncodedRegionName()); if (other.hasFamilyName()) { setFamilyName(other.getFamilyName()); if (other.hasStoreHomeDir()) { bitField0_ |= 0x00000020; storeHomeDir_ = other.storeHomeDir_; onChanged(); if (other.hasRegionName()) { setRegionName(other.getRegionName()); this.mergeUnknownFields(other.getUnknownFields()); return this;
public org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor buildPartial() { org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor result = new org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { result = result && getTableName() .equals(other.getTableName()); result = result && (hasEncodedRegionName() == other.hasEncodedRegionName()); if (hasEncodedRegionName()) { result = result && getEncodedRegionName() .equals(other.getEncodedRegionName()); result = result && (hasFamilyName() == other.hasFamilyName()); if (hasFamilyName()) { result = result && getFamilyName() .equals(other.getFamilyName()); result = result && getCompactionInputList() .equals(other.getCompactionInputList()); result = result && getCompactionOutputList() .equals(other.getCompactionOutputList()); result = result && (hasStoreHomeDir() == other.hasStoreHomeDir()); if (hasStoreHomeDir()) { result = result && getStoreHomeDir() .equals(other.getStoreHomeDir()); result = result && (hasRegionName() == other.hasRegionName()); if (hasRegionName()) { result = result && getRegionName() .equals(other.getRegionName());
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor.getDefaultInstance()) return this; if (other.hasTableName()) { setTableName(other.getTableName()); if (other.hasEncodedRegionName()) { setEncodedRegionName(other.getEncodedRegionName()); if (other.hasFamilyName()) { setFamilyName(other.getFamilyName()); if (other.hasStoreHomeDir()) { bitField0_ |= 0x00000020; storeHomeDir_ = other.storeHomeDir_; onChanged(); if (other.hasRegionName()) { setRegionName(other.getRegionName()); this.mergeUnknownFields(other.getUnknownFields()); return this;
public org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor buildPartial() { org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor result = new org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { result = result && getTableName() .equals(other.getTableName()); result = result && (hasEncodedRegionName() == other.hasEncodedRegionName()); if (hasEncodedRegionName()) { result = result && getEncodedRegionName() .equals(other.getEncodedRegionName()); result = result && (hasFamilyName() == other.hasFamilyName()); if (hasFamilyName()) { result = result && getFamilyName() .equals(other.getFamilyName()); result = result && getCompactionInputList() .equals(other.getCompactionInputList()); result = result && getCompactionOutputList() .equals(other.getCompactionOutputList()); result = result && (hasStoreHomeDir() == other.hasStoreHomeDir()); if (hasStoreHomeDir()) { result = result && getStoreHomeDir() .equals(other.getStoreHomeDir()); result = result && (hasRegionName() == other.hasRegionName()); if (hasRegionName()) { result = result && getRegionName() .equals(other.getRegionName());
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor.getDefaultInstance()) return this; if (other.hasTableName()) { setTableName(other.getTableName()); if (other.hasEncodedRegionName()) { setEncodedRegionName(other.getEncodedRegionName()); if (other.hasFamilyName()) { setFamilyName(other.getFamilyName()); if (other.hasStoreHomeDir()) { bitField0_ |= 0x00000020; storeHomeDir_ = other.storeHomeDir_; onChanged(); if (other.hasRegionName()) { setRegionName(other.getRegionName()); this.mergeUnknownFields(other.getUnknownFields()); return this;
hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableName()) { hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (hasEncodedRegionName()) { hash = (37 * hash) + ENCODED_REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getEncodedRegionName().hashCode(); if (hasFamilyName()) { hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFamilyName().hashCode(); if (getCompactionInputCount() > 0) { hash = (37 * hash) + COMPACTION_INPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionInputList().hashCode(); if (getCompactionOutputCount() > 0) { hash = (37 * hash) + COMPACTION_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionOutputList().hashCode(); if (hasStoreHomeDir()) { hash = (37 * hash) + STORE_HOME_DIR_FIELD_NUMBER; hash = (53 * hash) + getStoreHomeDir().hashCode(); if (hasRegionName()) { hash = (37 * hash) + REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getRegionName().hashCode();
hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableName()) { hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (hasEncodedRegionName()) { hash = (37 * hash) + ENCODED_REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getEncodedRegionName().hashCode(); if (hasFamilyName()) { hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFamilyName().hashCode(); if (getCompactionInputCount() > 0) { hash = (37 * hash) + COMPACTION_INPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionInputList().hashCode(); if (getCompactionOutputCount() > 0) { hash = (37 * hash) + COMPACTION_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionOutputList().hashCode(); if (hasStoreHomeDir()) { hash = (37 * hash) + STORE_HOME_DIR_FIELD_NUMBER; hash = (53 * hash) + getStoreHomeDir().hashCode(); if (hasRegionName()) { hash = (37 * hash) + REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getRegionName().hashCode();
hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableName()) { hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (hasEncodedRegionName()) { hash = (37 * hash) + ENCODED_REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getEncodedRegionName().hashCode(); if (hasFamilyName()) { hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFamilyName().hashCode(); if (getCompactionInputCount() > 0) { hash = (37 * hash) + COMPACTION_INPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionInputList().hashCode(); if (getCompactionOutputCount() > 0) { hash = (37 * hash) + COMPACTION_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getCompactionOutputList().hashCode(); if (hasStoreHomeDir()) { hash = (37 * hash) + STORE_HOME_DIR_FIELD_NUMBER; hash = (53 * hash) + getStoreHomeDir().hashCode(); if (hasRegionName()) { hash = (37 * hash) + REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getRegionName().hashCode();