@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.proto.journal.File.AsyncPersistRequestEntry)) { return super.equals(obj); } alluxio.proto.journal.File.AsyncPersistRequestEntry other = (alluxio.proto.journal.File.AsyncPersistRequestEntry) obj; boolean result = true; result = result && (hasFileId() == other.hasFileId()); if (hasFileId()) { result = result && (getFileId() == other.getFileId()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>optional .alluxio.proto.journal.AsyncPersistRequestEntry async_persist_request = 16;</code> */ public Builder mergeAsyncPersistRequest(alluxio.proto.journal.File.AsyncPersistRequestEntry value) { if (asyncPersistRequestBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && asyncPersistRequest_ != null && asyncPersistRequest_ != alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance()) { asyncPersistRequest_ = alluxio.proto.journal.File.AsyncPersistRequestEntry.newBuilder(asyncPersistRequest_).mergeFrom(value).buildPartial(); } else { asyncPersistRequest_ = value; } onChanged(); } else { asyncPersistRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
alluxio.proto.journal.File.AsyncPersistRequestEntry.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = asyncPersistRequest_.toBuilder();
asyncPersistRequest_ = alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance(); } else { asyncPersistRequestBuilder_.clear();
unmountFromEntry(entry.getDeleteMountPoint()); } else if (entry.hasAsyncPersistRequest()) { long fileId = (entry.getAsyncPersistRequest()).getFileId(); try (LockedInodePath inodePath = mInodeTree .lockFullInodePath(fileId, InodeTree.LockMode.WRITE)) {
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
private void initFields() { sequenceNumber_ = 0L; addMountPoint_ = alluxio.proto.journal.File.AddMountPointEntry.getDefaultInstance(); asyncPersistRequest_ = alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance(); blockContainerIdGenerator_ = alluxio.proto.journal.Block.BlockContainerIdGeneratorEntry.getDefaultInstance(); blockInfo_ = alluxio.proto.journal.Block.BlockInfoEntry.getDefaultInstance(); completeFile_ = alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance(); completePartition_ = alluxio.proto.journal.KeyValue.CompletePartitionEntry.getDefaultInstance(); completeStore_ = alluxio.proto.journal.KeyValue.CompleteStoreEntry.getDefaultInstance(); createStore_ = alluxio.proto.journal.KeyValue.CreateStoreEntry.getDefaultInstance(); deleteBlock_ = alluxio.proto.journal.Block.DeleteBlockEntry.getDefaultInstance(); deleteFile_ = alluxio.proto.journal.File.DeleteFileEntry.getDefaultInstance(); deleteLineage_ = alluxio.proto.journal.Lineage.DeleteLineageEntry.getDefaultInstance(); deleteMountPoint_ = alluxio.proto.journal.File.DeleteMountPointEntry.getDefaultInstance(); deleteStore_ = alluxio.proto.journal.KeyValue.DeleteStoreEntry.getDefaultInstance(); inodeDirectory_ = alluxio.proto.journal.File.InodeDirectoryEntry.getDefaultInstance(); inodeDirectoryIdGenerator_ = alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.getDefaultInstance(); inodeFile_ = alluxio.proto.journal.File.InodeFileEntry.getDefaultInstance(); inodeLastModificationTime_ = alluxio.proto.journal.File.InodeLastModificationTimeEntry.getDefaultInstance(); lineage_ = alluxio.proto.journal.Lineage.LineageEntry.getDefaultInstance(); lineageIdGenerator_ = alluxio.proto.journal.Lineage.LineageIdGeneratorEntry.getDefaultInstance(); mergeStore_ = alluxio.proto.journal.KeyValue.MergeStoreEntry.getDefaultInstance(); persistDirectory_ = alluxio.proto.journal.File.PersistDirectoryEntry.getDefaultInstance(); reinitializeFile_ = alluxio.proto.journal.File.ReinitializeFileEntry.getDefaultInstance(); rename_ = alluxio.proto.journal.File.RenameEntry.getDefaultInstance(); renameStore_ = alluxio.proto.journal.KeyValue.RenameStoreEntry.getDefaultInstance(); setAttribute_ = alluxio.proto.journal.File.SetAttributeEntry.getDefaultInstance(); updateUfsMode_ = alluxio.proto.journal.File.UpdateUfsModeEntry.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
/** * <code>optional .alluxio.proto.journal.AsyncPersistRequestEntry async_persist_request = 16;</code> */ public Builder mergeAsyncPersistRequest(alluxio.proto.journal.File.AsyncPersistRequestEntry value) { if (asyncPersistRequestBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && asyncPersistRequest_ != alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance()) { asyncPersistRequest_ = alluxio.proto.journal.File.AsyncPersistRequestEntry.newBuilder(asyncPersistRequest_).mergeFrom(value).buildPartial(); } else { asyncPersistRequest_ = value; } onChanged(); } else { asyncPersistRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
/** * Schedules a file for async persistence. * <p> * Writes to the journal. * * @param rpcContext the rpc context * @param inodePath the {@link LockedInodePath} of the file for persistence */ private void scheduleAsyncPersistenceAndJournal(RpcContext rpcContext, LockedInodePath inodePath) throws AlluxioException { long fileId = inodePath.getInode().getId(); scheduleAsyncPersistenceInternal(inodePath); // write to journal AsyncPersistRequestEntry asyncPersistRequestEntry = AsyncPersistRequestEntry.newBuilder().setFileId(fileId).build(); rpcContext.journal( JournalEntry.newBuilder().setAsyncPersistRequest(asyncPersistRequestEntry).build()); }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(alluxio.proto.journal.File.AsyncPersistRequestEntry prototype) {
public alluxio.proto.journal.File.AsyncPersistRequestEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance(); }
/** * <code>optional .alluxio.proto.journal.AsyncPersistRequestEntry async_persist_request = 16;</code> */ public Builder clearAsyncPersistRequest() { if (asyncPersistRequestBuilder_ == null) { asyncPersistRequest_ = alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance(); onChanged(); } else { asyncPersistRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
public static Builder newBuilder(alluxio.proto.journal.File.AsyncPersistRequestEntry prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public alluxio.proto.journal.File.AsyncPersistRequestEntry buildPartial() { alluxio.proto.journal.File.AsyncPersistRequestEntry result = new alluxio.proto.journal.File.AsyncPersistRequestEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fileId_ = fileId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(alluxio.proto.journal.File.AsyncPersistRequestEntry other) { if (other == alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance()) return this; if (other.hasFileId()) { setFileId(other.getFileId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public alluxio.proto.journal.File.AsyncPersistRequestEntry build() { alluxio.proto.journal.File.AsyncPersistRequestEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
alluxio.proto.journal.File.AsyncPersistRequestEntry.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = asyncPersistRequest_.toBuilder();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFileId()) { hash = (37 * hash) + FILE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFileId()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }