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

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

The newest version!
package com.backendless.hive;

import com.backendless.core.responder.AdaptingResponder;

import java.util.List;
import java.util.concurrent.CompletableFuture;


public class HiveGeneralWithoutStoreKey extends HiveGeneral
{
  protected final HiveManagement hiveManagement;

  HiveGeneralWithoutStoreKey( String hiveName, StoreType storeType, HiveManagement hiveManagement )
  {
    super( hiveName, storeType, null );
    this.hiveManagement = hiveManagement;
  }


  public CompletableFuture delete( List keys )
  {
    return makeRemoteCallForGeneral( "del", new AdaptingResponder<>( Long.class ), new Object[] { keys } );
  }

  public CompletableFuture exists( List keys )
  {
    return makeRemoteCallForGeneral( "exists", new AdaptingResponder<>( Long.class ), new Object[] { keys } );
  }

  public CompletableFuture touch( List keys )
  {
    return makeRemoteCallForGeneral( "touch", new AdaptingResponder<>( Long.class ), new Object[] { keys } );
  }

  public CompletableFuture keys( String filterPattern, String cursor, int pageSize )
  {
    return hiveManagement.keys( hiveName, storeType, filterPattern, cursor, pageSize );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy