public abstract class QueryDataSet extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryDataSet.EndPoint
For redirect query.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
alreadyReturnedRowNum |
protected boolean |
ascending |
protected int |
columnNum |
protected List<TSDataType> |
dataTypes |
protected QueryDataSet.EndPoint |
endPoint |
protected int |
fetchSize |
protected List<Path> |
paths |
protected int |
rowLimit |
protected int |
rowOffset |
protected boolean |
withoutAllNull
Only if all columns are null, we don't need that row
|
protected boolean |
withoutAnyNull
if any column is null, we don't need that row
|
protected Set<Integer> |
withoutNullColumnsIndex
index set that withoutNullColumns for output data columns
|
| Constructor and Description |
|---|
QueryDataSet() |
QueryDataSet(List<Path> paths,
List<TSDataType> dataTypes) |
QueryDataSet(List<Path> paths,
List<TSDataType> dataTypes,
boolean ascending) |
| Modifier and Type | Method and Description |
|---|---|
void |
decreaseAlreadyReturnedRowNum() |
int |
getColumnNum() |
List<TSDataType> |
getDataTypes() |
QueryDataSet.EndPoint |
getEndPoint() |
List<Path> |
getPaths() |
int |
getRowLimit() |
int |
getRowOffset() |
Set<Integer> |
getWithoutNullColumnsIndex() |
boolean |
hasLimit() |
boolean |
hasNext() |
abstract boolean |
hasNextWithoutConstraint() |
protected void |
initQueryDataSetFields(List<Path> paths,
List<TSDataType> dataTypes,
boolean ascending) |
boolean |
isWithoutAllNull() |
boolean |
isWithoutAnyNull() |
RowRecord |
next()
This method is used for batch query, return RowRecord.
|
abstract RowRecord |
nextWithoutConstraint() |
void |
setColumnNum(int columnNum) |
void |
setDataTypes(List<TSDataType> dataTypes) |
void |
setEndPoint(QueryDataSet.EndPoint endPoint) |
void |
setFetchSize(int fetchSize) |
void |
setRowLimit(int rowLimit) |
void |
setRowOffset(int rowOffset) |
void |
setWithoutAllNull(boolean withoutAllNull) |
void |
setWithoutAnyNull(boolean withoutAnyNull) |
void |
setWithoutNullColumnsIndex(Set<Integer> withoutNullColumnsIndex) |
boolean |
withoutNullFilter(RowRecord rowRecord)
check rowRecord whether satisfy without null condition
|
protected List<TSDataType> dataTypes
protected int rowLimit
protected int rowOffset
protected int alreadyReturnedRowNum
protected int fetchSize
protected boolean ascending
protected QueryDataSet.EndPoint endPoint
protected boolean withoutAnyNull
protected boolean withoutAllNull
protected Set<Integer> withoutNullColumnsIndex
protected int columnNum
public QueryDataSet()
public QueryDataSet(List<Path> paths, List<TSDataType> dataTypes)
public QueryDataSet(List<Path> paths, List<TSDataType> dataTypes, boolean ascending)
protected void initQueryDataSetFields(List<Path> paths, List<TSDataType> dataTypes, boolean ascending)
public void setWithoutNullColumnsIndex(Set<Integer> withoutNullColumnsIndex)
public boolean hasNext()
throws IOException
IOExceptionpublic boolean withoutNullFilter(RowRecord rowRecord)
rowRecord - rowRecordpublic abstract boolean hasNextWithoutConstraint()
throws IOException
IOExceptionpublic RowRecord next() throws IOException
IOExceptionpublic void setFetchSize(int fetchSize)
public abstract RowRecord nextWithoutConstraint() throws IOException
IOExceptionpublic List<TSDataType> getDataTypes()
public void setDataTypes(List<TSDataType> dataTypes)
public int getRowLimit()
public void setRowLimit(int rowLimit)
public int getRowOffset()
public void setRowOffset(int rowOffset)
public boolean hasLimit()
public QueryDataSet.EndPoint getEndPoint()
public void setEndPoint(QueryDataSet.EndPoint endPoint)
public boolean isWithoutAnyNull()
public void setWithoutAnyNull(boolean withoutAnyNull)
public boolean isWithoutAllNull()
public void setWithoutAllNull(boolean withoutAllNull)
public void decreaseAlreadyReturnedRowNum()
public int getColumnNum()
public void setColumnNum(int columnNum)
Copyright © 2022 The Apache Software Foundation. All rights reserved.