org.soyatec.windows.azure.table
Interface BatchStorage

All Known Implementing Classes:
AzureTable, AzureTableRest

public interface BatchStorage

Batch operation on azure table service

The 2009-04-14 version of the Table service supports batch transactions on entities that are in the same table and belong to the same partition group. Multiple Insert Entity, Update Entity, Merge Entity, and Delete Entity operations are supported within a single transaction.

All entities subject to operations as part of the batch must have the same PartitionKey value. An entity can appear only once in the transaction, and only one operation may be performed against it. The transaction can include at most 100 entities, and its total payload may be no more than 4 MB in size.


Field Summary
static java.lang.String BATCH_BOUNDARY_PREFIX
          batch atom xml boundary prefix
static java.lang.String BATCH_PATH
           
static java.lang.String CHANGESET_BOUNDARY_PREFIX
          batch atom xml changeset boundary prefix
 
Method Summary
 void clearBatch()
          Cleanup current batch
 void executeBatch()
          Commit current batch.
 boolean isInBatch()
          Is there a current batch?
 void startBatch()
          Starts a new batch operation set.
 

Field Detail

BATCH_BOUNDARY_PREFIX

static final java.lang.String BATCH_BOUNDARY_PREFIX
batch atom xml boundary prefix

See Also:
Constant Field Values

CHANGESET_BOUNDARY_PREFIX

static final java.lang.String CHANGESET_BOUNDARY_PREFIX
batch atom xml changeset boundary prefix

See Also:
Constant Field Values

BATCH_PATH

static final java.lang.String BATCH_PATH
See Also:
Constant Field Values
Method Detail

startBatch

void startBatch()
Starts a new batch operation set. Don't make call to service.


clearBatch

void clearBatch()
Cleanup current batch


executeBatch

void executeBatch()
Commit current batch. Make call to table service. Whether the batch operation is success or fail, current batch will be cleaned.


isInBatch

boolean isInBatch()
Is there a current batch?

Returns: