Examples of IntSerializer


Examples of com.esotericsoftware.kryo.serialize.IntSerializer

  static public void registerClasses (Kryo kryo) {
    kryo.register(Object[].class);
    kryo.register(InvokeMethod.class);

    FieldSerializer serializer = (FieldSerializer)kryo.register(InvokeMethodResult.class).getSerializer();
    serializer.getField("objectID").setClass(int.class, new IntSerializer(true));

    kryo.register(InvocationHandler.class, new Serializer() {
      public void writeObjectData (ByteBuffer buffer, Object object) {
        RemoteInvocationHandler handler = (RemoteInvocationHandler)Proxy.getInvocationHandler(object);
        IntSerializer.put(buffer, handler.objectID, true);
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.IntSerializer

    addDefaultSerializer(TimeZone.class, TimeZoneSerializer.class);
    addDefaultSerializer(Calendar.class, CalendarSerializer.class);
    lowPriorityDefaultSerializerCount = defaultSerializers.size();

    // Primitives and string. Primitive wrappers automatically use the same registration as primitives.
    register(int.class, new IntSerializer());
    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.IntSerializer

    // Primitives and string. Primitive wrappers automatically use the same registration as primitives.
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
    register(short.class, new ShortSerializer());
    register(int.class, new IntSerializer());
    register(long.class, new LongSerializer());
    register(float.class, new FloatSerializer());
    register(double.class, new DoubleSerializer());
    register(String.class, new StringSerializer());
  }
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.IntSerializer

    addDefaultSerializer(Calendar.class, CalendarSerializer.class);
    addDefaultSerializer(Locale.class, LocaleSerializer.class);
    lowPriorityDefaultSerializerCount = defaultSerializers.size();

    // Primitives and string. Primitive wrappers automatically use the same registration as primitives.
    register(int.class, new IntSerializer());
    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.IntSerializer

    addDefaultSerializer(TimeZone.class, TimeZoneSerializer.class);
    addDefaultSerializer(Calendar.class, CalendarSerializer.class);
    lowPriorityDefaultSerializerCount = defaultSerializers.size();

    // Primitives and string. Primitive wrappers automatically use the same registration as primitives.
    register(int.class, new IntSerializer());
    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.IntSerializer

    addDefaultSerializer(Calendar.class, CalendarSerializer.class);
    addDefaultSerializer(Locale.class, LocaleSerializer.class);
    lowPriorityDefaultSerializerCount = defaultSerializers.size();

    // Primitives and string. Primitive wrappers automatically use the same registration as primitives.
    register(int.class, new IntSerializer());
    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.IntSerializer

    addDefaultSerializer(TimeZone.class, TimeZoneSerializer.class);
    addDefaultSerializer(Calendar.class, CalendarSerializer.class);
    lowPriorityDefaultSerializerCount = defaultSerializers.size();

    // Primitives and string. Primitive wrappers automatically use the same registration as primitives.
    register(int.class, new IntSerializer());
    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
View Full Code Here

Examples of eu.stratosphere.api.common.typeutils.base.IntSerializer

    assertTrue(cnt == numRecs);
   
    // test hash corner cases
    final TestIntComparator testIntComp = new TestIntComparator();
    final ChannelSelector<SerializationDelegate<Integer>> oe3 = new OutputEmitter<Integer>(ShipStrategyType.PARTITION_HASH, testIntComp);
    final SerializationDelegate<Integer> intDel = new SerializationDelegate<Integer>(new IntSerializer());
   
    numChans = 100;
   
    // MinVal hash
    intDel.setInstance(Integer.MIN_VALUE);
View Full Code Here

Examples of krati.io.serializer.IntSerializer

*/
public class TestIntSerializer2 extends TestIntSerializer {
   
    @Override
    protected IntSerializer createSerializer() {
        return new IntSerializer(ByteOrder.LITTLE_ENDIAN);
    }
View Full Code Here

Examples of org.apache.directory.mavibot.btree.serializer.IntSerializer

public class BTreeDuplicateKeyTest
{
    @Test
    public void testInsertNullValue() throws IOException
    {
        IntSerializer serializer = new IntSerializer();

        BTree<Integer, Integer> btree = new BTree<Integer, Integer>( "master", serializer, serializer );
        btree.init();

        btree.insert( 1, null );
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.