public class FileMetadataSchema extends Schema
BigdataFileSystem
. Some well known properties are always defined,
but any property may be stored - ideally within their own namespace!
Note: File version creation time and update times are available using the
SparseRowStore
, which stores and reports the timestamp for each
property value. Convenience methods are available on
RepositoryDocumentImpl
to report those timestamps. Timestamps for
file blocks can NOT be obtained.
Note: A content length property was deliberately NOT defined. The design is geared towards very large file and asynchronous read/write of file blocks. The length of short files may be readily computed by the expediency of sucking their contents into a buffer. Large files should always be processed using a stream-oriented technique or distributed to concurrent clients in block sized pieces.
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_ENCODING
The encoding, if any, used to convert the byte[] content to
characters.
|
static String |
CONTENT_TYPE
The MIME type associated with the content (the same semantics as the
HTTP
Content-Type header). |
static String |
ID
The content identifer is an arbitrary Unicode
String whose value
is defined by the client. |
static String |
INDEX_TEXT
Optional boolean property.
|
static String |
VERSION
The file version number.
|
Constructor and Description |
---|
FileMetadataSchema() |
appendPrimaryKey, fromKey, getKey, getName, getPrefix, getPrimaryKeyName, getPrimaryKeyType, getSchemaBytes, readExternal, toString, writeExternal
public static final transient String ID
String
whose value
is defined by the client. This is generally a pathname, similar to a path
in a file system.public static final transient String CONTENT_TYPE
Content-Type
header).public static final transient String CONTENT_ENCODING
Note: This is typically deduced from an analysis of the MIME Type in
Content-Type
header and at times the leading bytes of
the response body itself.
public static final transient String VERSION
public static final transient String INDEX_TEXT
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.