List of usage examples for org.apache.cassandra.db Directories getDirectoryForNewSSTables
public File getDirectoryForNewSSTables()
From source file:com.stratio.cassandra.lucene.IndexOptions.java
License:Apache License
private static Path parsePath(Map<String, String> options, CFMetaData tableMetadata, IndexMetadata indexMetadata) {//from w ww . jav a2 s . com String pathOption = options.get(DIRECTORY_PATH_OPTION); if (pathOption != null) { return Paths.get(pathOption); } else if (indexMetadata != null) { Directories directories = new Directories(tableMetadata); String basePath = directories.getDirectoryForNewSSTables().getAbsolutePath(); return Paths.get(basePath + File.separator + INDEXES_DIR_NAME + File.separator + indexMetadata.name); } return null; }