Package gorsat
Class RowBuffer
java.lang.Object
gorsat.RowBuffer
- All Implemented Interfaces:
java.util.Iterator<org.gorpipe.gor.model.Row>
public class RowBuffer
extends java.lang.Object
implements java.util.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
-
Method Summary
Modifier and Type Method Description voidadd(org.gorpipe.gor.model.Row r)booleanavailable()voidclear()booleancontainsEndRow()booleanenlarge(int newsize)org.gorpipe.gor.model.Rowget(int i)intgetCapacity()intgetIndex()org.gorpipe.gor.model.Row[]getRowArray()booleanhasNext()booleanisEmpty()booleanisFull()booleanisWaiting()org.gorpipe.gor.model.Rownext()RowBuffernextRowBuffer()org.gorpipe.gor.model.Rowpop()voidreduce(int newsize)voidsetNextRowBuffer(RowBuffer buffer)intsize()
-
Constructor Details
-
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()- Specified by:
hasNextin interfacejava.util.Iterator<org.gorpipe.gor.model.Row>
-
next
public org.gorpipe.gor.model.Row next()- Specified by:
nextin interfacejava.util.Iterator<org.gorpipe.gor.model.Row>
-
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()
-