public class ExtendedAccumuloBlobStore extends AccumuloBlobStore implements ExtendedBlobStore
AccumuloBlobStore which stores additional data
including the storage size (in bytes) and the properties for the data.
Data Row format is as follows:
RowId: key type
Column Family: DATA
Column Qualifier: sequence#
Value: byte[]
Row format is as follows:
RowId: key type
Column Family: SIZE
Column Qualifier:
Value: chunksize
Property format is as follows:
RowId: key type
Column Family: PROP
Column Qualifier: propKey propValue
Value:connector, tableName| Constructor and Description |
|---|
ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector) |
ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
int bufferSize) |
ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config) |
ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
blobSize(String key,
String type,
Auths auths)
Returns the size of the data stored with the given key and type.
|
protected void |
configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName)
Utility method to update the correct iterators to the table.
|
protected org.apache.accumulo.core.data.Mutation |
generateMutation(String key,
String type,
byte[] data,
int sequenceNum,
long timestamp,
org.apache.accumulo.core.security.ColumnVisibility visibility)
Helper method to generate a mutation for each chunk of data that is being stored.
|
Map<String,String> |
getProperties(String key,
String type,
Auths auths)
Returns the properties stored with the data for the given key and type.
|
OutputStream |
store(String key,
String type,
Map<String,String> properties,
long timestamp,
String visibility)
Provides an
OutputStream to allow storage of the data into the store along with some properties. |
generateRowId, generateWriteStream, get, getWriter, storepublic ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionpublic ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionpublic ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
int bufferSize)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionpublic ExtendedAccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
int bufferSize)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionprotected void configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName)
throws org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
configureTable in class AccumuloBlobStoreorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionprotected org.apache.accumulo.core.data.Mutation generateMutation(String key, String type, byte[] data, int sequenceNum, long timestamp, org.apache.accumulo.core.security.ColumnVisibility visibility)
generateMutation in class AccumuloBlobStorepublic int blobSize(String key, String type, Auths auths)
blobSize in interface ExtendedBlobStorepublic Map<String,String> getProperties(String key, String type, Auths auths)
getProperties in interface ExtendedBlobStorepublic OutputStream store(String key, String type, Map<String,String> properties, long timestamp, String visibility)
OutputStream to allow storage of the data into the store along with some properties.store in interface ExtendedBlobStoreCopyright © 2014 Calrissian. All Rights Reserved.