Examples of payload()


Examples of akka.zeromq.ZMQMessage.payload()

  @Override
  public void onReceive(Object message) throws Exception {

    if (message instanceof ZMQMessage) {
      ZMQMessage m = (ZMQMessage) message;
      String mesg = new String(m.payload(0));
      subSocket.tell((new ZMQMessage(new Frame(mesg
          + " Processed the workload for A"))));
    }

  }
View Full Code Here

Examples of com.google.appengine.api.taskqueue.TaskOptions.payload()

                    break;
                   
                case "payload":
                    if (value instanceof List<?>) {
                        List<?> list = (List<?>) value;
                        options = options.payload(String.valueOf(list.get(0)), String.valueOf(list.get(1)));
                    } else if (value instanceof String) {
                        options = options.payload((String)value);
                    } else if (value instanceof Closure) {
                        options = options.payload(DefaultGroovyMethods.asType((Closure<?>)value, DeferredTask.class));
                    } else if (value instanceof DeferredTask) {
View Full Code Here

Examples of cpw.mods.fml.common.network.internal.FMLProxyPacket.payload()

        // biome colors and weather.

        FMLProxyPacket receivedPacket = event.packet;

        // We're on the client, receive the packet
        ByteBuf stream = receivedPacket.payload();
        try
        {
            int serverProtocolVersion = stream.readInt();
            int clientProtocolVersion = PluginStandardValues.ProtocolVersion;
            if (serverProtocolVersion == clientProtocolVersion)
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.payload()

        for( int j = frequency[ currIndex ]; j-- != 0; ) {
          obs = indexWriter.newDocumentRecord();
          currDoc = ii.nextDocument() + numPrevDocs;
          indexWriter.writeDocumentPointer( obs, currDoc );

          if ( i.hasPayloads ) indexWriter.writePayload( obs, ii.payload() );

          if ( i.hasCounts ) {
            count = ii.count();
            if ( hasCounts ) indexWriter.writePositionCount( obs, count );
            if ( hasPositions ) indexWriter.writeDocumentPositions( obs, ii.positionArray(), 0, count, size != null ? size[ currDoc ] : -1 );
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.payload()

        obs = indexWriter.newDocumentRecord();
        indexWriter.writeDocumentPointer( obs, currDoc );
        i = index[ currIndex ];
        ir = indexIterator[ currIndex ];

        if ( i.hasPayloads ) indexWriter.writePayload( obs, ir.payload() );

        if ( i.hasCounts ) {
          count = ir.count();
          if ( hasCounts ) indexWriter.writePositionCount( obs, count );
          if ( hasPositions ) indexWriter.writeDocumentPositions( obs, ir.positionArray(), 0, count, size == null ? -1 : size[ currDoc ] );
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.payload()

              // TODO: write tests for the other case
              if ( allBitStreamIndices ) {
                IndexIterator indexIterator = indexReader[ i ].documents( 0 );
                int pointer = indexIterator.skipTo( currDoc );
                if ( pointer == currDoc ) {
                  Payload payload = indexIterator.payload();
                  if ( ! payload.get().equals( content ) ) LOGGER.error( index[ i ] + ": Document " + currDoc + " has payload " + content + " but the index says " + payload )
                }
                else LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + t );
              }
              else {
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.payload()

                else LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + t );
              }
              else {
                IndexIterator indexIterator = indexReader[ i ].documents);
                if ( indexIterator.skipTo( currDoc ) == currDoc ) {
                  if ( ! indexIterator.payload().get().equals( content ) )
                    LOGGER.error( index[ i ] + ": Document " + currDoc + " has payload " + content + " but the index says " + indexIterator.payload().get() );
                }
                else LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + t );
              }
            }
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.payload()

              }
              else {
                IndexIterator indexIterator = indexReader[ i ].documents);
                if ( indexIterator.skipTo( currDoc ) == currDoc ) {
                  if ( ! indexIterator.payload().get().equals( content ) )
                    LOGGER.error( index[ i ] + ": Document " + currDoc + " has payload " + content + " but the index says " + indexIterator.payload().get() );
                }
                else LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + t );
              }
            }
            else {
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.payload()

            if ( index[ i ].hasPayloads ) {
              if ( allBitStreamIndices ) {
                IndexIterator indexIterator = indexReader[ i ].documents( 0 );
                int pointer = indexIterator.skipTo( currDoc );
                if ( pointer == currDoc ) {
                  Payload payload = indexIterator.payload();
                  if ( ! payload.get().equals( content ) ) LOGGER.error( index[ i ] + ": Document " + currDoc + " has payload " + content + " but the index says " + payload )
                }
                else LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + t );
              }
              else {
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.payload()

                else LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + t );
              }
              else {
                IndexIterator indexIterator = indexReader[ i ].documents( "#" );
                if ( indexIterator.skipTo( currDoc ) == currDoc ) {
                  if ( ! indexIterator.payload().get().equals( content ) )
                    LOGGER.error( index[ i ] + ": Document " + currDoc + " has payload " + content + " but the index says " + indexIterator.payload().get() );
                }
                else LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + t );
              }
            }
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.