EntityResolver<T> Interface
Type Parameters
- T
The type of the object that the resolver produces.
public interface EntityResolver
An interface to perform client side projection on a retrieved entity. An EntityResolver<T> instance must implement a method projecting the entity data represented by the parameters passed in as a new instance of the type specified by the type parameter.
This interface is useful for converting directly from table entity data to a client object type without requiring a separate table entity class type that deserializes every property individually. For example, a client can perform a client side projection of a Customer entity by simply returning the for the CustomerName property of each entity. The result of this projection will be a collection of s containing each customer name.
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
resolve(String partitionKey, String rowKey, Date timeStamp, HashMap<String, EntityProperty> properties, String etag)
Returns a reference to a new object instance of type containing a projection of the specified table entity data. |
Method Details
resolve
public T resolve(String partitionKey, String rowKey, Date timeStamp, HashMap
Returns a reference to a new object instance of type containing a projection of the specified table entity data.
Parameters:
String
containing the PartitionKey value for the entity.
String
containing the RowKey value for the entity.
java.util.Date
containing the Timestamp value for the entity.
java.util.HashMap
of String
property names to EntityProperty data type and value pairs representing the table entity data.
String
containing the Etag for the entity.
Returns:
T
constructed as a projection of the table entity parameters.Throws: