Package com.hp.hpl.jena.tdb.base.record

Examples of com.hp.hpl.jena.tdb.base.record.RecordFactory.create()


        RecordFactory rf = bpt1.getRecordFactory() ;
       
        Iterator<Record> iter1 = bpt1.iterator() ;
        long counter = 0 ;
        // Use the same slot each time.
        Record r2 = rf.create() ;
       
        for ( ; iter1.hasNext(); )
        {
            counter++ ;
            Record r = iter1.next() ;
View Full Code Here


        RecordFactory rf = bpt1.getRecordFactory() ;
       
        Iterator<Record> iter1 = bpt1.iterator() ;
        long counter = 0 ;
        // Use the same slot each time.
        Record r2 = rf.create() ;
       
        for ( ; iter1.hasNext(); )
        {
            counter++ ;
            Record r = iter1.next() ;
View Full Code Here

public class RecordLib
{
    public static void main(String...argv)
    {
        RecordFactory rf = new RecordFactory(8,4) ;
        Record r = rf.create() ;
        Bytes.setLong(0x123456789ABCDEF0L, r.getKey()) ;
        Bytes.setInt(0x22334455, r.getValue()) ;
        ColumnMap cMap = new ColumnMap("XYAB", "BYXA") ;
        Record r2 = copyRecord(rf, r, cMap) ;
        System.out.println(r) ;
View Full Code Here

        RecordFactory rf = bpt1.getRecordFactory() ;
       
        Iterator<Record> iter1 = bpt1.iterator() ;
        long counter = 0 ;
        // Use the same slot each time.
        Record r2 = rf.create() ;
       
        for ( ; iter1.hasNext(); )
        {
            counter++ ;
            Record r = iter1.next() ;
View Full Code Here

        final ProgressLogger monitor = new ProgressLogger(cmdLog, "records to " + indexName, BulkLoader.DataTickPoint,BulkLoader.superTick) ;
        monitor.start() ;
       
        Transform<Tuple<Long>, Record> transformTuple2Record = new Transform<Tuple<Long>, Record>() {
      @Override public Record convert(Tuple<Long> tuple) {
        Record record = recordFactory.create() ;
        for ( int i = 0; i < size; i++ ) {
          Bytes.setLong(tuple.get(i), record.getKey(), i * SystemTDB.SizeOfLong) ;         
        }
        monitor.tick() ;
        return record ;
View Full Code Here

        RecordFactory rf = bpt1.getRecordFactory() ;
       
        Iterator<Record> iter1 = bpt1.iterator() ;
        long counter = 0 ;
        // Use the same slot each time.
        Record r2 = rf.create() ;
       
        for ( ; iter1.hasNext(); )
        {
            counter++ ;
            Record r = iter1.next() ;
View Full Code Here

public class RecordLib
{
    public static void main(String...argv)
    {
        RecordFactory rf = new RecordFactory(8,4) ;
        Record r = rf.create() ;
        Bytes.setLong(0x123456789ABCDEF0L, r.getKey()) ;
        Bytes.setInt(0x22334455, r.getValue()) ;
        ColumnMap cMap = new ColumnMap("XYAB", "BYXA") ;
        Record r2 = copyRecord(rf, r, cMap) ;
        System.out.println(r) ;
View Full Code Here

           
            final RecordFactory recordFactory = new RecordFactory(LenNodeHash, SizeOfNodeId) ;
            Transform<Pair<byte[], byte[]>, Record> transformPair2Record = new Transform<Pair<byte[], byte[]>, Record>() {
                @Override public Record convert(Pair<byte[], byte[]> pair) {
                    monitor03.tick() ;
                    return recordFactory.create(pair.getLeft(), pair.getRight()) ;
                }
            };

            int order = BPlusTreeParams.calcOrder(SystemTDB.BlockSize, recordFactory) ;
            BPlusTreeParams bptParams = new BPlusTreeParams(order, recordFactory) ;
View Full Code Here

        final ProgressLogger monitor = new ProgressLogger(cmdLog, "records to " + indexName, BulkLoader.DataTickPoint,BulkLoader.superTick) ;
        monitor.start() ;
       
        Transform<Tuple<Long>, Record> transformTuple2Record = new Transform<Tuple<Long>, Record>() {
      @Override public Record convert(Tuple<Long> tuple) {
        Record record = recordFactory.create() ;
        for ( int i = 0; i < size; i++ ) {
          Bytes.setLong(tuple.get(i), record.getKey(), i * SystemTDB.SizeOfLong) ;         
        }
        monitor.tick() ;
        return record ;
View Full Code Here

      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

TOP
Copyright © 2018 www.massapi.com. 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.