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 Details

  • Method Details

    • getRowArray

      public org.gorpipe.gor.model.Row[] getRowArray()
    • containsEndRow

      public boolean containsEndRow()
    • setNextRowBuffer

      public void setNextRowBuffer​(RowBuffer buffer)
    • nextRowBuffer

      public RowBuffer 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:
      hasNext in interface java.util.Iterator<org.gorpipe.gor.model.Row>
    • next

      public org.gorpipe.gor.model.Row next()
      Specified by:
      next in interface java.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()