Class: DocumentStore
Constructors
constructor
• new DocumentStore()
Methods
getDocument
▸ getDocument(squidDocId
): SquidDocument
Parameters
Name | Type |
---|---|
squidDocId | string |
Returns
getDocumentOrUndefined
▸ getDocumentOrUndefined(squidDocId
): undefined
| SquidDocument
Parameters
Name | Type |
---|---|
squidDocId | string |
Returns
undefined
| SquidDocument
group
▸ group(sortedDocs
, sortFieldNames
): SquidDocument
[][]
Parameters
Name | Type |
---|---|
sortedDocs | SquidDocument [] |
sortFieldNames | string [] |
Returns
SquidDocument
[][]
hasData
▸ hasData(squidDocId
): boolean
Parameters
Name | Type |
---|---|
squidDocId | string |
Returns
boolean
migrateDocId
▸ migrateDocId(squidDocId
, newSquidDocId
): void
Parameters
Name | Type |
---|---|
squidDocId | string |
newSquidDocId | string |
Returns
void
saveDocument
▸ saveDocument(squidDocId
, properties
): undefined
| SquidDocument
Parameters
Name | Type |
---|---|
squidDocId | string |
properties | undefined | SquidDocument |
Returns
undefined
| SquidDocument
sortAndLimitDocs
▸ sortAndLimitDocs(docIdSet
, query
): SquidDocument
[]
Parameters
Name | Type |
---|---|
docIdSet | Set <string > |
query | Query <any > |