public static ObjectFile makeObjectFile(FileSet fsIdToNode) { String filename = fsIdToNode.filename(Names.extNodeData) ; ObjectFile objFile = FileFactory.createObjectFileDisk(filename); return objFile ; }
public static StringFile createStringFileDisk(String filename) { return new StringFile(createObjectFileDisk(filename)) ; }
@Override public ObjectFile buildObjectFile(FileSet fileSet, String ext) { String filename = fileSet.filename(ext) ; if ( fileSet.isMem() ) return FileFactory.createObjectFileMem(filename) ; return FileFactory.createObjectFileDisk(filename) ; } }
private ObjectFile determineNodeTable(Location loc) { // Directly open the nodes.dat file. StoreParams storeParams = StoreParams.getDftStoreParams(); FileSet fsId2Node = new FileSet(loc, storeParams.getIndexId2Node()) ; String file = fsId2Node.filename(Names.extNodeData); ObjectFile objFile = FileFactory.createObjectFileDisk(file); return objFile; }
private ObjectFile determineNodeTable(Location loc) { // Directly open the nodes.dat file. StoreParams storeParams = StoreParams.getDftStoreParams(); FileSet fsId2Node = new FileSet(loc, storeParams.getIndexId2Node()) ; String file = fsId2Node.filename(Names.extNodeData); ObjectFile objFile = FileFactory.createObjectFileDisk(file); return objFile; }
private int countRDFNodes() { ObjectFile objects = FileFactory.createObjectFileDisk( location.getPath(Names.indexId2Node, Names.extNodeData) ) ; int count = 0 ; Iterator<Pair<Long,ByteBuffer>> iter = objects.all() ; while ( iter.hasNext() ) { iter.next() ; count++ ; } objects.close() ; return count ; } }
private int countRDFNodes() { ObjectFile objects = FileFactory.createObjectFileDisk( location.getPath(Names.indexId2Node, Names.extNodeData) ) ; int count = 0 ; Iterator<Pair<Long,ByteBuffer>> iter = objects.all() ; while ( iter.hasNext() ) { iter.next() ; count++ ; } objects.close() ; return count ; } }