|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwater.persist.Persist
water.persist.PersistS3
public final class PersistS3
Persistence backend for S3
| Nested Class Summary | |
|---|---|
static class |
PersistS3.H2SO3InputStream
|
| Field Summary | |
|---|---|
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 |
| Fields inherited from class water.persist.Persist |
|---|
I, UNKNOWN |
| Constructor Summary | |
|---|---|
PersistS3()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class water.persist.Persist |
|---|
getIce, getTotalSpace, getUsableSpace, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public PersistS3()
| Method Detail |
|---|
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.IOExceptionpublic byte[] load(Value v)
Persist
load in class Persistpublic void store(Value v)
store in class Persistpublic 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 java.lang.String getPath()
getPath in class Persistpublic void clear()
clear in class Persistpublic void loadExisting()
Persist
loadExisting in class Persistpublic void delete(Value v)
delete in class Persist
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||