public class AttrToJava
extends java.lang.Object
| Constructor and Description |
|---|
AttrToJava() |
| Modifier and Type | Method and Description |
|---|---|
static Beacon |
attrToBeacon(AttributeValue rawBeacon)
Converts the given AttributeValue to a Beacon object
|
static RectCoordinates |
attrToBeaconLocation(AttributeValue rawBeacon)
Parses the given AttributeValue to get the locaton of the beacon
|
static Building |
attrToBuilding(java.util.Map<java.lang.String,AttributeValue> rawData)
Converts the given map of attribute values into a building object
|
static GridNode |
attrToGridNode(AttributeValue rawNode,
int x,
int y,
int z)
Parses the given RectCoordinates into a GridNode using the given x, y,
and z values for the coordinates
|
static Building |
getItemResultToBuilding(GetItemResult queryResult)
Converts the given GetItemResult into a building
|
public static Building getItemResultToBuilding(GetItemResult queryResult)
queryResult - GetItemResult of a dynamo db querypublic static Building attrToBuilding(java.util.Map<java.lang.String,AttributeValue> rawData)
rawData - Map of strings to attribute values which comes from a
dynamo db querypublic static Beacon attrToBeacon(AttributeValue rawBeacon)
rawBeacon - AttributeValue representing a beaconpublic static RectCoordinates attrToBeaconLocation(AttributeValue rawBeacon)
rawBeacon - RectCoordinates representing a beaconpublic static GridNode attrToGridNode(AttributeValue rawNode,
int x,
int y,
int z)
rawNode - AttributeValue representing a gridnodex - x coordinate used in the nodey - y coordinate used in the nodez - z coordinate used in the node