public final class RecordStream
extends java.lang.Object
Constructor and Description |
---|
RecordStream(java.util.List<Record> records, int startIx) |
RecordStream(java.util.List<Record> inputList, int startIndex, int endIx)
Creates a RecordStream bounded by startIndex and endIndex
|
Modifier and Type | Method and Description |
---|---|
int |
getCountRead() |
Record |
getNext() |
boolean |
hasNext() |
java.lang.Class<? extends Record> |
peekNextClass() |
Record |
peekNextRecord() |
int |
peekNextSid() |
public RecordStream(java.util.List<Record> inputList, int startIndex, int endIx)
inputList
- the list to iterate over
(inputList - 要迭代的列表)
startIndex
- the start index within the list
(startIndex - 列表中的起始索引)
endIx
- the end index within the list, which is the index of the end element + 1
(endIx - 列表中的结束索引,即结束元素的索引 + 1)
public RecordStream(java.util.List<Record> records, int startIx)
public boolean hasNext()
public Record getNext()
public java.lang.Class<? extends Record> peekNextClass()
Class
of the next Record.
null
if this stream is exhausted.
(下一条记录的类别。如果此流已用尽,则为 null。)
public Record peekNextRecord()
null
if this stream is exhausted.
(下一条记录。如果此流已用尽,则为 null。)
public int peekNextSid()
public int getCountRead()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.