public final class FileListOperations extends Object
Constructor and Description |
---|
FileListOperations(AdvancedCache<?,?> cache,
String indexName,
boolean writeAsync,
int affinitySegmentId) |
Modifier and Type | Method and Description |
---|---|
void |
deleteFileName(String fileName)
Deleted a file from the list of files actively part of the index
|
boolean |
fileExists(String fileName) |
FileMetadata |
getFileMetadata(String fileName) |
String[] |
listFilenames() |
void |
removeAndAdd(String toRemove,
String toAdd)
Optimized implementation to perform both a remove and an add
|
public FileListOperations(AdvancedCache<?,?> cache, String indexName, boolean writeAsync, int affinitySegmentId)
public FileMetadata getFileMetadata(String fileName)
fileName
- public void removeAndAdd(String toRemove, String toAdd)
toRemove
- toAdd
- public String[] listFilenames()
public boolean fileExists(String fileName)
fileName
- public void deleteFileName(String fileName)
fileName
- Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.