public class LocalDatastoreCostAnalysis
extends java.lang.Object
Entity
.Constructor and Description |
---|
LocalDatastoreCostAnalysis(com.google.appengine.api.datastore.dev.LocalCompositeIndexManager indexManager) |
Modifier and Type | Method and Description |
---|---|
CreationCostAnalysis |
getCreationCostAnalysis(EntityProto e) |
Cost |
getWriteCost(EntityProto newEntity)
Determines the cost of writing this entity, assuming no previous value exists.
|
Cost |
getWriteOps(EntityProto oldEntity,
EntityProto newEntity)
Determines the cost of writing
newEntity , assuming its current state in the datastore
matches oldEntity . |
public LocalDatastoreCostAnalysis(com.google.appengine.api.datastore.dev.LocalCompositeIndexManager indexManager)
public CreationCostAnalysis getCreationCostAnalysis(EntityProto e)
public Cost getWriteCost(EntityProto newEntity)
newEntity
- The entity whose write cost we are determining.public Cost getWriteOps(EntityProto oldEntity, EntityProto newEntity)
newEntity
, assuming its current state in the datastore
matches oldEntity
.oldEntity
- Entity representing the current state in the datastore. Can be null
.newEntity
- Entity representing the desired state in the datastore.newEntity
.