class documentation

class ComparisonType(enum.IntEnum): (source)

View In Hierarchy

ComparisonType is an enumeration of the possible comparison types for the `get()` operation.

Constant CEILING Ceiling option will make the get operation to search for the record whose key is the lowest key >= to the supplied key.
Constant EQUAL Equal sets the Get() operation to compare the stored key for equality.
Constant FLOOR Floor option will make the get operation to search for the record whose key is the highest key <= to the supplied key.
Constant HIGHER Higher option will make the get operation to search for the record whose key is strictly > to the supplied key.
Constant LOWER Lower option will make the get operation to search for the record whose key is strictly < to the supplied key.

Ceiling option will make the get operation to search for the record whose key is the lowest key >= to the supplied key.

Value
int(pb.KeyComparisonType.CEILING)

Equal sets the Get() operation to compare the stored key for equality.

Value
int(pb.KeyComparisonType.EQUAL)

Floor option will make the get operation to search for the record whose key is the highest key <= to the supplied key.

Value
int(pb.KeyComparisonType.FLOOR)

Higher option will make the get operation to search for the record whose key is strictly > to the supplied key.

Value
int(pb.KeyComparisonType.HIGHER)

Lower option will make the get operation to search for the record whose key is strictly < to the supplied key.

Value
int(pb.KeyComparisonType.LOWER)