Package org.wijiscommons.ssaf.schema.search

Examples of org.wijiscommons.ssaf.schema.search.Pointer


    // Iterate through file paths
        for (String filePath : filePaths)
    {
       
      // Get Pointer Object from filePath
      Pointer pointer = validateXML(filePath);
      pointerList.add(pointer);
     
      // If the size of pointerList is equal to commit size then
      // add the list of documents to Solr
      // else just add to pointerList until the count reaches commit size
View Full Code Here


   */
 
  public boolean index(String location, Document document) throws SSAFSolrException {
   
    // Validate against schema and get stash Document
    Pointer pointer = validateXML(document);
   
    // Call addStashDocumentToSOLRIndex method
        addStashDocumentToSOLRIndex(location, pointer);
   
    return true;
View Full Code Here

   * @throws SSAFSolrException
   */
 
  private Pointer validateXML(Document document) throws SSAFSolrException
  {
    Pointer pointer = null;
    try {
            // create an Unmarshaller
            Unmarshaller u = jaxbFactory.getUnmarshaller();
           
            // Get Pointer from Document
View Full Code Here

   * @return
   * @throws SSAFSolrException
   */
  private Pointer validateXML(String filePath) throws SSAFSolrException
  {
    Pointer pointer = null;
    try
        {
            Unmarshaller u = jaxbFactory.getUnmarshaller();
            pointer = (Pointer) u.unmarshal(new File(filePath));

View Full Code Here

    List<Pointer> pointerList = pointers.getPointer();
   
    // Iterate through PointerLocations and get Pointers Object
        for (String pointerLocation : pointerLocations)
    {
      Pointer pointer = getPointer(pointerLocation);
      pointerList.add(pointer);
    }
   
    // Return Pointers Object
    return pointers;
View Full Code Here

   * @return
   * @throws SSAFSolrException
   */
  public Pointer getPointer(String filePath) throws SSAFSolrException
  {
    Pointer pointer = null;
    try {
            // UnMarshall Pointer from File
            Unmarshaller unmarshaller = jaxbFactory.getUnmarshaller();
            pointer = (Pointer) unmarshaller.unmarshal(new File(filePath));

View Full Code Here

    {
      // Get filePath
      String filePath = filePaths.get(i);
     
      // Get Pointer Object from filePath
      Pointer pointer = validateXML(filePath);
     
      // If count is equal to commit size then
      // add the list of documents to Solr
      // else just add to pointerList until the count reaches commit size
      if (count == getCommitSize())
View Full Code Here

   */
 
  public boolean index(String location, Document document) throws SSAFSolrException {
   
    // Validate against schema and get Stash Document
    Pointer pointer = validateXML(document);
   
    // Create a Pointer Object
    List<Pointer> pointers = new ArrayList<Pointer>();
   
    // Add pointer to List
View Full Code Here

     
      // Iterate through pointers
      for (int j=0 ; j < pointers.size(); j++) {
       
        // Get a Pointer Object
        Pointer pointer = pointers.get(j);
       
        // Create SolrInputDocument Object
        SolrInputDocument doc = new SolrInputDocument();
       
        // Get values from Pointer Values into local Variables
        String recordUri = pointer.getRecordUri();
        String stashFilePath = pointer.getStashFilepath();
        String stashType = pointer.getStashType();
        XMLGregorianCalendar stashDate = pointer.getStashDatetime();
        String pointerFilePath = pointer.getPointerFilepath();
        PointerItems pointerItems = pointer.getPointerItems();
       
        // Peform Mandatory Check
        if ( recordUri != null && 
           stashFilePath != null &&
           stashType != null &&
View Full Code Here

   * @throws SSAFSolrException
   */
 
  private Pointer validateXML(Document document) throws SSAFSolrException
  {
    Pointer pointer = null;
    try {
            // create a JAXBContext capable of handling classes generated into
            // the org.wijiscommons.ssaf.schema package
            JAXBContext jc = JAXBContext.newInstance( "org.wijiscommons.ssaf.schema.search" );
           
View Full Code Here

TOP

Related Classes of org.wijiscommons.ssaf.schema.search.Pointer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.