Class Batch

    • Method Detail

      • isReadOnly

        public final boolean isReadOnly()
        Tells whether or not this batch is read-only.
        Returns:
        true if this batch is read-only
      • next

        public final boolean next()
        Tries to move the current position to the next element in this batch.
        Returns:
        true if moved or false if the end of the batch was reached.
        Throws:
        IndexOutOfBoundsException - if the batch is already at the end.
      • isValidPosition

        public final boolean isValidPosition()
        Tells if the current position points to an valid element.
        Returns:
        false if the cursor is positioned before the first element or at the end.
      • beforeFirst

        public final void beforeFirst()
        Moves the cursor to the front of this Batch, before the first element.

        This causes the batch to be iterable again by calling next().

      • getPosition

        public final int getPosition()
        Returns the current element's position.
        Returns:
        a zero-based index or -1 if at the end of the batch.
      • setPosition

        public final void setPosition​(int newPosition)
        Moves to the element int the specified position.
        Parameters:
        newPosition - a zero-based index.
        Throws:
        IndexOutOfBoundsException - if newPosition is negative or greater than the batch's length.
      • getLength

        public final int getLength()
        Gets the number of elements in this batch
      • getCapacity

        public final int getCapacity()
        Gets the maximum number of elements this batch can contain.
      • at

        protected final int at​(int fieldOffSet)
      • getUInt128

        protected final byte[] getUInt128​(int index)
      • getUInt128

        protected final long getUInt128​(int index,
                                        UInt128 part)
      • putUInt128

        protected final void putUInt128​(int index,
                                        byte[] value)
      • putUInt128

        protected final void putUInt128​(int index,
                                        long leastSignificant,
                                        long mostSignificant)
      • getUInt64

        protected final long getUInt64​(int index)
      • putUInt64

        protected final void putUInt64​(int index,
                                       long value)
      • getUInt32

        protected final int getUInt32​(int index)
      • putUInt32

        protected final void putUInt32​(int index,
                                       int value)
      • getUInt16

        protected final int getUInt16​(int index)
      • putUInt16

        protected final void putUInt16​(int index,
                                       int value)
      • getArray

        protected final byte[] getArray​(int index,
                                        int len)
      • putArray

        protected final void putArray​(int index,
                                      byte[] value)