@InternalApi(value="For internal usage only") public class ReaderExpressionHelper extends Object
For internal use only - public for technical reasons.
| Modifier and Type | Class and Description |
|---|---|
static class |
ReaderExpressionHelper.QuoteFilterExpressionStream
An OutputStream that performs bigtable reader filter expression language quoting of '@', '{',
and '}' by pre-pending a '@' to each.
|
static class |
ReaderExpressionHelper.QuoteMetaOutputStream
An OutputStream that performs RE2:QuoteMeta as bytes are written.
|
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
ALL_BYTE_BYTES
Constant
ANY_BYTE_BYTES=Bytes.toBytes(ANY_BYTE) |
static String |
ALL_BYTES
Constant
ALL_BYTES="\\C*" |
static byte[] |
ALL_QUALIFIERS_BYTES
Constant
ALL_QUALIFIERS_BYTES=Bytes.toBytes(ALL_QUALIFIERS) |
static String |
ANY_BYTE
Constant
ANY_BYTE="\\C" |
static byte[] |
ANY_BYTE_BYTES
Constant
ANY_BYTE_BYTES=Bytes.toBytes(ANY_BYTE) |
static String |
ANY_BYTES
Constant
ANY_BYTES="\\C+" |
| Constructor and Description |
|---|
ReaderExpressionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.ByteString |
quoteRegularExpression(byte[] unquoted)
quoteRegularExpression.
|
static void |
writeQuotedExpression(OutputStream outputStream,
byte[] unquoted)
Write unquoted to the OutputStream applying both RE2:QuoteMeta and Bigtable reader expression
quoting.
|
static void |
writeQuotedRegularExpression(OutputStream outputStream,
byte[] unquoted)
Write unquoted to the OutputStream applying RE2:QuoteMeta quoting.
|
public static final String ANY_BYTE
ANY_BYTE="\\C"public static final String ANY_BYTES
ANY_BYTES="\\C+"public static final String ALL_BYTES
ALL_BYTES="\\C*"public static final byte[] ANY_BYTE_BYTES
ANY_BYTE_BYTES=Bytes.toBytes(ANY_BYTE)public static final byte[] ALL_BYTE_BYTES
ANY_BYTE_BYTES=Bytes.toBytes(ANY_BYTE)public static final byte[] ALL_QUALIFIERS_BYTES
ALL_QUALIFIERS_BYTES=Bytes.toBytes(ALL_QUALIFIERS)public static void writeQuotedExpression(OutputStream outputStream, byte[] unquoted) throws IOException
outputStream - A stream to write quoted output tounquoted - A byte-array, possibly containing bytes outside of the ASCIIIOException - if any.public static com.google.protobuf.ByteString quoteRegularExpression(byte[] unquoted)
throws IOException
unquoted - an array of byte.IOException - if any.public static void writeQuotedRegularExpression(OutputStream outputStream, byte[] unquoted) throws IOException
outputStream - a OutputStream object.unquoted - an array of byte.IOException - if any.