vldpyatkov commented on code in PR #2083: URL: https://github.com/apache/ignite-3/pull/2083#discussion_r1198838595
########## modules/table/src/main/java/org/apache/ignite/internal/table/distributed/SortedIndexLocker.java: ########## @@ -83,26 +68,7 @@ public SortedIndexLocker(UUID indexId, int partId, LockManager lockManager, Sort this.storage = storage; this.indexRowResolver = indexRowResolver; - this.positiveInf = createInfiniteBoundary(partId, indexId); - } - - /** - * Creates a tuple for positive infinity boundary. - * - * @param partId Partition id. - * @param indexId Index id. - * @return Infinity binary tuple. - */ - private static BinaryTuple createInfiniteBoundary(int partId, UUID indexId) { - var binarySchema = BinaryTupleSchema.createSchema(INFINITY_TUPLE_SCHEMA, new int[]{ - INFINITY_TUPLE_SCHEMA.column("indexId").schemaIndex(), - INFINITY_TUPLE_SCHEMA.column("partId").schemaIndex() - }); - - return new BinaryTuple( - binarySchema, - new BinaryTupleBuilder(binarySchema.elementCount(), false).appendUuid(indexId).appendInt(partId).build() - ); + this.positiveInf = new Integer(partId); Review Comment: Replace to valueOf() -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org