public class AzureHBaseUtil
extends java.lang.Object
Constructor and Description |
---|
AzureHBaseUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteAzureContent(java.lang.String fileToDelete) |
static byte[] |
getContentFromResult(org.apache.hadoop.hbase.client.Result hbaseResult,
java.lang.String mimeType)
Given an hbaseResult, downloads the content from Azure.
|
static void |
setContent(java.lang.String ticket,
java.lang.String objectId,
byte[] content,
java.lang.String mimeType,
org.apache.hadoop.hbase.client.Put put)
Gets the documents table and populates it with the new objectId.
|
static void |
uploadAzureContent(java.lang.String objectId,
byte[] content,
java.lang.String mimeType,
org.apache.hadoop.hbase.client.Put put)
Uploads the content to Azure and inserts the uri to the put map.
|
public static void uploadAzureContent(java.lang.String objectId, byte[] content, java.lang.String mimeType, org.apache.hadoop.hbase.client.Put put)
objectId
- is
- holds the content to be uploaded to azure blobmimeType
- put
- public static void setContent(java.lang.String ticket, java.lang.String objectId, byte[] content, java.lang.String mimeType, org.apache.hadoop.hbase.client.Put put)
ticket
- objectId
- is
- mimeType
- public static byte[] getContentFromResult(org.apache.hadoop.hbase.client.Result hbaseResult, java.lang.String mimeType)
hbaseResult
- mimeType
- public static void deleteAzureContent(java.lang.String fileToDelete)