c++/EEDB/ZDX/ZDXsegment.cpp
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// reading/streaming features out of segment znodes
//
//////////////////////////////////////////////////////////////////////////////////////////////////
reading/streaming features out of segment znodes
reading / streaming features out of segment znodes
MQDB::DBObject*  EEDB::ZDX::ZDXsegment::next_in_stream() {
  if(_streambuffer == NULL) { return NULL; }
  while(1) {
    MQDB::DBObject *obj = _streambuffer->next_in_stream();
    if(obj) { return obj; }
    if(!_load_next_znode()) { 
      _streambuffer->release_objects();
      _streambuffer->release();
      _streambuffer = NULL;
      return NULL;
    }
  }
  return NULL;
}
MQDB :: DBObject * EEDB :: ZDX :: ZDXsegment :: next_in_stream ( ) { if ( _streambuffer == NULL ) { return NULL ; } while ( 1 ) { MQDB :: DBObject * obj = _streambuffer -> next_in_stream ( ) ; if ( obj ) { return obj ; } if ( ! _load_next_znode ( ) ) { _streambuffer -> release_objects ( ) ; _streambuffer -> release ( ) ; _streambuffer = NULL ; return NULL ; } } return NULL ; }
reading/streaming features out of segment znodes
reading / streaming features out of segment znodes
//only streams features out of znodes -> streambuffer //if no more objects then clear