All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aerospike.jdbc.predicate.QueryPredicate Maven / Gradle / Ivy

The newest version!
package com.aerospike.jdbc.predicate;

import com.aerospike.client.exp.Exp;
import com.aerospike.client.query.Filter;

import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Optional;

public interface QueryPredicate {

    Exp toFilterExpression(boolean withPrimaryKey);

    Optional toFilter(String binName);

    boolean isIndexable();

    List getBinNames();

    default Collection getPrimaryKeys() {
        return Collections.emptyList();
    }
}