src/main/java/org/opensearch/knn/index/memory/NativeMemoryAllocation.java [142:158]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        @Override
        public boolean isClosed() {
            return closed;
        }

        @Override
        public long getMemoryAddress() {
            return memoryAddress;
        }

        /**
         * The read lock will be obtained in the
         * {@link org.opensearch.knn.index.KNNWeight#scorer(LeafReaderContext context) scorer} when a native index needs
         * to be queried.
         */
        @Override
        public void readLock() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/opensearch/knn/index/memory/NativeMemoryAllocation.java [281:296]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        @Override
        public boolean isClosed() {
            return closed;
        }

        @Override
        public long getMemoryAddress() {
            return memoryAddress;
        }

        /**
         * A read lock will be obtained when a training job needs access to the TrainingDataAllocation.
         * In the future, we may want to switch to tryAcquire functionality.
         */
        @Override
        public void readLock() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



