Search in sources :

Example 1 with Builder

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);
}
Also used : Builder(io.dingodb.raft.entity.LocalFileMetaOutter.LocalFileMeta.Builder) LocalFileMeta(io.dingodb.raft.entity.LocalFileMetaOutter.LocalFileMeta)

Aggregations

LocalFileMeta (io.dingodb.raft.entity.LocalFileMetaOutter.LocalFileMeta)1 Builder (io.dingodb.raft.entity.LocalFileMetaOutter.LocalFileMeta.Builder)1