@Generated(value="com.ibm.cos.v2:codegen") public class RecordsEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecordsEvent.Builder,RecordsEvent>, SelectObjectContentEventStream
The container for the records event.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecordsEvent.Builder |
protected static class |
RecordsEvent.BuilderImpl |
SelectObjectContentEventStream.EventTypeUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
RecordsEvent(RecordsEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SelectObjectContentResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype of
RecordsEvent. |
static RecordsEvent.Builder |
builder() |
RecordsEvent |
copy(Consumer<? super RecordsEvent.Builder> modifier)
A convenience method for calling
ToCopyableBuilder.toBuilder(), updating the returned builder and then calling
SdkBuilder.build(). |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
SdkBytes |
payload()
The byte array of partial, one or more result records.
|
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RecordsEvent.Builder> |
serializableBuilderClass() |
RecordsEvent.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcontBuilder, endBuilder, progressBuilder, recordsBuilder, sdkEventType, statsBuilderprotected RecordsEvent(RecordsEvent.BuilderImpl builder)
public final SdkBytes payload()
The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be
self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record
across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the
SDKforJava) handle this behavior by creating a ByteStream out of the response by default. Other
clients might not handle this behavior by default. In those cases, you must aggregate the results on the client
side and parse the response.
ByteStream out of the
response by default. Other clients might not handle this behavior by default. In those cases, you must
aggregate the results on the client side and parse the response.public RecordsEvent.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<RecordsEvent.Builder,RecordsEvent>public static RecordsEvent.Builder builder()
public static Class<? extends RecordsEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojoSdkPojo class,
and is generated based on a service model.
If an SdkPojo class does not have any inherited fields, equalsBySdkFields
and equals are essentially the same.
equalsBySdkFields in interface SdkPojoobj - the object to be compared withpublic final String toString()
public final RecordsEvent copy(Consumer<? super RecordsEvent.Builder> modifier)
ToCopyableBuilderToCopyableBuilder.toBuilder(), updating the returned builder and then calling
SdkBuilder.build(). This is useful for making small modifications to the existing object.copy in interface ToCopyableBuilder<RecordsEvent.Builder,RecordsEvent>modifier - A function that mutates this immutable object using the provided builder.public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojopublic void accept(SelectObjectContentResponseHandler.Visitor visitor)
RecordsEvent.accept in interface SelectObjectContentEventStreamvisitor - Visitor to invoke.Copyright © 2026. All rights reserved.