BufferedOakDirectory extends Directory { public static boolean isEnableWritingSingleBlobIndexFile() { return enableWritingSingleBlobIndexFile; } BufferedOakDirectory(@NotNull NodeBuilder builder,
                                @NotNull String dataNodeName,
                                @NotNull LuceneIndexDefinition definition,
                                @Nullable BlobStore blobStore);  BufferedOakDirectory(@NotNull NodeBuilder builder,
                                @NotNull String dataNodeName,
                                @NotNull LuceneIndexDefinition definition,
                                @Nullable BlobStore blobStore,
                                @NotNull ActiveDeletedBlobCollectorFactory.BlobDeletionCallback blobDeletionCallback); static void setEnableWritingSingleBlobIndexFile(boolean val); static boolean isEnableWritingSingleBlobIndexFile(); @Override String[] listAll(); @Override boolean fileExists(String name); @Override void deleteFile(String name); @Override long fileLength(String name); @Override IndexOutput createOutput(String name, IOContext context); @Override void sync(Collection<String> names); @Override IndexInput openInput(String name, IOContext context); @Override Lock makeLock(String name); @Override void clearLock(String name); @Override void close(); @Override void setLockFactory(LockFactory lockFactory); @Override LockFactory getLockFactory(); static final String ENABLE_WRITING_SINGLE_BLOB_INDEX_FILE_PARAM; }
@Test public void defaultValue() { BufferedOakDirectory bufferedOakDirectory = (BufferedOakDirectory)createDir(builder, true); assertTrue("Flag not setting as set by command line flag", bufferedOakDirectory.isEnableWritingSingleBlobIndexFile()); }