Uses of Interface
org.apache.datasketches.memory.Memory

  • Uses of Memory in org.apache.datasketches.memory

    Modifier and Type
    Interface
    Description
    interface 
    Defines the writable API for offset access to a resource.
    Methods in org.apache.datasketches.memory that return Memory
    Modifier and Type
    Method
    Description
    default Memory
    Buffer.asMemory()
    Convert this Buffer to a Memory.
    Buffer.asMemory(ByteOrder byteOrder)
    Convert this Buffer to a Memory with the given byte order.
    static Memory
    Memory.map(File file)
    Maps the given file into Memory for read operations Calling this method is equivalent to calling map(file, 0, file.length(), scope, ByteOrder.nativeOrder()).
    static Memory
    Memory.map(File file, long fileOffsetBytes, long capacityBytes, ByteOrder byteOrder)
    Maps the specified portion of the given file into Memory for read operations.
    static Memory
    Memory.map(File file, long fileOffsetBytes, long capacityBytes, ResourceScope scope, ByteOrder byteOrder)
    Maps the specified portion of the given file into Memory for read operations with a ResourceScope.
    default Memory
    Memory.region(long offsetBytes, long capacityBytes)
    A region is a read-only view of this object.
    Memory.region(long offsetBytes, long capacityBytes, ByteOrder byteOrder)
    A region is a read-only view of this object.
    static Memory
    Memory.wrap(byte[] array)
    Wraps the given primitive array for read operations assuming native byte order.
    static Memory
    Memory.wrap(byte[] array, int offsetBytes, int lengthBytes, ByteOrder byteOrder)
    Wraps the given primitive array for read operations with the given byte order.
    static Memory
    Memory.wrap(byte[] array, ByteOrder byteOrder)
    Wraps the given primitive array for read operations with the given byte order.
    static Memory
    Memory.wrap(char[] array)
    Wraps the given primitive array for read operations assuming native byte order.
    static Memory
    Memory.wrap(double[] array)
    Wraps the given primitive array for read operations assuming native byte order.
    static Memory
    Memory.wrap(float[] array)
    Wraps the given primitive array for read operations assuming native byte order.
    static Memory
    Memory.wrap(int[] array)
    Wraps the given primitive array for read operations assuming native byte order.
    static Memory
    Memory.wrap(long[] array)
    Wraps the given primitive array for read operations assuming native byte order.
    static Memory
    Memory.wrap(short[] array)
    Wraps the given primitive array for read operations assuming native byte order.
    static Memory
    Memory.wrap(ByteBuffer byteBuffer)
    Provides a view of the given ByteBuffer for read-only operations.
    static Memory
    Memory.wrap(ByteBuffer byteBuffer, ByteOrder byteOrder)
    Provides a view of the given ByteBuffer for read-only operations.
    Methods in org.apache.datasketches.memory with parameters of type Memory
    Modifier and Type
    Method
    Description
    int
    Memory.compareTo(long thisOffsetBytes, long thisLengthBytes, Memory that, long thatOffsetBytes, long thatLengthBytes)
    Compares the bytes of this Memory to that Memory.
    static long[]
    MurmurHash3.hash(Memory mem, long offsetBytes, long lengthBytes, long seed, long[] hashOut)
    Returns a 128-bit hash of the input as a long array of size 2.