congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
NamespaceServiceImpl.deleteEntity
Code IndexAdd Tabnine to your IDE (free)

How to use
deleteEntity
method
in
com.dremio.service.namespace.NamespaceServiceImpl

Best Java code snippets using com.dremio.service.namespace.NamespaceServiceImpl.deleteEntity (Showing top 7 results out of 315)

origin: dremio/dremio-oss

@Override
public void deleteHome(final NamespaceKey sourcePath, String version) throws NamespaceException {
 deleteEntity(sourcePath, HOME, version, true);
}
origin: dremio/dremio-oss

@Override
public void deleteSpace(final NamespaceKey spacePath, String version) throws NamespaceException {
 deleteEntity(spacePath, SPACE, version, true);
}
origin: dremio/dremio-oss

@Override
public void deleteSourceChildren(final NamespaceKey sourcePath, String version) throws NamespaceException {
 deleteEntity(sourcePath, SOURCE, version, false);
}
origin: dremio/dremio-oss

@Override
public void deleteSource(final NamespaceKey sourcePath, String version) throws NamespaceException {
 deleteEntity(sourcePath, SOURCE, version, true);
}
origin: dremio/dremio-oss

@Override
public void deleteFolder(final NamespaceKey folderPath, String version) throws NamespaceException {
 deleteEntity(folderPath, FOLDER, version, true);
}
origin: dremio/dremio-oss

@Override
public void deleteDataset(final NamespaceKey datasetPath, String version) throws NamespaceException {
 NameSpaceContainer container = deleteEntity(datasetPath, DATASET, version, true);
 if (container.getDataset().getType() == PHYSICAL_DATASET_SOURCE_FOLDER) {
  // create a folder so that any existing datasets under the folder are now visible
  addOrUpdateFolder(datasetPath,
   new FolderConfig()
    .setFullPathList(datasetPath.getPathComponents())
    .setName(datasetPath.getName())
  );
 }
}
origin: dremio/dremio-oss

@Test
public void testDeleteEntityNotFound() throws Exception {
 try (final KVStoreProvider kvstore = new LocalKVStoreProvider(DremioTest.CLASSPATH_SCAN_RESULT, null, true, false)) {
  kvstore.start();
  final NamespaceServiceImpl ns = new NamespaceServiceImpl(kvstore);
  try {
   ns.deleteEntity(new NamespaceKey(Arrays.asList("does", "not", "exist")), NameSpaceContainer.Type.FOLDER, "123", true);
   fail("deleteEntity should have failed.");
  } catch(NamespaceNotFoundException e) {
   // Expected
  }
 }
}
com.dremio.service.namespaceNamespaceServiceImpldeleteEntity

Popular methods of NamespaceServiceImpl

  • <init>
  • getKey
  • compareSplits
    Return true if new splits are not same as old splits
  • addOrUpdateDataset
  • addOrUpdateFolder
  • createOrUpdateEntity
    Helper method which creates a new entity or update the existing entity with given entity
  • createSourceFolders
  • deleteSplitOrphans
  • deleteSplits
  • doCreateOrUpdateEntity
  • doDeleteEntity
  • doGetEntities
  • doDeleteEntity,
  • doGetEntities,
  • doGetEntity,
  • doGetRootNamespaceContainers,
  • doList,
  • doRenameDataset,
  • doTraverseAndDeleteChildren,
  • doTryCreatePhysicalDataset,
  • ensureIdExistsTypeMatches

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Option (scala)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now