public final class PersistS3 extends Persist
Modifier and Type | Class and Description |
---|---|
static class |
PersistS3.H2SO3InputStream |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
S3_CONNECTION_TIMEOUT_PROP
S3 connection timeout property name
|
static java.lang.String |
S3_MAX_ERROR_RETRY_PROP
S3 maximal error retry number
|
static java.lang.String |
S3_MAX_HTTP_CONNECTIONS_PROP
S3 maximal http connections
|
static java.lang.String |
S3_SOCKET_TIMEOUT_PROP
S3 socket timeout property name
|
Constructor and Description |
---|
PersistS3() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static java.lang.String[] |
decodeKey(Key k)
Decodes the given H2O key to the S3 bucket and key name.
|
void |
delete(Value v) |
static Key |
encodeKey(java.lang.String bucket,
java.lang.String key)
Creates the key for given S3 bucket and key.
|
static com.amazonaws.services.s3.AmazonS3 |
getClient() |
java.lang.String |
getPath() |
Value |
lazyArrayChunk(Key key)
Lazily manifest data chunks on demand.
|
byte[] |
load(Value v)
Value should already be persisted to disk.
|
void |
loadExisting()
Load all Key/Value pairs that can be found on the backend.
|
static Key |
loadKey(com.amazonaws.services.s3.model.S3ObjectSummary obj) |
static java.io.InputStream |
openStream(Key k,
Job.ProgressMonitor pmon) |
void |
store(Value v) |
getIce, getTotalSpace, getUsableSpace, initialize
public static final java.lang.String S3_SOCKET_TIMEOUT_PROP
public static final java.lang.String S3_CONNECTION_TIMEOUT_PROP
public static final java.lang.String S3_MAX_ERROR_RETRY_PROP
public static final java.lang.String S3_MAX_HTTP_CONNECTIONS_PROP
public static com.amazonaws.services.s3.AmazonS3 getClient()
public static java.io.InputStream openStream(Key k, Job.ProgressMonitor pmon) throws java.io.IOException
java.io.IOException
public static Key loadKey(com.amazonaws.services.s3.model.S3ObjectSummary obj) throws java.io.IOException
java.io.IOException
public byte[] load(Value v)
Persist
public Value lazyArrayChunk(Key key)
Persist
lazyArrayChunk
in class Persist
public static Key encodeKey(java.lang.String bucket, java.lang.String key)
bucket
- Bucket namekey
- Key name (S3)public static java.lang.String[] decodeKey(Key k)
k
- Key to be decoded.public void loadExisting()
Persist
loadExisting
in class Persist