Package com.hp.hpl.jena.tdb.store

Examples of com.hp.hpl.jena.tdb.store.Hash


        return nodeId ;
    }
   
    protected final NodeId accessIndex(Node node, boolean create)
    {
        Hash hash = new Hash(nodeHashToId.getRecordFactory().keyLength()) ;
        setHash(hash, node) ;
        byte k[] = hash.getBytes() ;       
        // Key only.
        Record r = nodeHashToId.getRecordFactory().create(k) ;
       
        synchronized (this// Pair to readNodeFromTable.
        {
View Full Code Here


        return n ;
    }

    public static Hash hash(Node n)
    {
        Hash h = new Hash(LenNodeHash) ;
        setHash(h, n) ;
        return h ;
    }
View Full Code Here

    Iterator<Pair<Long,ByteBuffer>> iter = objects.all();
    while ( iter.hasNext() ) {
      Pair<Long, ByteBuffer> pair = iter.next();
      long id = pair.getLeft() ;
      Node node = NodeLib.fetchDecode(id, objects) ;
          Hash hash = new Hash(recordFactory.keyLength()) ;
          setHash(hash, node) ;
          byte k[] = hash.getBytes() ;       
          Record record = recordFactory.create(k) ;
          Bytes.setLong(id, record.getValue(), 0) ;
      nodeToId.add(record);
      if ( monitor != null ) monitor.tick();
    }
View Full Code Here

    Iterator<Pair<Long,ByteBuffer>> iter = objects.all();
    while ( iter.hasNext() ) {
      Pair<Long, ByteBuffer> pair = iter.next();
      long id = pair.getLeft();
      Node node = NodeLib.fetchDecode(id, objects);
          Hash hash = new Hash(SystemTDB.LenNodeHash);
          setHash(hash, node);
          byte k[] = hash.getBytes();
          sortedDataBag.send(new Pair<byte[],Long>(k, id));
      if ( monitor != null ) monitor.tick();
    }
    objects.sync();
    objects.close();   
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.store.Hash

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.