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

org.vertexium.query.EmptyResultsGraphQuery Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.query;

import org.vertexium.*;
import org.vertexium.scoring.ScoringStrategy;
import org.vertexium.sorting.SortingStrategy;

import java.util.ArrayList;
import java.util.Collection;
import java.util.EnumSet;
import java.util.List;

public class EmptyResultsGraphQuery implements Query {
    private List aggregations = new ArrayList<>();

    @Override
    public QueryResultsIterable vertices() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable vertices(final FetchHints fetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable vertexIds() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable vertexIds(EnumSet idFetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable edges() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable edges(final FetchHints fetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable edgeIds() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable edgeIds(EnumSet idFetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable elements() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable elements(final FetchHints fetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable elementIds() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable elementIds(EnumSet idFetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable extendedDataRows() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable extendedDataRows(FetchHints fetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable extendedDataRowIds() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable extendedDataRowIds(EnumSet idFetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable search(EnumSet objectTypes, FetchHints fetchHints) {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public QueryResultsIterable search() {
        return new EmptyResultsQueryResultsIterable<>();
    }

    @Override
    public  Query range(String propertyName, T startValue, T endValue) {
        return this;
    }

    @Override
    public  Query range(String propertyName, T startValue, boolean inclusiveStartValue, T endValue, boolean inclusiveEndValue) {
        return this;
    }

    @Override
    public Query hasId(String... ids) {
        return this;
    }

    @Override
    public Query hasId(Iterable ids) {
        return this;
    }

    @Override
    public Query hasEdgeLabel(String... edgeLabels) {
        return this;
    }

    @Override
    public Query hasEdgeLabel(Collection edgeLabels) {
        return this;
    }

    @Override
    public Query hasAuthorization(String... authorizations) {
        return this;
    }

    @Override
    public Query hasAuthorization(Iterable authorizations) {
        return this;
    }

    @Override
    public Query hasExtendedData(ElementType elementType, String elementId) {
        return this;
    }

    @Override
    public Query hasExtendedData(String tableName) {
        return this;
    }

    @Override
    public Query hasExtendedData(ElementType elementType, String elementId, String tableName) {
        return this;
    }

    @Override
    public Query hasExtendedData(Iterable filters) {
        return this;
    }

    @Override
    public  Query has(String propertyName, T value) {
        return this;
    }

    @Override
    public  Query hasNot(String propertyName, T value) {
        return this;
    }

    @Override
    public  Query has(String propertyName, Predicate predicate, T value) {
        return this;
    }

    @Override
    public  Query has(Class dataType, Predicate predicate, T value) {
        return this;
    }

    @Override
    public Query has(Class dataType) {
        return this;
    }

    @Override
    public Query hasNot(Class dataType) {
        return this;
    }

    @Override
    public  Query has(Iterable propertyNames) {
        return this;
    }

    @Override
    public  Query hasNot(Iterable propertyNames) {
        return this;
    }

    @Override
    public  Query has(Iterable propertyNames, Predicate predicate, T value) {
        return this;
    }

    @Override
    public Query has(String propertyName) {
        return this;
    }

    @Override
    public Query hasNot(String propertyName) {
        return this;
    }

    @Override
    public Query skip(int count) {
        return this;
    }

    @Override
    public Query limit(Integer count) {
        return this;
    }

    @Override
    public Query limit(Long count) {
        return this;
    }

    @Override
    public Query minScore(double score) {
        return this;
    }

    @Override
    public Query scoringStrategy(ScoringStrategy scoringStrategy) {
        return this;
    }

    @Override
    public Query sort(String propertyName, SortDirection direction) {
        return this;
    }

    @Override
    public Query sort(SortingStrategy sortingStrategy, SortDirection direction) {
        return this;
    }

    @Override
    public boolean isAggregationSupported(Aggregation aggregation) {
        return false;
    }

    @Override
    public Query addAggregation(Aggregation aggregation) {
        aggregations.add(aggregation);
        return this;
    }

    @Override
    public Iterable getAggregations() {
        return aggregations;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy