Tabnine Logo
Directory.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.apache.lucene.store.Directory

Best Java code snippets using org.apache.lucene.store.Directory.toString (Showing top 20 results out of 315)

origin: org.apache.lucene/lucene-core

 @Override
 public String toString() {
  return super.toString()  + " lockFactory=" + lockFactory;
 }
}
origin: org.apache.lucene/lucene-core

@Override
public String toString() {
 return getClass().getSimpleName() + "(" + in.toString() + ")";
}
origin: org.elasticsearch/elasticsearch

  @Override
  public String toString() {
    return "store(" + in.toString() + ")";
  }
}
origin: org.apache.lucene/lucene-core

throw new IndexNotFoundException(dir.toString());
origin: rnewson/couchdb-lucene

  @Override
  public String toString() {
    return writer.getDirectory().toString();
  }
}
origin: Impetus/Kundera

private void copy(Directory src, Directory to) throws IOException
{
  for (String file : src.listAll())
  {
    src.copyFrom(src, file, to.toString(), IOContext.DEFAULT);
  }
}
origin: com.strapdata.elasticsearch/elasticsearch

  @Override
  public String toString() {
    return "store(" + in.toString() + ")";
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

 @Override
 public String toString() {
  return super.toString()  + " lockFactory=" + lockFactory;
 }
}
origin: altamiracorp/blur

public String toString() {
 return _directory.toString();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

  @Override
  public String toString() {
    return "store(" + in.toString() + ")";
  }
}
origin: apache/servicemix-bundles

  @Override
  public String toString() {
    return "store(" + in.toString() + ")";
  }
}
origin: gncloud/fastcatsearch

/**
 * Return a string identifier that uniquely differentiates
 * this Directory instance from other Directory instances.
 * This ID should be the same if two Directory instances
 * (even in different JVMs and/or on different machines)
 * are considered "the same index".  This is how locking
 * "scopes" to the right index.
 */
public String getLockID() {
  return this.toString();
}
origin: gncloud/fastcatsearch

@Override
public String toString() {
 return "TrackingDirectoryWrapper(" + other.toString() + ")";
}
origin: org.infinispan/infinispan-embedded-query

@Override
public String toString() {
 return super.toString()  + " lockFactory=" + lockFactory;
}

origin: harbby/presto-connectors

@Override
public String toString() {
 return super.toString()  + " lockFactory=" + lockFactory;
}

origin: org.infinispan/infinispan-embedded-query

@Override
public String toString() {
 return getClass().getSimpleName() + "(" + in.toString() + ")";
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public String toString() {
 return getClass().getSimpleName() + "(" + in.toString() + ")";
}
origin: apache/jackrabbit-oak

private void checkIfClosed(boolean throwException) {
  if (indexCopier.isClosed()) {
    IndexCopierClosedException e = new IndexCopierClosedException("IndexCopier found to be closed " +
        "while processing" +remote.toString());
    errorInCopy.set(e);
    copyDone.countDown();
    if (throwException) {
      throw e;
    }
  }
}
origin: org.apache.jackrabbit/oak-lucene

private void checkIfClosed(boolean throwException) {
  if (indexCopier.isClosed()) {
    IndexCopierClosedException e = new IndexCopierClosedException("IndexCopier found to be closed " +
        "while processing" +remote.toString());
    errorInCopy.set(e);
    copyDone.countDown();
    if (throwException) {
      throw e;
    }
  }
}
origin: org.infinispan/infinispan-lucene-directory

@Test
public void testGetIndexNameAndToString() throws IOException {
 Cache cache = cacheManager.getCache();
 Directory dir = null;
 try {
   dir = DirectoryBuilder.newDirectoryInstance(cache, cache, cache, INDEX_NAME).chunkSize(BUFFER_SIZE).create();
   AssertJUnit.assertEquals(INDEX_NAME, ((DirectoryLucene) dir).getIndexName());
   AssertJUnit.assertEquals("InfinispanDirectory{indexName=\'" + INDEX_NAME + "\'}", dir.toString());
 } finally {
   if (dir != null) dir.close();
 }
}
org.apache.lucene.storeDirectorytoString

Popular methods of Directory

  • close
    Closes the directory.
  • listAll
    Returns names of all files stored in this directory. The output must be in sorted (UTF-16, java's St
  • openInput
    Opens a stream for reading an existing file. This method must throw either NoSuchFileException or Fi
  • createOutput
    Creates a new, empty file in the directory and returns an IndexOutputinstance for appending data to
  • deleteFile
    Removes an existing file in the directory. This method must throw either NoSuchFileException or File
  • fileLength
    Returns the byte length of a file in the directory. This method must throw either NoSuchFileExceptio
  • fileExists
    Returns true iff a file with the given name exists.
  • sync
    Ensures that any writes to these files are moved to stable storage (made durable). Lucene uses this
  • copy
    Copy contents of a directory src to a directory dest. If a file in src already exists in dest then t
  • obtainLock
    Acquires and returns a Lock for a file with the given name.
  • copyFrom
    Copies an existing src file from directory fromto a non-existent file dest in this directory.
  • openChecksumInput
    Opens a checksum-computing stream for reading an existing file. This method must throw either NoSuch
  • copyFrom,
  • openChecksumInput,
  • fileModified,
  • clearLock,
  • list,
  • makeLock,
  • createTempOutput,
  • renameFile,
  • touchFile

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Option (scala)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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