@Override public void removeCompactedFiles(Collection<HStoreFile> removedCompactedfiles) throws IOException { this.compactedfiles = this.compactedfiles.stream().filter(sf -> !removedCompactedfiles.contains(sf)) .sorted(storeFileComparator).collect(ImmutableList.toImmutableList()); }
@Override public List<NamespaceDescriptor> getNamespaces() throws IOException { checkIsRunning(); return getTableNamespaceManager().list().stream() .sorted(NamespaceDescriptor.NAMESPACE_DESCRIPTOR_COMPARATOR) .collect(ImmutableList.toImmutableList()); } }