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

com.backendless.hive.HiveGeneralWithoutStoreKeyForSortedSet Maven / Gradle / Ivy

The newest version!
package com.backendless.hive;

import com.backendless.core.responder.AdaptingResponder;

import java.util.Set;
import java.util.concurrent.CompletableFuture;


public class HiveGeneralWithoutStoreKeyForSortedSet extends HiveGeneralWithoutStoreKey
{
  HiveGeneralWithoutStoreKeyForSortedSet( String hiveName, StoreType storeType, HiveManagement hiveManagement )
  {
    super( hiveName, storeType, hiveManagement );
  }

  public  CompletableFuture>> difference( Set sortedSetKeys )
  {
    return makeRemoteCallWithoutStoreKey( HiveSortedSet.HIVE_SORTED_SET_ALIAS, "difference", new AdaptingResponder<>( Set.class ), new Object[] { sortedSetKeys } )
            .thenApply( result -> (Set>) result );
  }

  public  CompletableFuture>> intersection( Set sortedSetKeys )
  {
    return makeRemoteCallWithoutStoreKey( HiveSortedSet.HIVE_SORTED_SET_ALIAS, "intersection", new AdaptingResponder<>( Set.class ), new Object[] { sortedSetKeys } )
            .thenApply( result -> (Set>) result );
  }

  public  CompletableFuture>> union( Set sortedSetKeys )
  {
    return makeRemoteCallWithoutStoreKey( HiveSortedSet.HIVE_SORTED_SET_ALIAS, "union", new AdaptingResponder<>( Set.class ), new Object[] { sortedSetKeys } )
            .thenApply( result -> (Set>) result );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy