} // constructor //@Override public override bool next() { _document = _document_source.next(); if (_document == null) { return(false); } return(true); }
} // constructor // @Override public Document next() { if (_rowsLeft > 0) { Document next = _delegate.next(); _rowsLeft--; return(next); } return(null); } // next()
} // getColumnBuilder() // @Override public void offerSource(DocumentSource documentSource) { while (getObservationCount() < MAX_SAMPLE_SIZE) { Document map = documentSource.next(); if (map == null) { return; } addObservation(map); } }
} // offerSources() protected void offerDocumentSource(DocumentSource documentSource) { try { while (true) { Document document = documentSource.next(); if (document == null) { break; } String tableName = determineTable(document); addObservation(tableName, document); } } finally { documentSource.close(); } } // offerDocumentSource()
} // constructor // @Override public void offerSources(DocumentSourceProvider documentSourceProvider) { DocumentSource document_source = documentSourceProvider.getMixedDocumentSourceForSampling(); try { while (true) { Document document = document_source.next(); if (document == null) { break; } string tableName = determineTable(document); addObservation(tableName, document); } } finally { document_source.close(); } } // offerSources()