@Override public String getNextToken(Table table) { return table.getName(); } });
private String getPlacement(Table table, boolean useMasterPlacement) { if (!useMasterPlacement) { TableAvailability availability = table.getAvailability(); if (availability != null) { return availability.getPlacement(); } // If the table isn't available locally then defer to it's placement from the table options. // If the user doesn't have permission the permission check will fail. If he does the permission // check won't fail but another more informative exception will likely be thrown. } return table.getOptions().getPlacement(); } }
public boolean isTableAvailable(String apiKey, String table) { checkNotNull(table, "table"); return getTableMetadata(apiKey, table).getAvailability() != null; }
@Nullable @Override protected PlacementAndAttributes getPlacementAndAttributesForTable(String tableName, boolean useMasterPlacement) { // In some Emo configurations there may legitimately not be a data store. If this is the case // don't raise an exception, just deny permission. if (_dataStore == null) { return null; } Table table = _dataStore.getTableMetadata(tableName); return new PlacementAndAttributes(getPlacement(table, useMasterPlacement), table.getTemplate()); }
public boolean isTableAvailable(String apiKey, String table) { checkNotNull(table, "table"); return getTableMetadata(apiKey, table).getAvailability() != null; }
@Override public String getNextToken(Table table) { return table.getName(); } });
@Override public FileStatus apply(Table table) { return getTableFileStatus(_rootPath, table.getName()); } })
@Override public FileStatus apply(Table table) { return getTableFileStatus(_rootPath, table.getName()); } })
String rawTableName = table.getName(); if (emoSchema != null) { addTable(protoEmoUriBuilder, rawTableName, emoSchema, ifNotExists, fields, rowFormat, recreateTables, out);