Service - Feed Chunk
Jump to navigation
Jump to search
Overview
An uploaded section of a video feed.
Repository
https://bitbucket.org/izara-video-feed/izara-video-feed-feeds-feed-chunk
objectSchemas
{
objectType: "feedChunk",
belongTo: {
serviceTag: "user",
objectType: "user"
},
storageResources:{
"xxx":{
storageType: "graph",
graphServerTag: "xx",
}
},
fieldNames: {
feedChunkId: {
type: "string",
randomOnCreate: true
},
sourceTimeStart: {
type: "timestamp",
},
sourceTimeEnd: {
type: "timestamp",
},
timeUploaded: {
type: "timestamp",
},
},
identifiers: [
{
fieldName: "feedChunkId"
},
]
},
{
objectType: "feedChunkByTime",
storageResources:{
"xxx":{
storageType: "dynamoDB",
tableName: "feedChunkByTime",
}
},
fieldNames: {
videoFeedId: {
fromObjType:{
serviceTag: "videoFeed",
objectType: "videoFeed",
}
},
sourceTimeStart: {
fromObjType:{
serviceTag: "feedChunk",
objectType: "feedChunk",
}
},
feedChunkId: {
fromObjType:{
serviceTag: "feedChunk",
objectType: "feedChunk",
}
},
sourceTimeEnd: {
fromObjType:{
serviceTag: "feedChunk",
objectType: "feedChunk",
}
},
},
identifiers: [
{
type: "partitionKey",
fieldName: "videoFeedId"
},
{
type: "sortKey",
fieldName: "sourceTimeStart"
},
]
},
- used to find chunk for a specific timestamp
- can create from feedChunk objType?