ReaderExpressionHelper (Cloud Bigtable HBase Client for Java 1.5.0 API)

com.google.cloud.bigtable.hbase.adapters.read

Class ReaderExpressionHelper

  • java.lang.Object
    • com.google.cloud.bigtable.hbase.adapters.read.ReaderExpressionHelper


  • public class ReaderExpressionHelper
    extends Object
    Methods and constants to help build a bigtable reader expression // TODO(AngusDavis): Move more ScanAdapter and FilterAdapter writing logic to here.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Field Detail

      • ANY_BYTE_BYTES

        public static final byte[] ANY_BYTE_BYTES
        Constant ANY_BYTE_BYTES=Bytes.toBytes(ANY_BYTE)
      • ALL_BYTE_BYTES

        public static final byte[] ALL_BYTE_BYTES
        Constant ANY_BYTE_BYTES=Bytes.toBytes(ANY_BYTE)
      • ALL_QUALIFIERS_BYTES

        public static final byte[] ALL_QUALIFIERS_BYTES
        Constant ALL_QUALIFIERS_BYTES=Bytes.toBytes(ALL_QUALIFIERS)
    • Constructor Detail

      • ReaderExpressionHelper

        public ReaderExpressionHelper()
    • Method Detail

      • writeQuotedExpression

        public static void writeQuotedExpression(OutputStream outputStream,
                                                 byte[] unquoted)
                                          throws IOException
        Write unquoted to the OutputStream applying both RE2:QuoteMeta and Bigtable reader expression quoting.
        Parameters:
        outputStream - A stream to write quoted output to
        unquoted - A byte-array, possibly containing bytes outside of the ASCII
        Throws:
        IOException - if any.
      • quoteRegularExpression

        public static ByteString quoteRegularExpression(byte[] unquoted)
                                                 throws IOException

        quoteRegularExpression.

        Parameters:
        unquoted - an array of byte.
        Returns:
        an array of byte.
        Throws:
        IOException - if any.
      • writeQuotedRegularExpression

        public static void writeQuotedRegularExpression(OutputStream outputStream,
                                                        byte[] unquoted)
                                                 throws IOException
        Write unquoted to the OutputStream applying RE2:QuoteMeta quoting.
        Parameters:
        outputStream - a OutputStream object.
        unquoted - an array of byte.
        Throws:
        IOException - if any.


Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Bigtable Documentation