Class PlatformAbstractMemory
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.memory.PlatformAbstractMemory
-
- All Implemented Interfaces:
AutoCloseable,PlatformMemory
- Direct Known Subclasses:
PlatformExternalMemory,PlatformPooledMemory,PlatformUnpooledMemory
public abstract class PlatformAbstractMemory extends Object implements PlatformMemory
Interop memory chunk abstraction.
-
-
Field Summary
Fields Modifier and Type Field Description protected longmemPtrCross-platform memory pointer.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlatformAbstractMemory(long memPtr)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcapacity()Gets capacity.longdata()Gets data pointer.PlatformInputStreaminput()Gets input stream.intlength()Gets length.PlatformOutputStreamoutput()Gets output stream.longpointer()Gets pointer which can be passed between platforms.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.platform.memory.PlatformMemory
close, reallocate
-
-
-
-
Method Detail
-
input
public PlatformInputStream input()
Gets input stream.- Specified by:
inputin interfacePlatformMemory- Returns:
- Input stream.
-
output
public PlatformOutputStream output()
Gets output stream.- Specified by:
outputin interfacePlatformMemory- Returns:
- Output stream.
-
pointer
public long pointer()
Gets pointer which can be passed between platforms.- Specified by:
pointerin interfacePlatformMemory- Returns:
- Pointer.
-
data
public long data()
Gets data pointer.- Specified by:
datain interfacePlatformMemory- Returns:
- Data pointer.
-
capacity
public int capacity()
Gets capacity.- Specified by:
capacityin interfacePlatformMemory- Returns:
- Capacity.
-
length
public int length()
Gets length.- Specified by:
lengthin interfacePlatformMemory- Returns:
- Length.
-
-