Class RowFilter.Condition (2.15.0)

public static final class RowFilter.Condition extends GeneratedMessageV3 implements RowFilter.ConditionOrBuilder

A RowFilter which evaluates one of two possible RowFilters, depending on whether or not a predicate RowFilter outputs any cells from the input row. IMPORTANT NOTE: The predicate filter does not execute atomically with the true and false filters, which may lead to inconsistent or unexpected results. Additionally, Condition filters have poor performance, especially when filters are set for the false condition.

Protobuf type google.bigtable.v2.RowFilter.Condition

Static Fields

FALSE_FILTER_FIELD_NUMBER

public static final int FALSE_FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

PREDICATE_FILTER_FIELD_NUMBER

public static final int PREDICATE_FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

TRUE_FILTER_FIELD_NUMBER

public static final int TRUE_FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RowFilter.Condition getDefaultInstance()
Returns
TypeDescription
RowFilter.Condition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RowFilter.Condition.Builder newBuilder()
Returns
TypeDescription
RowFilter.Condition.Builder

newBuilder(RowFilter.Condition prototype)

public static RowFilter.Condition.Builder newBuilder(RowFilter.Condition prototype)
Parameter
NameDescription
prototypeRowFilter.Condition
Returns
TypeDescription
RowFilter.Condition.Builder

parseDelimitedFrom(InputStream input)

public static RowFilter.Condition parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RowFilter.Condition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RowFilter.Condition parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RowFilter.Condition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RowFilter.Condition parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RowFilter.Condition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RowFilter.Condition parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RowFilter.Condition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RowFilter.Condition parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RowFilter.Condition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RowFilter.Condition parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RowFilter.Condition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RowFilter.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RowFilter.Condition> parser()
Returns
TypeDescription
Parser<Condition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RowFilter.Condition getDefaultInstanceForType()
Returns
TypeDescription
RowFilter.Condition

getFalseFilter()

public RowFilter getFalseFilter()

The filter to apply to the input row if predicate_filter does not return any results. If not provided, no results will be returned in the false case.

.google.bigtable.v2.RowFilter false_filter = 3;

Returns
TypeDescription
RowFilter

The falseFilter.

getFalseFilterOrBuilder()

public RowFilterOrBuilder getFalseFilterOrBuilder()

The filter to apply to the input row if predicate_filter does not return any results. If not provided, no results will be returned in the false case.

.google.bigtable.v2.RowFilter false_filter = 3;

Returns
TypeDescription
RowFilterOrBuilder

getParserForType()

public Parser<RowFilter.Condition> getParserForType()
Returns
TypeDescription
Parser<Condition>
Overrides

getPredicateFilter()

public RowFilter getPredicateFilter()

If predicate_filter outputs any cells, then true_filter will be evaluated on the input row. Otherwise, false_filter will be evaluated.

.google.bigtable.v2.RowFilter predicate_filter = 1;

Returns
TypeDescription
RowFilter

The predicateFilter.

getPredicateFilterOrBuilder()

public RowFilterOrBuilder getPredicateFilterOrBuilder()

If predicate_filter outputs any cells, then true_filter will be evaluated on the input row. Otherwise, false_filter will be evaluated.

.google.bigtable.v2.RowFilter predicate_filter = 1;

Returns
TypeDescription
RowFilterOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTrueFilter()

public RowFilter getTrueFilter()

The filter to apply to the input row if predicate_filter returns any results. If not provided, no results will be returned in the true case.

.google.bigtable.v2.RowFilter true_filter = 2;

Returns
TypeDescription
RowFilter

The trueFilter.

getTrueFilterOrBuilder()

public RowFilterOrBuilder getTrueFilterOrBuilder()

The filter to apply to the input row if predicate_filter returns any results. If not provided, no results will be returned in the true case.

.google.bigtable.v2.RowFilter true_filter = 2;

Returns
TypeDescription
RowFilterOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasFalseFilter()

public boolean hasFalseFilter()

The filter to apply to the input row if predicate_filter does not return any results. If not provided, no results will be returned in the false case.

.google.bigtable.v2.RowFilter false_filter = 3;

Returns
TypeDescription
boolean

Whether the falseFilter field is set.

hasPredicateFilter()

public boolean hasPredicateFilter()

If predicate_filter outputs any cells, then true_filter will be evaluated on the input row. Otherwise, false_filter will be evaluated.

.google.bigtable.v2.RowFilter predicate_filter = 1;

Returns
TypeDescription
boolean

Whether the predicateFilter field is set.

hasTrueFilter()

public boolean hasTrueFilter()

The filter to apply to the input row if predicate_filter returns any results. If not provided, no results will be returned in the true case.

.google.bigtable.v2.RowFilter true_filter = 2;

Returns
TypeDescription
boolean

Whether the trueFilter field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RowFilter.Condition.Builder newBuilderForType()
Returns
TypeDescription
RowFilter.Condition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RowFilter.Condition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RowFilter.Condition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RowFilter.Condition.Builder toBuilder()
Returns
TypeDescription
RowFilter.Condition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException