AbstractDataBufferWindow
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পাবলিক পদ্ধতি
চূড়ান্ত বি | বাফার () এই উইন্ডোর ব্যাকিং বাফার ফেরত দেয়। |
চূড়ান্ত দীর্ঘ | অফসেট () আসল বাফারে এই উইন্ডোটির বর্তমান অফসেট প্রদান করে। |
চূড়ান্ত দীর্ঘ | আকার () এই বাফার উইন্ডোর আকার প্রদান করে। |
চূড়ান্ত ডেটাবাফার উইন্ডো <B> | স্লাইড (দীর্ঘ ধাপ) মূল বাফারে step উপাদানগুলির উইন্ডো সরানো হয়। |
চূড়ান্ত ডেটাবাফার উইন্ডো <B> | স্লাইডটু (দীর্ঘ সূচক) মূল বাফারে প্রদত্ত অবস্থানে উইন্ডোটি সরানো হয়। |
উত্তরাধিকারসূত্রে প্রাপ্ত পদ্ধতি
java.lang.Object ক্লাস থেকে বুলিয়ান | সমান (অবজেক্ট arg0) |
চূড়ান্ত ক্লাস<?> | getClass () |
int | হ্যাশকোড () |
চূড়ান্ত শূন্যতা | অবহিত করুন () |
চূড়ান্ত শূন্যতা | সকলকে অবহিত করুন () |
স্ট্রিং | toString () |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন (দীর্ঘ arg0, int arg1) |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন (দীর্ঘ arg0) |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন () |
পাবলিক পদ্ধতি
পাবলিক ফাইনাল বি বাফার ()
এই উইন্ডোর ব্যাকিং বাফার ফেরত দেয়।
প্রতিটি উইন্ডো ইন্সট্যান্সের নিজস্ব বাফার থাকে যা মূল DataBuffer
এ একটি ভিউ প্রদান করে। যখন উইন্ডোটি বিভিন্ন অফসেটে স্লাইড করে তখন বাফারগুলি পরিবর্তিত হয়৷ যেমন:
IntDataBuffer buffer = DataBuffers.of(0, 1, 2, 3);
DataBufferWindow<IntDataBuffer> window = buffer.window(0, 2);
IntDataBuffer windowBuffer = window.buffer();
assertEquals(0, windowBuffer.getInt(0));
assertEquals(1, windowBuffer.getInt(1));
window.slideTo(2);
assertEquals(2, windowBuffer.getInt(0));
assertEquals(3, windowBuffer.getInt(1));
assertSame(windowBuffer, window.buffer());
পাবলিক ফাইনাল লং অফসেট ()
আসল বাফারে এই উইন্ডোটির বর্তমান অফসেট প্রদান করে।
সর্বজনীন চূড়ান্ত দীর্ঘ আকার ()
এই বাফার উইন্ডোর আকার প্রদান করে।
সর্বজনীন চূড়ান্ত DataBufferWindow <B> স্লাইড (দীর্ঘ ধাপ)
মূল বাফারে step
উপাদানগুলির উইন্ডো সরানো হয়।
উইন্ডোর আকার একই থাকে এবং এর অফসেট offset() + step
সেট করা হয়। যদি step
ইতিবাচক হয়, তাহলে উইন্ডোটি সামনে স্লাইড করবে। এটি নেতিবাচক হলে, এটি পিছনে স্লাইড হবে.
পরামিতি
পদক্ষেপ | এই উইন্ডোর বর্তমান অফসেটে যোগ করার মান |
---|
সর্বজনীন চূড়ান্ত DataBufferWindow <B> slideTo (দীর্ঘ সূচক)
মূল বাফারে প্রদত্ত অবস্থানে উইন্ডোটি সরানো হয়।
উইন্ডোর আকার একই থাকে এবং এর অফসেট index
এ সেট করা হয়, যাতে index x
এ buffer()
এর মান অ্যাক্সেস করলে মূল বাফারে index + x
এর মান ফিরে আসবে।
পরামিতি
সূচক | এই উইন্ডোর জন্য নতুন অফসেট |
---|
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# AbstractDataBufferWindow\n\npublic abstract class **AbstractDataBufferWindow** \n\n### Public Methods\n\n|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| final B | [buffer](/jvm/api_docs/java/org/tensorflow/ndarray/impl/buffer/AbstractDataBufferWindow#buffer())() Returns the buffer backing this window. |\n| final long | [offset](/jvm/api_docs/java/org/tensorflow/ndarray/impl/buffer/AbstractDataBufferWindow#offset())() Returns the current offset of this window in the original buffer. |\n| final long | [size](/jvm/api_docs/java/org/tensorflow/ndarray/impl/buffer/AbstractDataBufferWindow#size())() Returns the size of this buffer window. |\n| final [DataBufferWindow](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow)\\\u003cB\\\u003e | [slide](/jvm/api_docs/java/org/tensorflow/ndarray/impl/buffer/AbstractDataBufferWindow#slide(long))(long step) Moves the window of `step` elements in the original buffer. |\n| final [DataBufferWindow](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow)\\\u003cB\\\u003e | [slideTo](/jvm/api_docs/java/org/tensorflow/ndarray/impl/buffer/AbstractDataBufferWindow#slideTo(long))(long index) Moves the window at the given position in the original buffer. |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface [org.tensorflow.ndarray.buffer.DataBufferWindow](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow) \n\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract B | [buffer](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow#buffer())() Returns the buffer backing this window. |\n| abstract long | [offset](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow#offset())() Returns the current offset of this window in the original buffer. |\n| abstract long | [size](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow#size())() Returns the size of this buffer window. |\n| abstract [DataBufferWindow](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow)\\\u003cB\\\u003e | [slide](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow#slide(long))(long step) Moves the window of `step` elements in the original buffer. |\n| abstract [DataBufferWindow](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow)\\\u003cB\\\u003e | [slideTo](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow#slideTo(long))(long index) Moves the window at the given position in the original buffer. |\n\nPublic Methods\n--------------\n\n#### public final B\n**buffer**\n()\n\nReturns the buffer backing this window.\n\nEach window instance has it's own buffer providing a view onto the original\n[DataBuffer](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBuffer). The buffers are mutated when the window slides to different offsets.\nFor example:\n\n IntDataBuffer buffer = DataBuffers.of(0, 1, 2, 3);\n DataBufferWindow\u003cIntDataBuffer\u003e window = buffer.window(0, 2);\n\n IntDataBuffer windowBuffer = window.buffer();\n assertEquals(0, windowBuffer.getInt(0));\n assertEquals(1, windowBuffer.getInt(1));\n\n window.slideTo(2);\n assertEquals(2, windowBuffer.getInt(0));\n assertEquals(3, windowBuffer.getInt(1));\n assertSame(windowBuffer, window.buffer());\n \n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n##### Returns\n\n- this window's buffer \n\n#### public final long\n**offset**\n()\n\nReturns the current offset of this window in the original buffer. \n\n#### public final long\n**size**\n()\n\nReturns the size of this buffer window. \n\n#### public final [DataBufferWindow](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow)\\\u003cB\\\u003e\n**slide**\n(long step)\n\nMoves the window of `step` elements in the original buffer.\n\nThe size of the window remains the same and its offset is set to `offset() + step`.\nIf `step` is positive, then the window will slide forward. If it is negative, it will\nslide backward.\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| step | value to add to the current offset of this window |\n|------|---------------------------------------------------|\n\n##### Returns\n\n- this instance \n\n#### public final [DataBufferWindow](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow)\\\u003cB\\\u003e\n**slideTo**\n(long index)\n\nMoves the window at the given position in the original buffer.\n\nThe size of the window remains the same and its offset is set to `index`, so that\naccessing the value of [buffer()](/jvm/api_docs/java/org/tensorflow/ndarray/buffer/DataBufferWindow#buffer()) at index `x` will return the value at\n`index + x` in the original buffer.\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| index | new offset for this window |\n|-------|----------------------------|\n\n##### Returns\n\n- this instance"]]