Examples of StringSerializer


Examples of org.apache.mavibot.btree.serializer.StringSerializer

        MavibotParentIdAndRdnSerializer.setSchemaManager( schemaManager );
        MavibotParentIdAndRdnSerializer parentIdAndSerializer = new MavibotParentIdAndRdnSerializer();

        String forwardTableName = attributeType.getOid() + FORWARD_BTREE;
        forward = new MavibotTable<ParentIdAndRdn, String>( recordMan, schemaManager, forwardTableName,
            parentIdAndSerializer, new StringSerializer(), false );

        String reverseTableName = attributeType.getOid() + REVERSE_BTREE;
        reverse = new MavibotTable<String, ParentIdAndRdn>( recordMan, schemaManager, reverseTableName,
            new StringSerializer(), parentIdAndSerializer, false );
    }
View Full Code Here

Examples of org.apache.pivot.serialization.StringSerializer

    @Test
    public void readValues() throws IOException, SerializationException {
        log("readValues()");

        Serializer<String> serializer = new StringSerializer();

        ByteArrayInputStream inputStream = new ByteArrayInputStream(testBytes);
        String result = serializer.readObject(inputStream);
        assertNotNull(result);
        assertEquals(result, testString);

        // dump content, but useful only for text resources ...
        String dump = result;
View Full Code Here

Examples of org.apache.xindice.tools.command.StringSerializer

    saxReader.parse(new InputSource(in));
  }
 
  private ContentHandler createSerializer(final Writer out)
  {
    final ContentHandler serializer = new StringSerializer()
    {
      public void endDocument() throws SAXException
      {
        super.endDocument();
       
View Full Code Here

Examples of org.sf.bee.commons.remoting.jrpc.serializer.impl.StringSerializer

        try {
            this.registerSerializer(new DateSerializer());
        } catch (Throwable t) {
        }
        try {
            this.registerSerializer(new StringSerializer());
        } catch (Throwable t) {
        }
        try {
            this.registerSerializer(new NumberSerializer());
        } catch (Throwable t) {
View Full Code Here

Examples of voldemort.serialization.StringSerializer

    }

    @Override
    public Store<String, String, String> getStore() {
        return SerializingStore.wrap(new InMemoryStorageEngine<ByteArray, byte[], byte[]>("test"),
                                     new StringSerializer(),
                                     new StringSerializer(),
                                     new StringSerializer());
    }
View Full Code Here

Examples of voldemort.serialization.StringSerializer

    }

    public void testKeyIterationWithSerialization() {
        StorageEngine<ByteArray, byte[], byte[]> store = getStorageEngine();
        StorageEngine<String, String, String> stringStore = new SerializingStorageEngine<String, String, String>(store,
                                                                                                                 new StringSerializer(),
                                                                                                                 new StringSerializer(),
                                                                                                                 new StringSerializer());
        Map<String, String> vals = ImmutableMap.of("a", "a", "b", "b", "c", "c", "d", "d", "e", "e");
        for(Map.Entry<String, String> entry: vals.entrySet())
            stringStore.put(entry.getKey(), new Versioned<String>(entry.getValue()), null);
        ClosableIterator<String> iter = stringStore.keys();
        int count = 0;
View Full Code Here

Examples of voldemort.serialization.StringSerializer

    }

    public void testIterationWithSerialization() {
        StorageEngine<ByteArray, byte[], byte[]> store = getStorageEngine();
        StorageEngine<String, String, String> stringStore = SerializingStorageEngine.wrap(store,
                                                                                          new StringSerializer(),
                                                                                          new StringSerializer(),
                                                                                          new StringSerializer());
        Map<String, String> vals = ImmutableMap.of("a", "a", "b", "b", "c", "c", "d", "d", "e", "e");
        for(Map.Entry<String, String> entry: vals.entrySet())
            stringStore.put(entry.getKey(), new Versioned<String>(entry.getValue()), null);
        ClosableIterator<Pair<String, Versioned<String>>> iter = stringStore.entries();
        int count = 0;
View Full Code Here

Examples of voldemort.serialization.StringSerializer

    @Before
    public void setUp() throws Exception {
        this.nodeId = 0;
        this.time = SystemTime.INSTANCE;
        Serializer<String> serializer = new StringSerializer();
        MockStoreClientFactory factory = new MockStoreClientFactory(serializer,
                                                                    serializer,
                                                                    null,
                                                                    serializer,
                                                                    nodeId,
View Full Code Here

Examples of voldemort.serialization.StringSerializer

        return Arrays.asList(new Object[][] { { true }, { false } });
    }

    @Test
    public void testCaching() {
        StoreClientFactory inner = new MockStoreClientFactory(new StringSerializer(),
                                                              new StringSerializer(),
                                                              null);
        StoreClientFactory spyFactory = spy(inner);
        StoreClientFactory cachingFactory = new CachingStoreClientFactory(spyFactory);
        TimeBasedInconsistencyResolver<Object> resolver = new TimeBasedInconsistencyResolver<Object>();
View Full Code Here

Examples of voldemort.serialization.StringSerializer

        verify(spyFactory, times(1)).getStoreClient("foo", null);
    }

    @Test
    public void testBootstrapAll() {
        StoreClientFactory inner = new MockStoreClientFactory(new StringSerializer(),
                                                              new StringSerializer(),
                                                              null);
        final DefaultStoreClient<Object, Object> aStoreClient = spy((DefaultStoreClient<Object, Object>) inner.getStoreClient("test1"));
        final DefaultStoreClient<Object, Object> bStoreClient = spy((DefaultStoreClient<Object, Object>) inner.getStoreClient("test2"));
        StoreClientFactory mocked = mock(StoreClientFactory.class);
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.