Class BaseKeyExpression

    • Constructor Detail

      • BaseKeyExpression

        public BaseKeyExpression()
    • Method Detail

      • getSubKey

        @Nonnull
        public final KeyExpression getSubKey​(int start,
                                             int end)
        Description copied from interface: KeyExpression
        Returns a sub-set of the key expression.
        Specified by:
        getSubKey in interface KeyExpression
        Parameters:
        start - starting position
        end - ending position
        Returns:
        a key expression for the subkey between start and end
      • isPrefixKey

        public boolean isPrefixKey​(@Nonnull
                                   KeyExpression key)
        Description copied from interface: KeyExpression
        Check whether a key is a prefix of another key.
        Specified by:
        isPrefixKey in interface KeyExpression
        Parameters:
        key - the whole key to check
        Returns:
        true if prefix is a left subset of key