public String getResourceDir() { if (Strings.isNullOrEmpty(tableName)) { return getOldResourceDir(signature); } else { return getResourceDir(tableName); } }
public List<SnapshotTable> getSnapshots(String tableName, TableSignature sourceTableSignature) throws IOException { List<SnapshotTable> result = Lists.newArrayList(); String tableSnapshotsPath = SnapshotTable.getResourceDir(tableName); ResourceStore store = TableMetadataManager.getInstance(this.config).getStore(); result.addAll(store.getAllResources(tableSnapshotsPath, SnapshotTableSerializer.INFO_SERIALIZER)); if (sourceTableSignature != null) { String oldTableSnapshotsPath = SnapshotTable.getOldResourceDir(sourceTableSignature); result.addAll(store.getAllResources(oldTableSnapshotsPath, SnapshotTableSerializer.INFO_SERIALIZER)); } return result; }
public String getResourceDir() { if (Strings.isNullOrEmpty(tableName)) { return getOldResourceDir(signature); } else { return getResourceDir(tableName); } }
public List<SnapshotTable> getSnapshots(String tableName, TableSignature sourceTableSignature) throws IOException { List<SnapshotTable> result = Lists.newArrayList(); String tableSnapshotsPath = SnapshotTable.getResourceDir(tableName); ResourceStore store = TableMetadataManager.getInstance(this.config).getStore(); result.addAll(store.getAllResources(tableSnapshotsPath, SnapshotTableSerializer.INFO_SERIALIZER)); if (sourceTableSignature != null) { String oldTableSnapshotsPath = SnapshotTable.getOldResourceDir(sourceTableSignature); result.addAll(store.getAllResources(oldTableSnapshotsPath, SnapshotTableSerializer.INFO_SERIALIZER)); } return result; }