public class StatementResult extends Object implements CloseableIterator<RowData>
FetchResultsResponseBody
.CloseableIterator.IteratorAdapter<E>
EMPTY_INSTANCE
Constructor and Description |
---|
StatementResult(ResolvedSchema resultSchema,
CloseableIterator<RowData> resultProvider,
boolean isQueryResult,
ResultKind resultKind,
JobID jobID) |
StatementResult(ResolvedSchema resultSchema,
CloseableIterator<RowData> resultProvider,
boolean isQueryResult,
ResultKind resultKind,
JobID jobID,
RowDataToStringConverter toStringConverter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
JobID |
getJobId() |
ResultKind |
getResultKind() |
ResolvedSchema |
getResultSchema() |
RowDataToStringConverter |
getRowDataToStringConverter() |
boolean |
hasNext() |
boolean |
isQueryResult() |
RowData |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapterForIterator, adapterForIterator, empty, flatten, fromList, ofElement, ofElements
forEachRemaining, remove
public StatementResult(ResolvedSchema resultSchema, CloseableIterator<RowData> resultProvider, boolean isQueryResult, ResultKind resultKind, @Nullable JobID jobID)
@VisibleForTesting public StatementResult(ResolvedSchema resultSchema, CloseableIterator<RowData> resultProvider, boolean isQueryResult, ResultKind resultKind, @Nullable JobID jobID, RowDataToStringConverter toStringConverter)
public ResolvedSchema getResultSchema()
public boolean isQueryResult()
public ResultKind getResultKind()
public RowDataToStringConverter getRowDataToStringConverter()
public void close()
close
in interface AutoCloseable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.