Skip to content

Commit 476b777

Browse files
committed
address comment
1 parent 7169be6 commit 476b777

File tree

1 file changed

+5
-5
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/hadoop-yarn-server-timelineservice-hbase-client/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/reader

1 file changed

+5
-5
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/hadoop-yarn-server-timelineservice-hbase-client/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/reader/EntityTypeReader.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ private static byte[] getNextRowKey(byte[] currRowKeyPrefix,
158158
private ResultScanner getResult(Configuration hbaseConf, Connection conn,
159159
FilterList filterList, byte[] startPrefix, byte[] endPrefix)
160160
throws IOException {
161-
Scan scan = new Scan();
162-
scan.withStartRow(startPrefix);
163-
scan.withStopRow(endPrefix);
164-
scan.setFilter(filterList);
165-
scan.setSmall(true);
161+
Scan scan = new Scan()
162+
.withStartRow(startPrefix)
163+
.withStopRow(endPrefix)
164+
.setFilter(filterList)
165+
.setSmall(true);
166166
return ENTITY_TABLE.getResultScanner(hbaseConf, conn, scan);
167167
}
168168

0 commit comments

Comments
 (0)