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

com.hazelcast.org.apache.calcite.linq4j.ExtendedOrderedEnumerable Maven / Gradle / Ivy

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to you under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hazelcast.org.apache.calcite.linq4j;

import com.hazelcast.org.apache.calcite.linq4j.function.Function1;

import java.util.Comparator;

/**
 * Extension methods for {@link OrderedEnumerable}.
 *
 * @param  Element type
 */
public interface ExtendedOrderedEnumerable extends Enumerable {
  /**
   * Performs a subsequent ordering of the elements in an
   * {@link OrderedEnumerable} according to a key, using a specified
   * comparator.
   *
   * 

The functionality provided by this method is like that provided by * {@link #thenBy(com.hazelcast.org.apache.calcite.linq4j.function.Function1, java.util.Comparator) thenBy} * or * {@link #thenByDescending(com.hazelcast.org.apache.calcite.linq4j.function.Function1, java.util.Comparator) thenByDescending}, * depending on whether descending is true or false. They both perform a * subordinate ordering of an already sorted sequence of type * {@link OrderedEnumerable}.

*/ OrderedEnumerable createOrderedEnumerable( Function1 keySelector, Comparator comparator, boolean descending); /** * Performs a subsequent ordering of the elements in a sequence in * ascending order according to a key. */ > OrderedEnumerable thenBy( Function1 keySelector); /** * Performs a subsequent ordering of the elements in a sequence in * ascending order according to a key, using a specified comparator. */ OrderedEnumerable thenBy(Function1 keySelector, Comparator comparator); /** * Performs a subsequent ordering of the elements in a sequence in * descending order according to a key. */ > OrderedEnumerable thenByDescending( Function1 keySelector); /** * Performs a subsequent ordering of the elements in a sequence in * descending order according to a key, using a specified comparator. */ OrderedEnumerable thenByDescending(Function1 keySelector, Comparator comparator); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy