Examples of createRecord()


Examples of com.gwtext.client.data.RecordDef.createRecord()

      public void onClick(BaseItem item, EventObject e) {
        String[] rowData = new String[recordDef.getFields().length];
        for (int i = 0; i < rowData.length; i++) {
          rowData[i] = "";
        }
        Record newRecord = recordDef.createRecord(rowData);
        store.add(newRecord);
        model.addRow(newRecord.getId(), rowData);
      }
    }));
   
View Full Code Here

Examples of com.hazelcast.map.MapContainer.createRecord()

                RecordStore recordStore = mapServiceContext.getRecordStore(getPartitionId(), mapName);
                for (RecordReplicationInfo recordReplicationInfo : recordReplicationInfos) {
                    Data key = recordReplicationInfo.getKey();
                    final Data value = recordReplicationInfo.getValue();
                    final MapContainer mapContainer = mapServiceContext.getMapContainer(mapName);
                    Record newRecord = mapContainer.createRecord(key, value, -1L, Clock.currentTimeMillis());
                    applyRecordInfo(newRecord, recordReplicationInfo);
                    recordStore.putRecord(key, newRecord);
                }
                recordStore.setLoaded(true);
View Full Code Here

Examples of com.hazelcast.map.MapService.createRecord()

                Set<RecordReplicationInfo> recordReplicationInfos = dataEntry.getValue();
                final String mapName = dataEntry.getKey();
                RecordStore recordStore = mapService.getRecordStore(getPartitionId(), mapName);
                for (RecordReplicationInfo recordReplicationInfo : recordReplicationInfos) {
                    Data key = recordReplicationInfo.getKey();
                    Record newRecord = mapService.createRecord(mapName, key, recordReplicationInfo.getValue(), -1, false);
                    mapService.applyRecordInfo(newRecord, mapName, recordReplicationInfo);
                    // put record.
                    final Record existingRecord = recordStore.putRecord(key, newRecord);
                    // size estimator calculations.
                    final SizeEstimator sizeEstimator = recordStore.getSizeEstimator();
View Full Code Here

Examples of com.hazelcast.map.impl.MapContainer.createRecord()

                RecordStore recordStore = mapServiceContext.getRecordStore(getPartitionId(), mapName);
                for (RecordReplicationInfo recordReplicationInfo : recordReplicationInfos) {
                    Data key = recordReplicationInfo.getKey();
                    final Data value = recordReplicationInfo.getValue();
                    final MapContainer mapContainer = mapServiceContext.getMapContainer(mapName);
                    Record newRecord = mapContainer.createRecord(key, value, -1L, Clock.currentTimeMillis());
                    applyRecordInfo(newRecord, recordReplicationInfo);
                    recordStore.putRecord(key, newRecord);
                }
                recordStore.setLoaded(true);
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.OCluster.createRecord()

              recordVersion = OVersionFactory.instance().createVersion();

            makeStorageDirty();
            atomicOperationsManager.startAtomicOperation();
            try {
              ppos = cluster.createRecord(content, recordVersion, recordType);
              rid.clusterPosition = ppos.clusterPosition;

              final ORecordSerializationContext context = ORecordSerializationContext.getContext();
              if (context != null)
                context.executeOperations(this);
View Full Code Here

Examples of org.apache.hadoop.metrics.MetricsContext.createRecord()

       
    JobHistory.JobInfo.logSubmitted(jobid, conf.getJobName(), conf.getUser(),
                                    System.currentTimeMillis(), jobFile);
       
    MetricsContext metricsContext = MetricsUtil.getContext("mapred");
    this.jobMetrics = metricsContext.createRecord("job");
    this.jobMetrics.setTag("user", conf.getUser());
    this.jobMetrics.setTag("jobName", conf.getJobName());
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.metrics.MetricsContext.createRecord()

       
        JobHistory.JobInfo.logSubmitted(jobid, conf.getJobName(), conf.getUser(),
            System.currentTimeMillis(), jobFile);
       
        MetricsContext metricsContext = MetricsUtil.getContext("mapred");
        this.jobMetrics = metricsContext.createRecord("job");
        this.jobMetrics.setTag("user", conf.getUser());
        this.jobMetrics.setTag("jobName", conf.getJobName());
    }

    /**
 
View Full Code Here

Examples of org.apache.maven.archiva.indexer.record.RepositoryIndexRecordFactory.createRecord()

        RepositoryArtifactIndex index = factory.createStandardIndex( indexDirectory );

        RepositoryIndexRecordFactory recordFactory =
            (RepositoryIndexRecordFactory) lookup( RepositoryIndexRecordFactory.ROLE, "standard" );

        index.indexRecords( Collections.singletonList( recordFactory.createRecord( artifact ) ) );

        processor = (ArtifactReportProcessor) lookup( ArtifactReportProcessor.ROLE, "duplicate" );
    }

    public void testNullArtifactFile()
View Full Code Here

Examples of org.apache.poi.ddf.DefaultEscherRecordFactory.createRecord()

    {
        EscherRecordFactory recordFactory = new DefaultEscherRecordFactory();
        int pos = offset;
        while ( pos < offset + size )
        {
            EscherRecord r = recordFactory.createRecord(data, pos);
            int bytesRead = r.fillFields(data, pos, recordFactory );
            escherRecords.add(r);
            pos += bytesRead;
        }
    }
View Full Code Here

Examples of org.apache.poi.ddf.DefaultEscherRecordFactory.createRecord()

    {
        EscherRecordFactory recordFactory = new DefaultEscherRecordFactory();
        int pos = offset;
        while ( pos < offset + size )
        {
            EscherRecord r = recordFactory.createRecord(data, pos);
            int bytesRead = r.fillFields(data, pos, recordFactory );
            escherRecords.add(r);
            pos += bytesRead;
        }
    }
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.