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

com.backendless.hive.HiveGeneralWithoutStoreKeyForSet 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 HiveGeneralWithoutStoreKeyForSet extends HiveGeneralWithoutStoreKey
{
  HiveGeneralWithoutStoreKeyForSet( String hiveName, StoreType storeType, HiveManagement hiveManagement )
  {
    super( hiveName, storeType, hiveManagement );
  }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy