size += 1 * getBlockIdsList().size();
result = result && getBlockIdsList() .equals(other.getBlockIdsList()); result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasLength() == other.hasLength()); if (hasLength()) { result = result && (getLength() == other.getLength()); result = result && (hasOpTimeMs() == other.hasOpTimeMs()); if (hasOpTimeMs()) { result = result && (getOpTimeMs() == other.getOpTimeMs()); result = result && (hasUfsFingerprint() == other.hasUfsFingerprint()); if (hasUfsFingerprint()) { result = result && getUfsFingerprint() .equals(other.getUfsFingerprint());
/** * <code>optional .alluxio.proto.journal.CompleteFileEntry complete_file = 5;</code> */ public Builder mergeCompleteFile(alluxio.proto.journal.File.CompleteFileEntry value) { if (completeFileBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && completeFile_ != null && completeFile_ != alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance()) { completeFile_ = alluxio.proto.journal.File.CompleteFileEntry.newBuilder(completeFile_).mergeFrom(value).buildPartial(); } else { completeFile_ = value; } onChanged(); } else { completeFileBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /**
completeFile_ = alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance(); } else { completeFileBuilder_.clear();
ufsFingerprint, false); CompleteFileEntry completeFileEntry = CompleteFileEntry.newBuilder().addAllBlockIds(fileInode.getBlockIds()).setId(inode.getId()) .setLength(length).setOpTimeMs(options.getOperationTimeMs()) .setUfsFingerprint(ufsFingerprint).build();
size += 1 * getBlockIdsList().size(); .computeBytesSize(5, getUfsFingerprintBytes()); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
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;
public alluxio.proto.journal.File.CompleteFileEntry buildPartial() { alluxio.proto.journal.File.CompleteFileEntry result = new alluxio.proto.journal.File.CompleteFileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { blockIds_ = java.util.Collections.unmodifiableList(blockIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.blockIds_ = blockIds_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.length_ = length_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.opTimeMs_ = opTimeMs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.ufsFingerprint_ = ufsFingerprint_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(alluxio.proto.journal.File.CompleteFileEntry other) { if (other == alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance()) return this; if (!other.blockIds_.isEmpty()) { if (blockIds_.isEmpty()) { blockIds_ = other.blockIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlockIdsIsMutable(); blockIds_.addAll(other.blockIds_); } onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } if (other.hasUfsFingerprint()) { bitField0_ |= 0x00000010; ufsFingerprint_ = other.ufsFingerprint_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .alluxio.proto.journal.CompleteFileEntry complete_file = 5;</code> */ public Builder mergeCompleteFile(alluxio.proto.journal.File.CompleteFileEntry value) { if (completeFileBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && completeFile_ != alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance()) { completeFile_ = alluxio.proto.journal.File.CompleteFileEntry.newBuilder(completeFile_).mergeFrom(value).buildPartial(); } else { completeFile_ = value; } onChanged(); } else { completeFileBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /**
public Builder toBuilder() { return newBuilder(this); }
/** * <code>optional .alluxio.proto.journal.CompleteFileEntry complete_file = 5;</code> */ public Builder clearCompleteFile() { if (completeFileBuilder_ == null) { completeFile_ = alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance(); onChanged(); } else { completeFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /**
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(alluxio.proto.journal.File.CompleteFileEntry prototype) {
public static Builder newBuilder(alluxio.proto.journal.File.CompleteFileEntry prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public alluxio.proto.journal.File.CompleteFileEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance(); }
/** * @param entry the entry to use * @throws InvalidPathException if an invalid path is encountered * @throws InvalidFileSizeException if an invalid file size is encountered * @throws FileAlreadyCompletedException if the file has already been completed */ private void completeFileFromEntry(CompleteFileEntry entry) throws InvalidPathException, InvalidFileSizeException, FileAlreadyCompletedException, UnavailableException { try (LockedInodePath inodePath = mInodeTree .lockFullInodePath(entry.getId(), InodeTree.LockMode.WRITE)) { completeFileInternal(entry.getBlockIdsList(), inodePath, entry.getLength(), entry.getOpTimeMs(), entry.getUfsFingerprint(), true); } catch (FileDoesNotExistException e) { throw new RuntimeException(e); } }
/** * <code>optional string ufs_fingerprint = 5;</code> */ public Builder clearUfsFingerprint() { bitField0_ = (bitField0_ & ~0x00000010); ufsFingerprint_ = getDefaultInstance().getUfsFingerprint(); onChanged(); return this; } /**
public alluxio.proto.journal.File.CompleteFileEntry buildPartial() { alluxio.proto.journal.File.CompleteFileEntry result = new alluxio.proto.journal.File.CompleteFileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { blockIds_ = java.util.Collections.unmodifiableList(blockIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.blockIds_ = blockIds_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.length_ = length_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.opTimeMs_ = opTimeMs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.ufsFingerprint_ = ufsFingerprint_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
hash = (19 * hash) + getDescriptor().hashCode(); if (getBlockIdsCount() > 0) { hash = (37 * hash) + BLOCK_IDS_FIELD_NUMBER; hash = (53 * hash) + getBlockIdsList().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasLength()) { hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLength()); if (hasOpTimeMs()) { hash = (37 * hash) + OP_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOpTimeMs()); if (hasUfsFingerprint()) { hash = (37 * hash) + UFS_FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getUfsFingerprint().hashCode();
public Builder mergeFrom(alluxio.proto.journal.File.CompleteFileEntry other) { if (other == alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance()) return this; if (!other.blockIds_.isEmpty()) { if (blockIds_.isEmpty()) { blockIds_ = other.blockIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlockIdsIsMutable(); blockIds_.addAll(other.blockIds_); } onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } if (other.hasUfsFingerprint()) { bitField0_ |= 0x00000010; ufsFingerprint_ = other.ufsFingerprint_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }