Class TXFileStore<V extends TXRecord>

  • All Implemented Interfaces:
    TXStore<V>, edu.uiuc.ncsa.security.core.Store<V>, Map<edu.uiuc.ncsa.security.core.Identifier,​V>

    public class TXFileStore<V extends TXRecord>
    extends edu.uiuc.ncsa.security.storage.FileStore<V>
    implements TXStore<V>

    Created by Jeff Gaynor
    on 12/14/20 at 9:02 AM

    • Field Summary

      • Fields inherited from class edu.uiuc.ncsa.security.storage.FileStore

        indexDirectory, storageDirectory
      • Fields inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore

        converter, identifiableProvider, initializer
      • Fields inherited from interface edu.uiuc.ncsa.security.core.Store

        VERSION_TAG
    • Constructor Summary

      Constructors 
      Constructor Description
      TXFileStore​(File directory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles)  
      TXFileStore​(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter, boolean removeEmptyFiles)  
    • Constructor Detail

      • TXFileStore

        public TXFileStore​(File storeDirectory,
                           File indexDirectory,
                           edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider,
                           edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter,
                           boolean removeEmptyFiles)
      • TXFileStore

        public TXFileStore​(File directory,
                           edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp,
                           edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp,
                           boolean removeEmptyFiles)
    • Method Detail

      • getMapConverter

        public edu.uiuc.ncsa.security.storage.data.MapConverter<V> getMapConverter()
        Specified by:
        getMapConverter in interface TXStore<V extends TXRecord>
        Overrides:
        getMapConverter in class edu.uiuc.ncsa.security.storage.FileStore<V extends TXRecord>
      • getByParentID

        public List<V> getByParentID​(edu.uiuc.ncsa.security.core.Identifier parentID)
        Description copied from interface: TXStore
        Get a list of all records for a given parent.
        Specified by:
        getByParentID in interface TXStore<V extends TXRecord>
        Returns:
      • getCountByParent

        public int getCountByParent​(edu.uiuc.ncsa.security.core.Identifier parentID)
        Specified by:
        getCountByParent in interface TXStore<V extends TXRecord>
      • getMostRecent

        public List<V> getMostRecent​(int n,
                                     List<String> attributes)
        Specified by:
        getMostRecent in interface edu.uiuc.ncsa.security.core.Store<V extends TXRecord>