public class HBaseURI extends PersistenceURI
PersistenceURI
that creates MapDB specific resource URI
s from a File
descriptor or an existing URI
.
The class defines a HBase specific URI
scheme that is used to register HBasePersistenceBackendFactory
in PersistenceBackendFactoryRegistry
and configure the protocol-to-factory
map of an existing ResourceSet
with a PersistentResourceFactory
.
URI.Fragment, URI.Hierarchical, URI.Opaque, URI.URIPool
Modifier and Type | Field and Description |
---|---|
static String |
SCHEME
The scheme associated to the URI.
|
FILE_SCHEME
ALPHA_HI, ALPHA_LO, ALPHANUM_HI, ALPHANUM_LO, ARCHIVE_IDENTIFIER, ARCHIVE_SCHEMES, ARCHIVE_SEPARATOR, AUTHORITY_SEPARATOR, AUTHORITY_SEPARATOR_HASH_CODE, DEBUG, DEVICE_IDENTIFIER, DIGIT_HI, DIGIT_LO, ENCODE_PLATFORM_RESOURCE_URIS, ESCAPE, FILE_EXTENSION_SEPARATOR, FRAGMENT_FIRST_SEPARATOR, FRAGMENT_LAST_SEPARATOR, FRAGMENT_NONE, FRAGMENT_SEPARATOR, hashCode, HEX_DIGITS, HEX_HI, HEX_LO, MAJOR_SEPARATOR_HI, MAJOR_SEPARATOR_LO, NO_SEGMENTS, ONE_EMPTY_SEGMENT, ONE_SELF_SEGMENT, PATH_CHAR_HI, PATH_CHAR_LO, PLATFORM_SEGMENT_RESERVED_HI, PLATFORM_SEGMENT_RESERVED_LO, POOL, PORT_SEPARATOR, QUERY_SEPARATOR, RESERVED_HI, RESERVED_LO, SCHEME_ARCHIVE, SCHEME_ARCHIVE_HASH_CODE, SCHEME_FILE, SCHEME_FILE_HASH_CODE, SCHEME_HTTP, SCHEME_HTTP_HASH_CODE, SCHEME_JAR, SCHEME_JAR_HASH_CODE, SCHEME_PLATFORM, SCHEME_PLATFORM_HASH_CODE, SCHEME_SEPARATOR, SCHEME_ZIP, SCHEME_ZIP_HASH_CODE, SEGMENT_CHAR_HI, SEGMENT_CHAR_LO, SEGMENT_EMPTY, SEGMENT_END_HI, SEGMENT_END_LO, SEGMENT_PARENT, SEGMENT_PLUGIN, SEGMENT_RESOURCE, SEGMENT_SELF, SEGMENT_SEPARATOR, UNRESERVED_HI, UNRESERVED_LO, URIC_HI, URIC_LO, USER_INFO_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
HBaseURI(URI internalURI)
Constructs a new
HBaseURI from the given internalURI . |
Modifier and Type | Method and Description |
---|---|
static URI |
createFileURI(File file)
Creates a new
HBaseURI from the given File descriptor. |
static URI |
createFileURI(URI uri)
Creates a new
HBaseURI from the given uri by checking the referenced file exists on the file
system. |
static URI |
createHierarchicalURI(String host,
String port,
URI modelURI)
Creates a new
HBaseURI from the host , port , and modelURI by creating a
hierarchical URI that references the distant model resource. |
static URI |
createURI(URI uri)
Creates a new
HBaseURI from the given uri . |
static String |
format(URI uri)
Format the given
uri by removing HBase reserved characters. |
appendFileExtension, appendFragment, appendQuery, appendSegment, appendSegments, authority, createFileURI, createFileURI, deresolve, deresolve, device, devicePath, fileExtension, fragment, hasAbsolutePath, hasAuthority, hasDevice, hasEmptyPath, hasFragment, hashCode, hasOpaquePart, hasPath, hasQuery, hasRelativePath, hasTrailingPathSeparator, host, isArchive, isCurrentDocumentReference, isEmpty, isFile, isHierarchical, isPlatform, isPlatformPlugin, isPlatformResource, isPrefix, isRelative, lastSegment, opaquePart, path, port, query, replacePrefix, resolve, resolve, scheme, segment, segmentCount, segments, segmentsList, toFileString, toPlatformString, toString, trimFileExtension, trimFragment, trimQuery, trimSegments, userInfo
appendEscaped, cacheString, collapseSegments, contains, createDeviceURI, createFileURI, createGenericURI, createHierarchicalURI, createHierarchicalURI, createHierarchicalURI, createPlatformPluginURI, createPlatformResourceURI, createPlatformResourceURI, createURI, createURI, createURI, createURIWithCache, decode, encode, encodeAuthority, encodeFragment, encodeOpaquePart, encodeQuery, encodeSegment, encodeURI, equals, firstInvalidSegment, flushCachedString, getCachedString, hasDeviceOrPath, highBitmask, highBitmask, highBitmask, isArchiveScheme, isBase, isEscaped, lowBitmask, lowBitmask, lowBitmask, matches, matches, matches, matches, rawAppendFragment, rawSegments, segmentsEqual, splitInternFragment, unescape, validArchiveAuthority, validateURI, validAuthority, validDevice, validFragment, validJarAuthority, validOpaquePart, validQuery, validScheme, validSegment, validSegments, valueOf
@Nonnull public static final String SCHEME
HBasePersistenceBackendFactory
and provide a PersistentResourceFactory
to an existing ResourceSet
.protected HBaseURI(@Nonnull URI internalURI)
HBaseURI
from the given internalURI
.
This constructor is protected to avoid wrong URI
instantiations. Use createURI(URI)
, createFileURI(File)
, createFileURI(URI)
or createHierarchicalURI(String, String, URI)
instead.
internalURI
- the base URI
@Nonnull public static URI createURI(@Nonnull URI uri)
HBaseURI
from the given uri
.
This method checks that the scheme of the provided uri
can be used to create a new HBaseURI
.
uri
- the base URI
URI
NullPointerException
- if the uri
is null
IllegalArgumentException
- if the scheme of the provided uri
is not SCHEME
or PersistenceURI.FILE_SCHEME
createFileURI(File)
,
createFileURI(URI)
,
createHierarchicalURI(String, String, URI)
@Nonnull public static URI createFileURI(@Nonnull File file)
HBaseURI
from the given File
descriptor.file
- the File
to build a URI
fromURI
NullPointerException
- if the file
is null
@Nonnull public static URI createFileURI(@Nonnull URI uri)
HBaseURI
from the given uri
by checking the referenced file exists on the file
system.uri
- the base URI
URI
NullPointerException
- if the uri
is null
@Nonnull public static URI createHierarchicalURI(@Nonnull String host, @Nonnull String port, @Nonnull URI modelURI)
HBaseURI
from the host
, port
, and modelURI
by creating a
hierarchical URI
that references the distant model resource.host
- the address of the HBase server (use localhost
if HBase is running locally)port
- the port of the HBase servermodelURI
- a URI
identifying the model in the databaseURI
NullPointerException
- if any of the parameters is null
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.