Package gorsat
Class RowBuffer
java.lang.Object
gorsat.RowBuffer
- All Implemented Interfaces:
Iterator<org.gorpipe.gor.model.Row>
An array of GOR row objects implementing iterator interface
The user class, BatchedReadSource, ensures thread safety
Created by sigmar on 24/11/2016.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.gorpipe.gor.model.Row r) booleanvoidclear()booleanbooleanenlarge(int newsize) org.gorpipe.gor.model.Rowget(int i) intintgetIndex()org.gorpipe.gor.model.Row[]booleanhasNext()booleanisEmpty()booleanisFull()booleanorg.gorpipe.gor.model.Rownext()org.gorpipe.gor.model.Rowpop()voidreduce(int newsize) voidsetNextRowBuffer(RowBuffer buffer) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
RowBuffer
-
RowBuffer
-
RowBuffer
-
RowBuffer
public RowBuffer(int capacity) -
RowBuffer
public RowBuffer()
-
-
Method Details
-
getRowArray
public org.gorpipe.gor.model.Row[] getRowArray() -
containsEndRow
public boolean containsEndRow() -
setNextRowBuffer
-
nextRowBuffer
-
enlarge
public boolean enlarge(int newsize) -
reduce
public void reduce(int newsize) -
get
public org.gorpipe.gor.model.Row get(int i) -
add
public void add(org.gorpipe.gor.model.Row r) -
pop
public org.gorpipe.gor.model.Row pop() -
hasNext
public boolean hasNext() -
next
public org.gorpipe.gor.model.Row next() -
clear
public void clear() -
getIndex
public int getIndex() -
isWaiting
public boolean isWaiting() -
available
public boolean available() -
isFull
public boolean isFull() -
isEmpty
public boolean isEmpty() -
size
public int size() -
getCapacity
public int getCapacity()
-