- Common ways to obtain WALProtos$WALKey
private void myMethod () {WALProtos$WALKey w =
Object object;(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey) object
WALProtos.WALKey$Builder wALProtosWALKey$Builder;new org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey(wALProtosWALKey$Builder)
WALProtos.WALKey$Builder wALProtosWALKey$Builder;wALProtosWALKey$Builder.build()
- Smart code suggestions by Codota
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey other) { if (other == org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.getDefaultInstance()) return this; if (other.hasEncodedRegionName()) { setEncodedRegionName(other.getEncodedRegionName()); if (other.hasTableName()) { setTableName(other.getTableName()); if (other.hasLogSequenceNumber()) { setLogSequenceNumber(other.getLogSequenceNumber()); if (other.hasWriteTime()) { setWriteTime(other.getWriteTime()); if (other.hasClusterId()) { mergeClusterId(other.getClusterId()); if (other.hasFollowingKvCount()) { setFollowingKvCount(other.getFollowingKvCount()); if (other.hasNonceGroup()) { setNonceGroup(other.getNonceGroup()); if (other.hasNonce()) { setNonce(other.getNonce()); if (other.hasOrigSequenceNumber()) { setOrigSequenceNumber(other.getOrigSequenceNumber()); this.mergeUnknownFields(other.getUnknownFields());
public org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey buildPartial() { org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey result = new org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && getKeyValueBytesList() .equals(other.getKeyValueBytesList()); result = result && (hasAssociatedCellCount() == other.hasAssociatedCellCount()); if (hasAssociatedCellCount()) { result = result && (getAssociatedCellCount() == other.getAssociatedCellCount()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>required bytes table_name = 2;</code> */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000002); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; }
/** * <code>required bytes table_name = 2;</code> */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000002); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && getKeyValueBytesList() .equals(other.getKeyValueBytesList()); result = result && (hasAssociatedCellCount() == other.hasAssociatedCellCount()); if (hasAssociatedCellCount()) { result = result && (getAssociatedCellCount() == other.getAssociatedCellCount()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && getKeyValueBytesList() .equals(other.getKeyValueBytesList()); result = result && (hasAssociatedCellCount() == other.hasAssociatedCellCount()); if (hasAssociatedCellCount()) { result = result && (getAssociatedCellCount() == other.getAssociatedCellCount()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && getKeyValueBytesList() .equals(other.getKeyValueBytesList()); result = result && (hasAssociatedCellCount() == other.hasAssociatedCellCount()); if (hasAssociatedCellCount()) { result = result && (getAssociatedCellCount() == other.getAssociatedCellCount()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@Override public void postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx, List<AdminProtos.WALEntry> entries, CellScanner cells) throws IOException { for (AdminProtos.WALEntry entry : entries) { LOG.debug("Update LastReplicateTimeObserver for Table {}:{} for region {}", entry.getKey().getTableName().toStringUtf8(), entry.getKey().getWriteTime(), entry.getKey().getEncodedRegionName().toStringUtf8()); hBase12CDH570TableUpdater.updateTime(entry.getKey().getEncodedRegionName().toStringUtf8(), entry.getKey().getWriteTime()); } } }
if (!hasEncodedRegionName()) { memoizedIsInitialized = 0; return false; if (!hasTableName()) { memoizedIsInitialized = 0; return false; if (!hasLogSequenceNumber()) { memoizedIsInitialized = 0; return false; if (!hasWriteTime()) { memoizedIsInitialized = 0; return false; if (hasClusterId()) { if (!getClusterId().isInitialized()) { memoizedIsInitialized = 0; return false; for (int i = 0; i < getScopesCount(); i++) { if (!getScopes(i).isInitialized()) { memoizedIsInitialized = 0; return false; for (int i = 0; i < getClusterIdsCount(); i++) { if (!getClusterIds(i).isInitialized()) { memoizedIsInitialized = 0;
if (!hasEncodedRegionName()) { memoizedIsInitialized = 0; return false; if (!hasTableName()) { memoizedIsInitialized = 0; return false; if (!hasLogSequenceNumber()) { memoizedIsInitialized = 0; return false; if (!hasWriteTime()) { memoizedIsInitialized = 0; return false; if (hasClusterId()) { if (!getClusterId().isInitialized()) { memoizedIsInitialized = 0; return false; for (int i = 0; i < getScopesCount(); i++) { if (!getScopes(i).isInitialized()) { memoizedIsInitialized = 0; return false; for (int i = 0; i < getClusterIdsCount(); i++) { if (!getClusterIds(i).isInitialized()) { memoizedIsInitialized = 0;
TableName tableName = TableName.valueOf(walEntry.getKey().getTableName().toByteArray()); if (tableName == null) { continue;
if (this.compressionContext != null) { this.encodedRegionName = uncompressor.uncompress( walKey.getEncodedRegionName(), compressionContext.regionDict); byte[] tablenameBytes = uncompressor.uncompress( walKey.getTableName(), compressionContext.tableDict); this.tablename = TableName.valueOf(tablenameBytes); } else { this.encodedRegionName = walKey.getEncodedRegionName().toByteArray(); this.tablename = TableName.valueOf(walKey.getTableName().toByteArray()); if (walKey.hasClusterId()) { clusterIds.add(new UUID(walKey.getClusterId().getMostSigBits(), walKey.getClusterId() .getLeastSigBits())); for (HBaseProtos.UUID clusterId : walKey.getClusterIdsList()) { clusterIds.add(new UUID(clusterId.getMostSigBits(), clusterId.getLeastSigBits())); if (walKey.hasNonceGroup()) { this.nonceGroup = walKey.getNonceGroup(); if (walKey.hasNonce()) { this.nonce = walKey.getNonce(); if (walKey.getScopesCount() > 0) { this.scopes = new TreeMap<byte[], Integer>(Bytes.BYTES_COMPARATOR); for (FamilyScope scope : walKey.getScopesList()) { byte[] family = (compressionContext == null) ? scope.getFamily().toByteArray() : uncompressor.uncompress(scope.getFamily(), compressionContext.familyDict);
hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEncodedRegionName()) { hash = (37 * hash) + ENCODED_REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getEncodedRegionName().hashCode(); if (hasTableName()) { hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (hasLogSequenceNumber()) { hash = (37 * hash) + LOG_SEQUENCE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getLogSequenceNumber()); if (hasWriteTime()) { hash = (37 * hash) + WRITE_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getWriteTime()); if (hasClusterId()) { hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); if (getScopesCount() > 0) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + getScopesList().hashCode(); if (hasFollowingKvCount()) { hash = (37 * hash) + FOLLOWING_KV_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFollowingKvCount();
@Override public void postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx, List<AdminProtos.WALEntry> entries, CellScanner cells) throws IOException { for (AdminProtos.WALEntry entry : entries) { LOG.debug("Update LastReplicateTimeObserver for Table {}:{} for region {}", entry.getKey().getTableName().toStringUtf8(), entry.getKey().getWriteTime(), entry.getKey().getEncodedRegionName().toStringUtf8()); hBase10CDH550TableUpdater.updateTime(entry.getKey().getEncodedRegionName().toStringUtf8(), entry.getKey().getWriteTime()); } } }
hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEncodedRegionName()) { hash = (37 * hash) + ENCODED_REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getEncodedRegionName().hashCode(); if (hasTableName()) { hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (hasLogSequenceNumber()) { hash = (37 * hash) + LOG_SEQUENCE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getLogSequenceNumber()); if (hasWriteTime()) { hash = (37 * hash) + WRITE_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getWriteTime()); if (hasClusterId()) { hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); if (getScopesCount() > 0) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + getScopesList().hashCode(); if (hasFollowingKvCount()) { hash = (37 * hash) + FOLLOWING_KV_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFollowingKvCount();
@Override public void postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx, List<AdminProtos.WALEntry> entries, CellScanner cells) throws IOException { for (AdminProtos.WALEntry entry : entries) { LOG.debug("Update LastReplicateTimeObserver for Table {}:{} for region {}", entry.getKey().getTableName().toStringUtf8(), entry.getKey().getWriteTime(), entry.getKey().getEncodedRegionName().toStringUtf8()); hBase10TableUpdater.updateTime(entry.getKey().getEncodedRegionName().toStringUtf8(), entry.getKey().getWriteTime()); } } }
hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEncodedRegionName()) { hash = (37 * hash) + ENCODED_REGION_NAME_FIELD_NUMBER; hash = (53 * hash) + getEncodedRegionName().hashCode(); if (hasTableName()) { hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); if (hasLogSequenceNumber()) { hash = (37 * hash) + LOG_SEQUENCE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getLogSequenceNumber()); if (hasWriteTime()) { hash = (37 * hash) + WRITE_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getWriteTime()); if (hasClusterId()) { hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); if (getScopesCount() > 0) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + getScopesList().hashCode(); if (hasFollowingKvCount()) { hash = (37 * hash) + FOLLOWING_KV_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFollowingKvCount();
/** * <code>required bytes encoded_region_name = 1;</code> */ public Builder clearEncodedRegionName() { bitField0_ = (bitField0_ & ~0x00000001); encodedRegionName_ = getDefaultInstance().getEncodedRegionName(); onChanged(); return this; }
TableName tableName = (entry.getKey().getWriteTime() < subscriptionTimestamp) ? null : TableName.valueOf(entry.getKey().getTableName().toByteArray()); Multimap<ByteBuffer, KeyValue> keyValuesPerRowKey = ArrayListMultimap.create(); final Map<ByteBuffer, byte[]> payloadPerRowKey = Maps.newHashMap(); payloadPerRowKey.get(rowKeyBuffer)); eventExecutor.scheduleSepEvent(sepEvent); lastProcessedTimestamp = Math.max(lastProcessedTimestamp, entry.getKey().getWriteTime());