Examples of toBytes()


Examples of com.impetus.kundera.property.accessor.SQLTimestampAccessor.toBytes()

         * @return
         */
        private static byte[] compose(Object value, Class clazz)
        {
            SQLTimestampAccessor accessor = new SQLTimestampAccessor();
            return accessor.toBytes(value);
        }

        /**
         * @param value
         * @param clazz
View Full Code Here

Examples of com.impetus.kundera.property.accessor.ShortAccessor.toBytes()

         * @return
         */
        private static byte[] compose(Object value, Class clazz)
        {
            ShortAccessor accessor = new ShortAccessor();
            return accessor.toBytes(value);
        }

        /**
         * @param value
         * @param clazz
View Full Code Here

Examples of com.metamx.collections.bitmap.ImmutableBitmap.toBytes()

  @BenchmarkOptions(warmupRounds = 10, benchmarkRounds = 1000)
  @Test
  public void testToImmutableByteArray()
  {
    ImmutableBitmap immutableBitmap = factory.makeImmutableBitmap(baseMutableBitmap);
    Assert.assertArrayEquals(baseBytes, immutableBitmap.toBytes());
  }


  @BenchmarkOptions(warmupRounds = 10, benchmarkRounds = 1000)
  @Test
View Full Code Here

Examples of com.netflix.astyanax.model.RangeEndpoint.toBytes()

            ColumnList<MessageQueueEntry> result = queue.keyspace.prepareQuery(queue.queueColumnFamily)
                    .setConsistencyLevel(queue.consistencyLevel).getKey(shardName).
                    withColumnRange(new RangeBuilder()
                                        .setLimit(itemsToPop + (lockColumn == null? 0:(lockColumnCount + 1)))
                                        .setEnd(re.toBytes())
                                        .build()).execute().getResult();
            for (Column<MessageQueueEntry> column : result) {
                if (itemsToPop == 0) {
                    break;
                }
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.protocol.CloseCircuitPacket.ToBytes()

      {
        // Try to send the CloseCircuit notice
        CloseCircuitPacket close = new CloseCircuitPacket();

        UDPPacketBuffer buf = new UDPPacketBuffer(remoteEndPoint);
        byte[] data = close.ToBytes();
        Utils.arraycopy(data, 0, buf.getData(), 0, data.length);
        buf.setDataLength(data.length);

        AsyncBeginSend(buf);
      }
View Full Code Here

Examples of com.salesforce.phoenix.expression.aggregator.Aggregators.toBytes()

        }

        final boolean hadAny = hasAny;
        KeyValue keyValue = null;
        if (hadAny) {
            byte[] value = aggregators.toBytes(rowAggregators);
            keyValue = KeyValueUtil.newKeyValue(UNGROUPED_AGG_ROW_KEY, SINGLE_COLUMN_FAMILY, SINGLE_COLUMN, AGG_TIMESTAMP, value, 0, value.length);
        }
        final KeyValue aggKeyValue = keyValue;
       
        RegionScanner scanner = new BaseRegionScanner() {
View Full Code Here

Examples of com.salesforce.phoenix.schema.PDataType.toBytes()

            PDataType dataType = getDataType();
            long time = dataType.getCodec().decodeLong(ptr, children.get(0).getColumnModifier());
            long value = roundTime(time);
           
            Date d = new Date(value);
            byte[] byteValue = dataType.toBytes(d);
            ptr.set(byteValue);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of com.salesforce.phoenix.schema.PIndexState.toBytes()

        if (ptr.getLength() == 0) {
            return true;
        }
        byte serializedByte = ptr.get()[ptr.getOffset()];
        PIndexState indexState = PIndexState.fromSerializedValue(serializedByte);
        ptr.set(indexState.toBytes());
        return true;
    }

    @Override
    public PDataType getDataType() {
View Full Code Here

Examples of com.senseidb.search.req.SenseiQuery.toBytes()

 
  public String getQueryString(){
    SenseiQuery q = _req.getQuery();
    if (q!=null){
      try {
        return new String(q.toBytes(),"UTF-8");
      } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
        return null;
      }
    }
View Full Code Here

Examples of com.sun.enterprise.ee.server.group.Message.toBytes()

                        cb.messagingCompleted();
                        if (__logger.isLoggable(Level.FINE)) {
                           __logger.fine("Sending ...." + mesg.toString());
                        }
                        gms.getGroupHandle().
                        sendMessage(this.componentName, mesg.toBytes());
                    } catch (Exception e) {
                        e.printStackTrace();
                        // FIX ME.
                    }
                    break;
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.