public void deflate(Formatter f, DataBTree btree) throws IOException { int count = 0; long total = 0; DataBTree.DataChunkIterator iter = btree.getDataChunkIteratorFilter(null); while (iter.hasNext()) { DataBTree.DataChunk dc = iter.next(); total += dc.size; count++; } }
Array readHeapVlen(ByteBuffer bb, int pos, DataType dataType, int endian) throws IOException, InvalidRangeException { H5header.HeapIdentifier heapId = new HeapIdentifier(bb, pos); return getHeapDataArray(heapId, dataType, endian); }
Record3() throws IOException { hugeObjectAddress = h5.readOffset(); hugeObjectLength = h5.readLength(); } }
DataChunk(int ndim, boolean last) throws IOException { this.size = h5.raf.readInt(); this.filterMask = h5.raf.readInt(); offset = new int[ndim]; for (int i = 0; i < ndim; i++) { long loffset = h5.raf.readLong(); assert loffset < Integer.MAX_VALUE; offset[i] = (int) loffset; } this.filePos = last ? -1 : h5.readAddress(); // if (memTracker != null) memTracker.addByLen("Chunked Data (" + owner + ")", filePos, size); }
/** * Get the Fill Value, return default if one was not set. * * @return wrapped primitive (Byte, Short, Integer, Double, Float, Long), or null if none */ Object getFillValue() { return (fillValue == null) ? getFillValueDefault(typeInfo.dataType) : getFillValueNonDefault(); }
DataBTree(H5header h5, long rootNodeAddress, int[] varShape, int[] storageSize) throws IOException { this.h5 = h5; this.raf = h5.raf; this.rootNodeAddress = rootNodeAddress; this.tiling = new Tiling(varShape, storageSize); this.ndimStorage = storageSize.length; wantType = 1; }
boolean hasNext() { if (level == 0) { return currentEntry < nentries; } else { if (currentNode.hasNext()) return true; return currentEntry < nentries - 1; } }
public void deflate(Formatter f, DataBTree btree) throws IOException { int count = 0; long total = 0; DataBTree.DataChunkIterator iter = btree.getDataChunkIteratorFilter(null); while (iter.hasNext()) { DataBTree.DataChunk dc = iter.next(); total += dc.size; count++; } }
Record3() throws IOException { hugeObjectAddress = h5.readOffset(); hugeObjectLength = h5.readLength(); } }
Array readHeapVlen(ByteBuffer bb, int pos, DataType dataType, int endian) throws IOException, InvalidRangeException { H5header.HeapIdentifier heapId = new HeapIdentifier(bb, pos); return getHeapDataArray(heapId, dataType, endian); }
DataBTree(H5header h5, long rootNodeAddress, int[] varShape, int[] storageSize, MemTracker memTracker) throws IOException { this.h5 = h5; this.raf = h5.raf; this.rootNodeAddress = rootNodeAddress; this.tiling = new Tiling(varShape, storageSize); this.ndimStorage = storageSize.length; this.memTracker = memTracker; wantType = 1; }
boolean hasNext() { if (level == 0) { return currentEntry < nentries; } else { if (currentNode.hasNext()) return true; return currentEntry < nentries - 1; } }
public void deflate(Formatter f, DataBTree btree) throws IOException { int count = 0; long total = 0; DataBTree.DataChunkIterator iter = btree.getDataChunkIteratorFilter(null); while (iter.hasNext()) { DataBTree.DataChunk dc = iter.next(); total += dc.size; count++; } }
Record3() throws IOException { hugeObjectAddress = h5.readOffset(); hugeObjectLength = h5.readLength(); } }
Array readHeapVlen(ByteBuffer bb, int pos, DataType dataType, int endian) throws IOException, InvalidRangeException { H5header.HeapIdentifier heapId = new HeapIdentifier(bb, pos); return getHeapDataArray(heapId, dataType, endian); }
Record1() throws IOException { hugeObjectAddress = h5.readOffset(); hugeObjectLength = h5.readLength(); hugeObjectID = h5.readLength(); } }