public java.util.List<InvDataset> getDatasets() { return proxy.getDatasets(); }
public java.util.List<InvDataset> getDatasets() { return proxy.getDatasets(); }
public java.util.List<InvDataset> getDatasets() { return proxy.getDatasets(); }
/** * Get a list of all the nested datasets. * @return Datasets. This triggers a read of the referenced catalog the first time its called. */ @Override public java.util.List<InvDataset> getDatasets() { read(); return useProxy ? proxy.getDatasets() : super.getDatasets(); }
/** * Get a list of all the nested datasets. * @return Datasets. This triggers a read of the referenced catalog the first time its called. */ @Override public java.util.List<InvDataset> getDatasets() { read(); return useProxy ? proxy.getDatasets() : super.getDatasets(); }
/** * Get a list of all the nested datasets. * @return Datasets. This triggers a read of the referenced catalog the first time its called. */ @Override public java.util.List<InvDataset> getDatasets() { read(); return useProxy ? proxy.getDatasets() : super.getDatasets(); }
public List<CrawlableDataset> listDatasets() throws IOException { java.util.List<InvDataset> datasets = dataset.getDatasets(); List<CrawlableDataset> result = new ArrayList<CrawlableDataset>(); for (InvDataset d : datasets) { if (filter(d)) result.add( new CrawlableCatalog(this, (InvDatasetImpl) d)); } return result; }
public List<CrawlableDataset> listDatasets() throws IOException { java.util.List<InvDataset> datasets = dataset.getDatasets(); List<CrawlableDataset> result = new ArrayList<CrawlableDataset>(); for (InvDataset d : datasets) { if (filter(d)) result.add( new CrawlableCatalog(this, (InvDatasetImpl) d)); } return result; }
public List<CrawlableDataset> listDatasets() throws IOException { java.util.List<InvDataset> datasets = dataset.getDatasets(); List<CrawlableDataset> result = new ArrayList<CrawlableDataset>(); for (InvDataset d : datasets) { if (filter(d)) result.add( new CrawlableCatalog(this, (InvDatasetImpl) d)); } return result; }
public List<CrawlableDataset> listDatasets(CrawlableDatasetFilter filter) throws IOException { java.util.List<InvDataset> datasets = dataset.getDatasets(); List<CrawlableDataset> result = new ArrayList<CrawlableDataset>(); for (InvDataset d : datasets) { if (!filter(d)) continue; CrawlableCatalog cc = new CrawlableCatalog(this, (InvDatasetImpl) d); if (filter.accept(cc)) result.add(cc); } return result; }
private void addDatasetIds(InvDatasetImpl ds) { addDatasetByID(ds); if (ds instanceof InvCatalogRef) return; //if (ds instanceof InvDatasetFmrc) return; // recurse into nested for (InvDataset invDataset : ds.getDatasets()) { InvDatasetImpl nested = (InvDatasetImpl) invDataset; addDatasetIds(nested); } }
private void addDatasetIds(InvDatasetImpl ds) { addDatasetByID(ds); if (ds instanceof InvCatalogRef) return; //if (ds instanceof InvDatasetFmrc) return; // recurse into nested for (InvDataset invDataset : ds.getDatasets()) { InvDatasetImpl nested = (InvDatasetImpl) invDataset; addDatasetIds(nested); } }
public List<CrawlableDataset> listDatasets(CrawlableDatasetFilter filter) throws IOException { java.util.List<InvDataset> datasets = dataset.getDatasets(); List<CrawlableDataset> result = new ArrayList<CrawlableDataset>(); for (InvDataset d : datasets) { if (!filter(d)) continue; CrawlableCatalog cc = new CrawlableCatalog(this, (InvDatasetImpl) d); if (filter.accept(cc)) result.add(cc); } return result; }
private void addDatasetIds(InvDatasetImpl ds) { addDatasetByID(ds); if (ds instanceof InvCatalogRef) return; //if (ds instanceof InvDatasetFmrc) return; // recurse into nested for (InvDataset invDataset : ds.getDatasets()) { InvDatasetImpl nested = (InvDatasetImpl) invDataset; addDatasetIds(nested); } }
private void delete(InvDatasetImpl ds) { if (ds instanceof InvCatalogRef) { InvCatalogRef catRef = (InvCatalogRef) ds; if (!catRef.isRead()) return; } Iterator iter = ds.getDatasets().iterator(); while (iter.hasNext()) { InvDatasetImpl nested = (InvDatasetImpl) iter.next(); if (nested.getMark()) { iter.remove(); if (debugFilter) System.out.println(" remove " + nested.getName()); } else delete(nested); } }
private void delete(InvDatasetImpl ds) { if (ds instanceof InvCatalogRef) { InvCatalogRef catRef = (InvCatalogRef) ds; if (!catRef.isRead()) return; } Iterator iter = ds.getDatasets().iterator(); while (iter.hasNext()) { InvDatasetImpl nested = (InvDatasetImpl) iter.next(); if (nested.getMark()) { iter.remove(); if (debugFilter) System.out.println(" remove " + nested.getName()); } else delete(nested); } }
public List<CrawlableDataset> listDatasets(CrawlableDatasetFilter filter) throws IOException { java.util.List<InvDataset> datasets = dataset.getDatasets(); List<CrawlableDataset> result = new ArrayList<CrawlableDataset>(); for (InvDataset d : datasets) { if (!filter(d)) continue; CrawlableCatalog cc = new CrawlableCatalog(this, (InvDatasetImpl) d); if (filter.accept(cc)) result.add(cc); } return result; }
private void delete(InvDatasetImpl ds) { if (ds instanceof InvCatalogRef) { InvCatalogRef catRef = (InvCatalogRef) ds; if (!catRef.isRead()) return; } Iterator iter = ds.getDatasets().iterator(); while (iter.hasNext()) { InvDatasetImpl nested = (InvDatasetImpl) iter.next(); if (nested.getMark()) { iter.remove(); if (debugFilter) System.out.println(" remove " + nested.getName()); } else delete(nested); } }
private boolean mark(DatasetFilter filter, InvDatasetImpl ds) { if (ds instanceof InvCatalogRef) { InvCatalogRef catRef = (InvCatalogRef) ds; if (!catRef.isRead()) return false; } // recurse into nested datasets first boolean allMarked = true; for (InvDataset nested : ds.getDatasets()) { allMarked &= mark(filter, (InvDatasetImpl) nested); } if (!allMarked) return false; if (filter.accept(ds) >= 0) return false; // mark for deletion ds.setMark(true); if (debugFilter) System.out.println(" mark " + ds.getName()); return true; }
private boolean mark(DatasetFilter filter, InvDatasetImpl ds) { if (ds instanceof InvCatalogRef) { InvCatalogRef catRef = (InvCatalogRef) ds; if (!catRef.isRead()) return false; } // recurse into nested datasets first boolean allMarked = true; for (InvDataset nested : ds.getDatasets()) { allMarked &= mark(filter, (InvDatasetImpl) nested); } if (!allMarked) return false; if (filter.accept(ds) >= 0) return false; // mark for deletion ds.setMark(true); if (debugFilter) System.out.println(" mark " + ds.getName()); return true; }