use of io.dingodb.raft.entity.LocalFileMetaOutter.LocalFileMeta.Builder in project dingo by dingodb.
the class LocalSnapshotWriter method addFile.
@Override
public boolean addFile(final String fileName, final Message fileMeta) {
final Builder metaBuilder = LocalFileMeta.newBuilder();
if (fileMeta != null) {
metaBuilder.mergeFrom(fileMeta);
}
final LocalFileMeta meta = metaBuilder.build();
return this.metaTable.addFile(fileName, meta);
}
Aggregations