RowResultScanner (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc.scanner

Class RowResultScanner<T>

    • Constructor Detail

      • RowResultScanner

        public RowResultScanner(com.google.api.gax.rpc.ServerStream<T> stream,
                                T[] arr)
        Parameters:
        stream - a Stream of type Row/FlatRow.
        arr - An array of type T length zero.
    • Method Detail

      • next

        public T next()
        Description copied from interface: ResultScanner
        Read the next row and block until a row is available. Will return null on end-of-stream.
        Specified by:
        next in interface ResultScanner<T>
        Returns:
        a T object.
      • next

        public T[] next(int count)
        Description copied from interface: ResultScanner
        Read the next N rows where N <= count. Will block until count are available or end-of-stream is reached.
        Specified by:
        next in interface ResultScanner<T>
        Parameters:
        count - The number of rows to read.
        Returns:
        an array of T objects.
      • available

        public int available()
        Description copied from interface: ResultScanner
        Check number of rows immediately available. Calls to ResultScanner.next() will not block on network for at least n results.
        Specified by:
        available in interface ResultScanner<T>
        Returns:
        a int.