Examples of key()


Examples of gnu.trove.iterator.TShortObjectIterator.key()

        }
        try {
            TShortObjectIterator iter = this.iterator();
            while ( iter.hasNext() ) {
                iter.advance();
                short key = iter.key();
                Object value = iter.value();
                if ( value == null ) {
                    if ( !( that.get( key ) == null && that.containsKey( key ) ) ) {
                        return false;
                    }
View Full Code Here

Examples of gov.nysenate.openleg.util.Storage.key()

        // Deactivate ourselves.
        bill.setActive(false);
        storage.set(bill);

        if (wasRestored) {
            ChangeLogger.record(storage.key(bill), storage);
        }
        else {
            bill.setPublishDate(null); // un publish.
            ChangeLogger.delete(storage.key(bill), storage);
        }
View Full Code Here

Examples of in.partake.model.dto.ConfigurationItem.key()

        configurationMap = new HashMap<String, String>();
        for (String key : ConfigurationKeyConstants.configurationkeySet) {
            ConfigurationItem item = daos.getConfiguraitonItemAccess().find(con, key);
            if (item != null)
                configurationMap.put(item.key(), item.value());
        }

        return null;
    }
View Full Code Here

Examples of javax.jcr.Node.key()

        // remove the nodes
        Set<NodeKey> expectedJournalKeys = new TreeSet<NodeKey>();
        for (int i = 0; i < nodeCount; i++) {
            AbstractJcrNode node = session1.getNode("/testNode_" + i);
            expectedJournalKeys.add(node.key());
            node.remove();
        }
        expectedJournalKeys.add(session1.getRootNode().key());
        session1.save();
View Full Code Here

Examples of kafka.message.Message.key()

        long lastMessageOffset = KafkaUtils.getOffset(simpleConsumer, TestUtils.TOPIC, 0, OffsetRequest.LatestTime()) - 1;
        ByteBufferMessageSet messageAndOffsets = KafkaUtils.fetchMessages(TestUtils.getKafkaConfig(broker), simpleConsumer,
                new Partition(Broker.fromString(broker.getBrokerConnectionString()), 0), lastMessageOffset);
        MessageAndOffset messageAndOffset = messageAndOffsets.iterator().next();
        Message kafkaMessage = messageAndOffset.message();
        ByteBuffer messageKeyBuffer = kafkaMessage.key();
        String keyString = null;
        String messageString = new String(Utils.toByteArray(kafkaMessage.payload()));
        if (messageKeyBuffer != null) {
            keyString = new String(Utils.toByteArray(messageKeyBuffer));
        }
View Full Code Here

Examples of kafka.message.MessageAndMetadata.key()

    MessageAndMetadata fetchedMsg =
      testUtil.getNextMessageFromConsumer(TestConstants.CUSTOM_TOPIC);

    assertEquals(msg, new String((byte[]) fetchedMsg.message(), "UTF-8"));
    assertEquals(TestConstants.CUSTOM_KEY,
      new String((byte[]) fetchedMsg.key(), "UTF-8"));

  }

  @Test
  public void testEmptyChannel() throws UnsupportedEncodingException,
View Full Code Here

Examples of net.lucidviews.geoalgo.geojson.GeoJsonWriter.key()

      // So use the output stream from the response and convert to a writer.
      Writer responseWriter = new OutputStreamWriter( response.getOutputStream() );
     
      GeoJsonWriter featureWriter = new GeoJsonWriter( responseWriter );
      featureWriter.feature();
      featureWriter.key( "properties" );
      featureWriter.value( (Object)null );
      featureWriter.key( "geometry" );
      featureWriter.value( (Object)null );
      featureWriter.key( "bbox" );
      featureWriter.value( bounds );
View Full Code Here

Examples of net.openhft.koloboke.collect.map.CharShortCursor.key()

    public void testIteratorNoSuchElementException() {
        CharShortCursor/*<>*/ cur = getMap().cursor();
        while (cur.moveNext());
        try {
            cur.key();
            fail("cursor.elem() should throw IllegalStateException");
        } catch (IllegalStateException expected) {}
    }
}
View Full Code Here

Examples of net.sf.json.util.JSONBuilder.key()

        try {
            JSONBuilder json = new JSONBuilder(outWriter);
            final List<LayerDescription> layers = description.getLayerDescriptions();
            json.object();
            json.key("version").value(description.getVersion());
            json.key("layerDescriptions");
            json.array();
            for (LayerDescription layer : layers) {
                json.object();
                json.key("layerName").value(layer.getName());
View Full Code Here

Examples of net.sourceforge.processdash.hier.PropertyKey.key()

    model.setNumRows (0);
    Enumeration dlList = defectLogs.keys ();
    while (dlList.hasMoreElements()) {
      pk = (PropertyKey) dlList.nextElement();
      if (key != null) {
        if ( !pk.key().equals(key.key()) &&
            (!pk.isChildOf (key)))
          continue;             // this one filtered
      }
      dli = (DefectListID) defectLogs.get (pk);
      for (int ii = 0; ii < dli.defects.length; ii++) {
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.