Examples of LongSerializer


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

     * @throws IOException If the creation failed
     */
    @BeforeClass
    public static void setup() throws IOException
    {
        btree = BTreeFactory.createInMemoryBTree( "test", new LongSerializer(), new StringSerializer() );
    }
View Full Code Here

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

        openRecordManagerAndBtrees();

        try
        {
            // Create a new BTree with transaction and another one without
            btreeWithTransactions = recordManagerTxn.addBTree( "testWithTxn", new LongSerializer(), new StringSerializer(), false );
            btreeNoTransactions = recordManagerNoTxn.addBTree( "testNoTxn", new LongSerializer(), new StringSerializer(), false );
        }
        catch ( Exception e )
        {
            throw new RuntimeException( e );
        }
View Full Code Here

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

        // Set the offset of the end of the file
        endOfFileOffset = fileChannel.size();

        // First, create the btree of btrees <NameRevision, Long>
        btreeOfBtrees = BTreeFactory.createPersistedBTree( BOB_ONE_NAME, new NameRevisionSerializer(),
            new LongSerializer() );

        // Now, initialize the Copied Page BTree
        copiedPageBTree = BTreeFactory.createPersistedBTree( COPIED_PAGE_BTREE_NAME, new RevisionNameSerializer(),
            new LongArraySerializer() );

        // and initialize the Revision BTree
        revisionBTree = BTreeFactory.createPersistedBTree( REVISION_BTREE_NAME, new RevisionNameSerializer(),
            new LongSerializer() );

        // Inject these BTrees into the RecordManager
        try
        {
            manage( copiedPageBTree );
View Full Code Here

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

        copiedPageBTree = new BTree<RevisionName, long[]>( COPIED_PAGE_BTREE_NAME, new RevisionNameSerializer(),
            new LongArraySerializer() );

        // and initialize the Revision BTree
        revisionBTree = new BTree<RevisionName, Long>( REVISION_BTREE_NAME, new RevisionNameSerializer(),
            new LongSerializer() );

        // Inject these BTrees into the RecordManager
        try
        {
            manage( copiedPageBTree );
View Full Code Here

Examples of org.apache.flink.api.common.typeutils.base.LongSerializer

  protected TupleSerializer<Tuple3<Integer, Long, Double>> createSerializer() {
    return new TupleSerializer<Tuple3<Integer, Long, Double>>(
        (Class<Tuple3<Integer, Long, Double>>) (Class<?>) Tuple3.class,
        new TypeSerializer[]{
          new IntSerializer(),
          new LongSerializer(),
          new DoubleSerializer()});
  }
View Full Code Here

Examples of org.gradle.messaging.serialize.LongSerializer

    public OutputFilesCollectionSnapshotter(FileCollectionSnapshotter snapshotter, IdGenerator<Long> idGenerator,
                                            TaskArtifactStateCacheAccess cacheAccess) {
        this.snapshotter = snapshotter;
        this.idGenerator = idGenerator;
        this.cacheAccess = cacheAccess;
        dirIdentifierCache = cacheAccess.createCache("outputFileStates", String.class, new LongSerializer());
    }
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.