Skip to content

Commit

Permalink
Rename pair proto entry
Browse files Browse the repository at this point in the history
  • Loading branch information
gpang committed Apr 19, 2016
1 parent 5c24bc6 commit 3215e1b
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 169 deletions.
Expand Up @@ -70,7 +70,7 @@ public MountOptions(File.AddMountPointEntry options) {
if (options.hasReadOnly()) { if (options.hasReadOnly()) {
mReadOnly = options.getReadOnly(); mReadOnly = options.getReadOnly();
} }
for (File.EntryStringString entry : options.getPropertiesList()) { for (File.StringPairEntry entry : options.getPropertiesList()) {
mProperties.put(entry.getKey(), entry.getValue()); mProperties.put(entry.getKey(), entry.getValue());
} }
} }
Expand Down Expand Up @@ -102,12 +102,12 @@ public Map<String, String> getProperties() {
} }


/** /**
* @return the properties map as a list of {@link alluxio.proto.journal.File.EntryStringString} * @return the properties map as a list of {@link alluxio.proto.journal.File.StringPairEntry}
*/ */
public List<File.EntryStringString> getPropertiesForProto() { public List<File.StringPairEntry> getPropertiesForProto() {
List<File.EntryStringString> entries = new ArrayList<>(mProperties.size()); List<File.StringPairEntry> entries = new ArrayList<>(mProperties.size());
for (Map.Entry<String, String> entry : mProperties.entrySet()) { for (Map.Entry<String, String> entry : mProperties.entrySet()) {
entries.add(File.EntryStringString.newBuilder() entries.add(File.StringPairEntry.newBuilder()
.setKey(entry.getKey()) .setKey(entry.getKey())
.setValue(entry.getValue()) .setValue(entry.getValue())
.build()); .build());
Expand Down

0 comments on commit 3215e1b

Please sign in to comment.