public static interface GetPropertygraphStreamResponse.Builder extends NeptunedataResponse.Builder, SdkPojo, CopyableBuilder<GetPropertygraphStreamResponse.Builder,GetPropertygraphStreamResponse>
| Modifier and Type | Method and Description |
|---|---|
GetPropertygraphStreamResponse.Builder |
format(String format)
Serialization format for the change records being returned.
|
GetPropertygraphStreamResponse.Builder |
lastEventId(Map<String,String> lastEventId)
Sequence identifier of the last change in the stream response.
|
GetPropertygraphStreamResponse.Builder |
lastTrxTimestampInMillis(Long lastTrxTimestampInMillis)
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
|
GetPropertygraphStreamResponse.Builder |
records(Collection<PropertygraphRecord> records)
An array of serialized change-log stream records included in the response.
|
GetPropertygraphStreamResponse.Builder |
records(Consumer<PropertygraphRecord.Builder>... records)
An array of serialized change-log stream records included in the response.
|
GetPropertygraphStreamResponse.Builder |
records(PropertygraphRecord... records)
An array of serialized change-log stream records included in the response.
|
GetPropertygraphStreamResponse.Builder |
totalRecords(Integer totalRecords)
The total number of records in the response.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetPropertygraphStreamResponse.Builder lastEventId(Map<String,String> lastEventId)
Sequence identifier of the last change in the stream response.
An event ID is composed of two fields: a commitNum, which identifies a transaction that changed
the graph, and an opNum, which identifies a specific operation within that transaction:
lastEventId - Sequence identifier of the last change in the stream response.
An event ID is composed of two fields: a commitNum, which identifies a transaction that
changed the graph, and an opNum, which identifies a specific operation within that
transaction:
GetPropertygraphStreamResponse.Builder lastTrxTimestampInMillis(Long lastTrxTimestampInMillis)
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
lastTrxTimestampInMillis - The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.GetPropertygraphStreamResponse.Builder format(String format)
Serialization format for the change records being returned. Currently, the only supported value is
PG_JSON.
format - Serialization format for the change records being returned. Currently, the only supported value is
PG_JSON.GetPropertygraphStreamResponse.Builder records(Collection<PropertygraphRecord> records)
An array of serialized change-log stream records included in the response.
records - An array of serialized change-log stream records included in the response.GetPropertygraphStreamResponse.Builder records(PropertygraphRecord... records)
An array of serialized change-log stream records included in the response.
records - An array of serialized change-log stream records included in the response.GetPropertygraphStreamResponse.Builder records(Consumer<PropertygraphRecord.Builder>... records)
An array of serialized change-log stream records included in the response.
This is a convenience method that creates an instance of thePropertygraphRecord.Builder avoiding the need to
create one manually via
PropertygraphRecord.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #records(List.
records - a consumer that will call methods on
PropertygraphRecord.Builder#records(java.util.Collection) GetPropertygraphStreamResponse.Builder totalRecords(Integer totalRecords)
The total number of records in the response.
totalRecords - The total number of records in the response.Copyright © 2023. All rights reserved.