public class MemoryMappedMatrix extends Object
Modifier and Type | Field and Description |
---|---|
protected List<org.wikibrain.matrix.MemoryMappedMatrix.MappedBufferWrapper> |
buffers |
static Logger |
LOG |
static int |
PAGE_SIZE |
Constructor and Description |
---|
MemoryMappedMatrix(File path,
FileChannel channel,
IntBuffer rowIds,
LongBuffer rowOffsets) |
MemoryMappedMatrix(File path,
FileChannel channel,
gnu.trove.map.hash.TIntLongHashMap rowOffsets) |
public static final Logger LOG
public static final int PAGE_SIZE
protected List<org.wikibrain.matrix.MemoryMappedMatrix.MappedBufferWrapper> buffers
public MemoryMappedMatrix(File path, FileChannel channel, gnu.trove.map.hash.TIntLongHashMap rowOffsets) throws IOException
IOException
public MemoryMappedMatrix(File path, FileChannel channel, IntBuffer rowIds, LongBuffer rowOffsets) throws IOException
IOException
public void close() throws IOException
IOException
public ByteBuffer getRow(int rowId) throws IOException
IOException
public int[] getRowIdsInDiskOrder()
Copyright © 2015. All rights reserved.