Ignore:
Timestamp:
2016-12-13T14:02:01+13:00 (7 years ago)
Author:
davidb
Message:

Change to see if code can be made more unified. If so, then getBufferedInputStream can be simplified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/ClusterFileIO.java

    r31227 r31228  
    127127           
    128128            //FSDataInputStream fin = _fs.open(new Path(fileIn));
    129             FSDataInputStream fin = fs.open(new Path(uri));
     129           
     130            Path path = new Path(uri);
     131            FSDataInputStream fin = fs.open(path);
    130132           
    131133            bis = new BufferedInputStream(fin);
     
    141143            bis = new BufferedInputStream(fin);
    142144            */
    143            
    144             FSDataInputStream fin = fs.open(new Path(fileIn));
     145            URI uri = URI.create (fileIn);
     146            Path path = new Path(uri);
     147           
     148            FSDataInputStream fin = fs.open(path);
    145149           
    146150            bis = new BufferedInputStream(fin);
Note: See TracChangeset for help on using the changeset viewer.