ReaderExpressionHelper (Cloud Bigtable HBase Client for Java 0.9.3-SNAPSHOT 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_QUALIFIERS_BYTES

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

        public static final byte[] ALL_FAMILIES_BYTES
        Constant ALL_FAMILIES_BYTES=Bytes.toBytes(ALL_FAMILIES)
      • ALL_VERSIONS_BYTES

        public static final byte[] ALL_VERSIONS_BYTES
        Constant ALL_VERSIONS_BYTES=Bytes.toBytes(ALL_VERSIONS)
      • INTERLEAVE_CHARACTERS

        public static final byte[] INTERLEAVE_CHARACTERS
        Constant INTERLEAVE_CHARACTERS=Bytes.toBytes(" + ")
      • PIPE_CHARACTER_BYTES

        public static final byte[] PIPE_CHARACTER_BYTES
        Constant PIPE_CHARACTER_BYTES=Bytes.toBytes(" | ")
    • Constructor Detail

      • ReaderExpressionHelper

        public ReaderExpressionHelper()
    • Method Detail

      • writeFilterQuotedExpression

        public static void writeFilterQuotedExpression(byte[] unquoted,
                                                       OutputStream outputStream)
                                                throws IOException
        Write unquoted to the OutputStream applying just Bigtable reader expression quoting. Used when the supplied value is NOT a regular expression.
        Parameters:
        unquoted - A byte-array, possibly containing bytes outside of the ASCII
        outputStream - A stream to write quoted output to
        Throws:
        IOException - if any.
      • 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 byte[] 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.


Send feedback about...

Cloud Bigtable Documentation