public interface WitsmlDataListener
Convenient for handling WITSML content that are larger than physical memory. In this case the client should clear the log instance at fixed intervals:
class DataListener implements WitsmlDataListener { @Override public void dataRead(WitsmlLog log) { // Process log data : // Clear curve data to save memory log.clearCurves(); // Continue the process return true; } }
Modifier and Type | Method and Description |
---|---|
boolean |
dataRead(WitsmlLog log)
A notification from
WitsmlReader indicating that a new
portion of data has been read from the WITSML stream. |
boolean dataRead(WitsmlLog log)
WitsmlReader
indicating that a new
portion of data has been read from the WITSML stream.
After the client has processed the data, it may clean the curve data
in order to save memory storage. See WitsmlLog.clearCurves()
.
It is also possible for the client to abort the reading process at this time, by returning false from the method. This will close all resources and throw an InterruptedException back to the client.
log
- Log that has been populated with new data. Never null.WitsmlReader.read(boolean,boolean,WitsmlDataListener)
Copyright © 2024 Petroware AS - https://petroware.no