class FileSchema extends AbstractSchema
AbstractSchema.FactorySchema.TableType| Modifier and Type | Field and Description |
|---|---|
private File |
baseDirectory |
private com.google.common.collect.ImmutableList<Map<String,Object>> |
tables |
| Constructor and Description |
|---|
FileSchema(SchemaPlus parentSchema,
String name,
File baseDirectory,
List<Map<String,Object>> tables)
Creates an HTML tables schema.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
addTable(com.google.common.collect.ImmutableMap.Builder<String,Table> builder,
Map<String,Object> tableDef) |
private boolean |
addTable(com.google.common.collect.ImmutableMap.Builder<String,Table> builder,
Source source,
String tableName,
Map<String,Object> tableDef) |
protected Map<String,Table> |
getTableMap() |
private static String |
trim(String s,
String suffix)
Looks for a suffix on a string and returns
either the string with the suffix removed
or the original string.
|
private static String |
trimOrNull(String s,
String suffix)
Looks for a suffix on a string and returns
either the string with the suffix removed
or null.
|
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, isMutable, snapshotprivate final File baseDirectory
FileSchema(SchemaPlus parentSchema, String name, File baseDirectory, List<Map<String,Object>> tables)
parentSchema - Parent schemaname - Schema namebaseDirectory - Base directory to look for relative files, or nulltables - List containing HTML table identifiersprivate static String trim(String s, String suffix)
private static String trimOrNull(String s, String suffix)
protected Map<String,Table> getTableMap()
getTableMap in class AbstractSchemaprivate boolean addTable(com.google.common.collect.ImmutableMap.Builder<String,Table> builder, Map<String,Object> tableDef) throws MalformedURLException
MalformedURLExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.