Package io.stargate.sdk.data.domain
Class JsonDocumentResult
java.lang.Object
io.stargate.sdk.data.domain.odm.Document<Map<String,Object>>
io.stargate.sdk.data.domain.odm.DocumentResult<Map<String,Object>>
io.stargate.sdk.data.domain.JsonDocumentResult
Represents entity returns for find() queries working with shemaless documents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionOutput as a map (to use JsonAySetter annotation).Fields inherited from class io.stargate.sdk.data.domain.odm.DocumentResult
similarity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K> K[]Return an Array of items.getBoolean(String k) Access element from the mapAccess element from the mapAccess element from the mapAccess element from the mapgetData()Access internal data.Access element from the mapAccess element from the mapAccess element from the mapgetInstant(String k) Access element from the mapgetInteger(String k) Access element from the map<K> List<K> Return an Array of items.Access element from the map<T> TAccess element from the map.Access element from the mapFor a schemaless document you might want to overrride.Access element from the mapAccess element from the mapbooleanisAttributeExist(String key) Access element from the mapMethods inherited from class io.stargate.sdk.data.domain.odm.DocumentResult
of
-
Field Details
-
jsonRawData
Output as a map (to use JsonAySetter annotation).
-
-
Constructor Details
-
JsonDocumentResult
public JsonDocumentResult()Default constructor.
-
-
Method Details
-
getSimilarity
For a schemaless document you might want to overrride.- Returns:
- similarity
-
getData
Access internal data.- Returns:
- map of object
-
getList
Return an Array of items.- Type Parameters:
K- type of item- Parameters:
k- keyitemClass- expected class- Returns:
- list of items
-
getArray
Return an Array of items.- Type Parameters:
K- type of item- Parameters:
k- keyitemClass- expected class- Returns:
- list of items
-
getObject
Access element from the map.- Type Parameters:
T- type f parameters- Parameters:
k- current configuration keytype- type of elements- Returns:
- configuration value
-
getString
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getDouble
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getInteger
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getBoolean
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getUUID
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getFloat
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getLong
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getShort
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getByte
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getCharacter
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getDate
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getCalendar
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
getInstant
Access element from the map- Parameters:
k- current configuration key- Returns:
- configuration value
-
isAttributeExist
Access element from the map- Parameters:
key- current configuration key- Returns:
- if key exists
-