Package ai.chalk.internal.request.models
Record Class OnlineQueryResultFeather
java.lang.Object
java.lang.Record
ai.chalk.internal.request.models.OnlineQueryResultFeather
- All Implemented Interfaces:
AutoCloseable
public record OnlineQueryResultFeather(Boolean hasData, org.apache.arrow.vector.table.Table scalarData, Map<String,org.apache.arrow.vector.table.Table> groupsData, ServerError[] errors, QueryMeta meta, org.apache.arrow.memory.BufferAllocator allocator)
extends Record
implements AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionOnlineQueryResultFeather(Boolean hasData, org.apache.arrow.vector.table.Table scalarData, Map<String, org.apache.arrow.vector.table.Table> groupsData, ServerError[] errors, QueryMeta meta, org.apache.arrow.memory.BufferAllocator allocator) Creates an instance of aOnlineQueryResultFeatherrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.arrow.memory.BufferAllocatorReturns the value of theallocatorrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.static OnlineQueryResultFeatherfromBytes(byte[] bytes, org.apache.arrow.memory.BufferAllocator allocator) Returns the value of thegroupsDatarecord component.hasData()Returns the value of thehasDatarecord component.final inthashCode()Returns a hash code value for this object.meta()Returns the value of themetarecord component.org.apache.arrow.vector.table.TableReturns the value of thescalarDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OnlineQueryResultFeather
public OnlineQueryResultFeather(Boolean hasData, org.apache.arrow.vector.table.Table scalarData, Map<String, org.apache.arrow.vector.table.Table> groupsData, ServerError[] errors, QueryMeta meta, org.apache.arrow.memory.BufferAllocator allocator) Creates an instance of aOnlineQueryResultFeatherrecord class.- Parameters:
hasData- the value for thehasDatarecord componentscalarData- the value for thescalarDatarecord componentgroupsData- the value for thegroupsDatarecord componenterrors- the value for theerrorsrecord componentmeta- the value for themetarecord componentallocator- the value for theallocatorrecord component
-
-
Method Details
-
fromBytes
public static OnlineQueryResultFeather fromBytes(byte[] bytes, org.apache.arrow.memory.BufferAllocator allocator) throws ChalkException - Throws:
ChalkException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hasData
Returns the value of thehasDatarecord component.- Returns:
- the value of the
hasDatarecord component
-
scalarData
public org.apache.arrow.vector.table.Table scalarData()Returns the value of thescalarDatarecord component.- Returns:
- the value of the
scalarDatarecord component
-
groupsData
Returns the value of thegroupsDatarecord component.- Returns:
- the value of the
groupsDatarecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
meta
Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-
allocator
public org.apache.arrow.memory.BufferAllocator allocator()Returns the value of theallocatorrecord component.- Returns:
- the value of the
allocatorrecord component
-