public class Registration extends Object
| Constructor and Description |
|---|
Registration() |
| Modifier and Type | Method and Description |
|---|---|
static Pair<URIPattern,Map<String,String>> |
lookupDatasetPattern(URI uri) |
static Pair<DatasetRepository,Map<String,String>> |
lookupDatasetUri(URI datasetUri) |
static Pair<URIPattern,Map<String,String>> |
lookupPatternByRepoUri(URI uri) |
static Pair<DatasetRepository,Map<String,String>> |
lookupRepoUri(URI repoUri) |
static <R extends DatasetRepository> |
open(URI uri) |
static void |
register(URIPattern repoPattern,
URIPattern datasetPattern,
OptionBuilder<DatasetRepository> repoBuilder)
Registers a repository and a dataset
URIPattern using a repository
OptionBuilder. |
public static void register(URIPattern repoPattern, URIPattern datasetPattern, OptionBuilder<DatasetRepository> repoBuilder)
URIPattern using a repository
OptionBuilder.
Both patterns should produce options used by the builder to produce a
DatasetRepository. The dataset pattern should also produce a
"dataset" option that will be passed to the repository's load method as
the dataset name.
repoPattern - a URIPattern for a DatasetRepositorydatasetPattern - a URIPattern for a DatasetrepoBuilder - a OptionBuilder valid for both URIspublic static Pair<URIPattern,Map<String,String>> lookupPatternByRepoUri(URI uri)
public static Pair<URIPattern,Map<String,String>> lookupDatasetPattern(URI uri)
public static <R extends DatasetRepository> R open(URI uri)
Copyright © 2013–2015. All rights reserved.