public class AccumuloBlobStore extends Object implements BlobStore
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.accumulo.core.client.Connector |
connector |
protected String |
tableName |
| Constructor and Description |
|---|
AccumuloBlobStore(org.apache.accumulo.core.client.Connector connector) |
AccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
int bufferSize) |
AccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config) |
AccumuloBlobStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static String |
generateRowId(String key,
String type)
Helper method to generate the rowID for the data mutations.
|
protected OutputStream |
generateWriteStream(org.apache.accumulo.core.client.BatchWriter writer,
String key,
String type,
long timestamp,
String visibility)
Helper method to generate an
OutputStream for storing data into Accumulo. |
InputStream |
get(String key,
String type,
Auths auths)
Provides an
InputStream to retrieve the data from the store. |
protected org.apache.accumulo.core.client.BatchWriter |
getWriter()
Returns a new batch writer for the table.
|
OutputStream |
store(String key,
String type,
long timestamp,
String visibility)
Provides an
OutputStream to allow storage of the data into the store. |
protected final org.apache.accumulo.core.client.Connector connector
protected final String tableName
public AccumuloBlobStore(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 AccumuloBlobStore(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 AccumuloBlobStore(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 AccumuloBlobStore(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 static String generateRowId(String key, String type)
key - type - protected 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
connector - org.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionprotected org.apache.accumulo.core.client.BatchWriter getWriter()
throws org.apache.accumulo.core.client.TableNotFoundException
org.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)
key - type - data - sequenceNum - timestamp - visibility - protected OutputStream generateWriteStream(org.apache.accumulo.core.client.BatchWriter writer, String key, String type, long timestamp, String visibility)
OutputStream for storing data into Accumulo.writer - key - type - timestamp - visibility - public OutputStream store(String key, String type, long timestamp, String visibility)
OutputStream to allow storage of the data into the store.public InputStream get(String key, String type, Auths auths)
InputStream to retrieve the data from the store.Copyright © 2014 Calrissian. All Rights Reserved.