/** * <code>optional .alluxio.proto.journal.PersistDirectoryEntry persist_directory = 15;</code> */ public Builder mergePersistDirectory(alluxio.proto.journal.File.PersistDirectoryEntry value) { if (persistDirectoryBuilder_ == null) { if (((bitField0_ & 0x00010000) == 0x00010000) && persistDirectory_ != null && persistDirectory_ != alluxio.proto.journal.File.PersistDirectoryEntry.getDefaultInstance()) { persistDirectory_ = alluxio.proto.journal.File.PersistDirectoryEntry.newBuilder(persistDirectory_).mergeFrom(value).buildPartial(); } else { persistDirectory_ = value; } onChanged(); } else { persistDirectoryBuilder_.mergeFrom(value); } bitField0_ |= 0x00010000; return this; } /**
File.PersistDirectoryEntry.newBuilder().setId(dir.getId()).build(); rpcContext.journal( Journal.JournalEntry.newBuilder().setPersistDirectory(persistDirectory).build());
/** * <code>optional .alluxio.proto.journal.PersistDirectoryEntry persist_directory = 15;</code> */ public Builder mergePersistDirectory(alluxio.proto.journal.File.PersistDirectoryEntry value) { if (persistDirectoryBuilder_ == null) { if (((bitField0_ & 0x00200000) == 0x00200000) && persistDirectory_ != alluxio.proto.journal.File.PersistDirectoryEntry.getDefaultInstance()) { persistDirectory_ = alluxio.proto.journal.File.PersistDirectoryEntry.newBuilder(persistDirectory_).mergeFrom(value).buildPartial(); } else { persistDirectory_ = value; } onChanged(); } else { persistDirectoryBuilder_.mergeFrom(value); } bitField0_ |= 0x00200000; return this; } /**
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(alluxio.proto.journal.File.PersistDirectoryEntry prototype) {
/** * Journals the list of persisted inodes returned from * {@link #propagatePersistedInternal(LockedInodePath, boolean)}. This does not flush the journal. * * @param persistedInodes the list of persisted inodes to journal * @param journalContext the journal context */ private void journalPersistedInodes(List<Inode<?>> persistedInodes, JournalContext journalContext) { for (Inode<?> inode : persistedInodes) { PersistDirectoryEntry persistDirectory = PersistDirectoryEntry.newBuilder().setId(inode.getId()).build(); journalContext .append(JournalEntry.newBuilder().setPersistDirectory(persistDirectory).build()); } }
public static Builder newBuilder(alluxio.proto.journal.File.PersistDirectoryEntry prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {