Class ArXivImportMetadataSourceServiceImpl

    • Constructor Detail

      • ArXivImportMetadataSourceServiceImpl

        public ArXivImportMetadataSourceServiceImpl()
    • Method Detail

      • getRecords

        public Collection<ImportRecord> getRecords​(String query,
                                                   int start,
                                                   int count)
                                            throws MetadataSourceException
        Find the number of records matching the query string in ArXiv. Supports pagination.
        Specified by:
        getRecords in interface QuerySource
        Parameters:
        query - a query string to base the search on.
        start - offset to start at
        count - number of records to retrieve.
        Returns:
        a set of records. Fully transformed.
        Throws:
        MetadataSourceException - if the underlying methods throw any exception.
      • getRecords

        public Collection<ImportRecord> getRecords​(Query query)
                                            throws MetadataSourceException
        Find records based on a object query and convert them to a list metadata mapped in ImportRecord. The entry with the key "query" of the Query's map will be used as query string value.
        Specified by:
        getRecords in interface QuerySource
        Parameters:
        query - a query object to base the search on.
        Returns:
        a set of records. Fully transformed.
        Throws:
        MetadataSourceException - if the underlying methods throw any exception.
        See Also:
        Query, ImportRecord
      • getRecordsCount

        public int getRecordsCount​(String query)
                            throws MetadataSourceException
        Find the number of records matching the query string in ArXiv;
        Specified by:
        getRecordsCount in interface QuerySource
        Parameters:
        query - a query object to base the search on.
        Returns:
        the sum of the matching records over this import source
        Throws:
        MetadataSourceException - if the underlying methods throw any exception.
      • getRecordsCount

        public int getRecordsCount​(Query query)
                            throws MetadataSourceException
        Find the number of records matching a query; The entry with the key "query" of the Query's map will be used to get the query string.
        Specified by:
        getRecordsCount in interface QuerySource
        Parameters:
        query - a query string to base the search on.
        Returns:
        the sum of the matching records over this import source
        Throws:
        MetadataSourceException - if the underlying methods throw any exception.
        See Also:
        Query
      • getImportSource

        public String getImportSource()
        The string that identifies this import implementation. Preferable a URI
        Specified by:
        getImportSource in interface MetadataSource
        Returns:
        the identifying uri
      • getBaseAddress

        public String getBaseAddress()
        Return the baseAddress set to this object
        Returns:
        The String object that represents the baseAddress of this object
      • setBaseAddress

        public void setBaseAddress​(String baseAddress)
        Set the baseAddress to this object
        Parameters:
        baseAddress - The String object that represents the baseAddress of this object