/** * Get a data object's name, using the objectId you get from a reference (aka hard link). * * @param objId address of the data object * @return String the data object's name, or null if not found * @throws IOException on read error */ String getDataObjectName(long objId) throws IOException { H5header.DataObject dobj = getDataObject(objId, null); if (dobj == null) { log.error("H5iosp.readVlenData cant find dataObject id= " + objId); return null; } else { if (debugVlen) System.out.println(" Referenced object= " + dobj.who); return dobj.who; } }
/** * Get a data object's name, using the objectId you get from a reference (aka hard link). * * @param objId address of the data object * @return String the data object's name, or null if not found * @throws IOException on read error */ String getDataObjectName(long objId) throws IOException { H5header.DataObject dobj = getDataObject(objId, null); if (dobj == null) { log.error("H5iosp.readVlenData cant find dataObject id= " + objId); return null; } else { if (debugVlen) System.out.println(" Referenced object= " + dobj.who); return dobj.who; } }
/** * Get a data object's name, using the objectId you get from a reference (aka hard link). * * @param objId address of the data object * @return String the data object's name, or null if not found * @throws IOException on read error */ String getDataObjectName(long objId) throws IOException { H5header.DataObject dobj = getDataObject(objId, null); if (dobj == null) { log.error("H5iosp.readVlenData cant find dataObject id= {}", objId); return null; } else { if (debugVlen) { log.debug(" Referenced object= {}", dobj.who); } return dobj.who; } }
private DataObject getSharedDataObject(MessageType mtype) throws IOException { byte sharedVersion = raf.readByte(); byte sharedType = raf.readByte(); if (sharedVersion == 1) raf.skipBytes(6); if ((sharedVersion == 3) && (sharedType == 1)) { long heapId = raf.readLong(); if (debug1) debugOut.println(" Shared Message " + sharedVersion + " type=" + sharedType + " heapId = " + heapId); if (debugPos) debugOut.println(" --> Shared Message reposition to =" + raf.getFilePointer()); // dunno where is the file's shared object header heap ?? throw new UnsupportedOperationException("****SHARED MESSAGE type = " + mtype + " heapId = " + heapId); } else { long address = readOffset(); if (debug1) debugOut.println(" Shared Message " + sharedVersion + " type=" + sharedType + " address = " + address); DataObject dobj = getDataObject(address, null); if (null == dobj) throw new IllegalStateException("cant find data object at" + address); if (mtype == MessageType.Datatype) { return dobj; } throw new UnsupportedOperationException("****SHARED MESSAGE type = " + mtype); } }
private DataObject getSharedDataObject(MessageType mtype) throws IOException { byte sharedVersion = raf.readByte(); byte sharedType = raf.readByte(); if (sharedVersion == 1) raf.skipBytes(6); if ((sharedVersion == 3) && (sharedType == 1)) { long heapId = raf.readLong(); if (debug1) debugOut.println(" Shared Message " + sharedVersion + " type=" + sharedType + " heapId = " + heapId); if (debugPos) debugOut.println(" --> Shared Message reposition to =" + raf.getFilePointer()); // dunno where is the file's shared object header heap ?? throw new UnsupportedOperationException("****SHARED MESSAGE type = " + mtype + " heapId = " + heapId); } else { long address = readOffset(); if (debug1) debugOut.println(" Shared Message " + sharedVersion + " type=" + sharedType + " address = " + address); DataObject dobj = getDataObject(address, null); if (null == dobj) throw new IllegalStateException("cant find data object at" + address); if (mtype == MessageType.Datatype) { return dobj; } throw new UnsupportedOperationException("****SHARED MESSAGE type = " + mtype); } }
private DataObject getSharedDataObject(MessageType mtype) throws IOException { byte sharedVersion = raf.readByte(); byte sharedType = raf.readByte(); if (sharedVersion == 1) raf.skipBytes(6); if ((sharedVersion == 3) && (sharedType == 1)) { long heapId = raf.readLong(); if (debug1) { log.debug(" Shared Message " + sharedVersion + " type=" + sharedType + " heapId = " + heapId); } if (debugPos) { log.debug(" --> Shared Message reposition to =" + raf.getFilePointer()); } // dunno where is the file's shared object header heap ?? throw new UnsupportedOperationException("****SHARED MESSAGE type = " + mtype + " heapId = " + heapId); } else { long address = readOffset(); if (debug1) { log.debug(" Shared Message " + sharedVersion + " type=" + sharedType + " address = " + address); } DataObject dobj = getDataObject(address, null); if (null == dobj) throw new IllegalStateException("cant find data object at" + address); if (mtype == MessageType.Datatype) { return dobj; } throw new UnsupportedOperationException("****SHARED MESSAGE type = " + mtype); } }
private Array findReferenceObjectNames(Array data) throws IOException { //Array data = v.read(); IndexIterator ii = data.getIndexIterator(); Array newData = Array.factory(DataType.STRING, data.getShape()); IndexIterator ii2 = newData.getIndexIterator(); while (ii.hasNext()) { long objId = ii.getLongNext(); DataObject dobj = getDataObject(objId, null); if (dobj == null) log.error("readReferenceObjectNames cant find obj= " + objId); else { if (debugReference) System.out.println(" Referenced object= " + dobj.who); ii2.setObjectNext(dobj.who); } } return newData; }
private Array findReferenceObjectNames(Array data) throws IOException { //Array data = v.read(); IndexIterator ii = data.getIndexIterator(); Array newData = Array.factory(DataType.STRING, data.getShape()); IndexIterator ii2 = newData.getIndexIterator(); while (ii.hasNext()) { long objId = ii.getLongNext(); DataObject dobj = getDataObject(objId, null); if (dobj == null) log.warn("readReferenceObjectNames cant find obj= " + objId); else { if (debugReference) System.out.println(" Referenced object= " + dobj.who); ii2.setObjectNext(dobj.who); } } return newData; }
private Array findReferenceObjectNames(Array data) throws IOException { //Array data = v.read(); IndexIterator ii = data.getIndexIterator(); Array newData = Array.factory(DataType.STRING, data.getShape()); IndexIterator ii2 = newData.getIndexIterator(); while (ii.hasNext()) { long objId = ii.getLongNext(); DataObject dobj = getDataObject(objId, null); if (dobj == null) { log.warn("readReferenceObjectNames cant find obj= {}", objId); } else { if (debugReference) { log.debug(" Referenced object= {}", dobj.who); } ii2.setObjectNext(dobj.who); } } return newData; }