Skip to main content

@terascope/elasticsearch-asset-apis / elasticsearch-reader-api/interfaces

elasticsearch-reader-api/interfaces

Enumerations

EnumerationDescription
FetchResponseType-
IDType-

Interfaces

InterfaceDescription
CountFn-
DateConfig-
DateSegments-
DateSlicerArgs-
DateSlicerConfig-
DateSlicerRangeThis is used for an individual starting point for a single range
DetermineSliceResults-
ESReaderOptions-
GetIntervalFnThis function is used to determine the interval for each slicer,
GetIntervalResult-
IDSlicerArgsBuilt from the config and IDSlicerConfig
IDSlicerConfig-
IDSlicerRangeAn array of key spaces
InputDateSegments-
ReaderClientThis is used for as the internal elasticsearch client in reader, this is designed as an abstraction so that spaces client will work with it is own specific optimizations
ReaderSliceThis can be used to count or fetch and is the metadata used stored on a slice
ReaderSliceMetadataThis information is just used during the slicing logic and not the fetch or count request
SlicerArgs-
SlicerDateConfig-
SlicerDates-
SpacesAPIConfig-
StartPointConfig-

Type Aliases

DateSlicerMetadata

DateSlicerMetadata = Record<number, object & GetIntervalResult>

Defined in: elasticsearch-reader-api/interfaces.ts:266


DateSlicerMetadataHook()

DateSlicerMetadataHook = (metadata) => Promise<void>

Defined in: elasticsearch-reader-api/interfaces.ts:270

Parameters

ParameterType
metadataDateSlicerMetadata

Returns

Promise<void>


DateSlicerRanges

DateSlicerRanges = readonly (DateSlicerRange | null)[]

Defined in: elasticsearch-reader-api/interfaces.ts:118

This used a list of all of the Date slicer ranges, the index of the range will correlate with the slicer instance


DateSlicerResults

DateSlicerResults = ReaderSlice | readonly ReaderSlice[] | null

Defined in: elasticsearch-reader-api/interfaces.ts:261

What a date slicer fn will return


IDSlicerResults

IDSlicerResults = ReaderSlice | null

Defined in: elasticsearch-reader-api/interfaces.ts:262


IDStartingRange

IDStartingRange = Pick<IDSlicerRange, "keys">

Defined in: elasticsearch-reader-api/interfaces.ts:90

This used a list of all of the ID slicer ranges, the index of the range will correlate with the slicer instance


IDStartingRanges

IDStartingRanges = IDStartingRange[]

Defined in: elasticsearch-reader-api/interfaces.ts:91


LifeCycle

LifeCycle = "once" | "persistent"

Defined in: elasticsearch-reader-api/interfaces.ts:272


ParsedInterval

ParsedInterval = readonly [number, moment.unitOfTime.Base]

Defined in: elasticsearch-reader-api/interfaces.ts:264


RecoveryData

RecoveryData = object

Defined in: elasticsearch-reader-api/interfaces.ts:199

Properties

lastSlice?

optional lastSlice: object

Defined in: elasticsearch-reader-api/interfaces.ts:201

Index Signature

[prop: string]: any

The slice request can contain any metadata

NameTypeDescriptionDefined in
request_worker?stringA reserved key for sending work to a particular workerelasticsearch-reader-api/interfaces.ts:203
slicer_id

slicer_id: number

Defined in: elasticsearch-reader-api/interfaces.ts:200