Package gorsat

Class 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 Detail

      • RowBuffer

        public RowBuffer​(int capacity,
                         RowBuffer next)
      • RowBuffer

        public RowBuffer​(int capacity,
                         int maxBytes,
                         RowBuffer next)
      • RowBuffer

        public RowBuffer​(RowBuffer next)
      • RowBuffer

        public RowBuffer​(int capacity)
      • RowBuffer

        public RowBuffer()
    • Method Detail

      • 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()