Examples of ArrayStore


Examples of com.google.test.metric.method.op.stack.ArrayStore

  }

  private void recordArrayStore(final Type type) {
    recorder.add(new Runnable() {
      public void run() {
        block.addOp(new ArrayStore(lineNumber, type));
      }
    });
  }
View Full Code Here

Examples of com.google.test.metric.method.op.stack.ArrayStore

  }

  private void recordArrayStore(final Type type) {
    recorder.add(new Runnable() {
      public void run() {
        block.addOp(new ArrayStore(lineNumber, type));
      }
    });
  }
View Full Code Here

Examples of jfun.yan.element.ArrayStore

    super(creators);
    this.etype = etype;
  }
  public ElementStore<T> toStore(Object v){
    if(v instanceof Object[]){
      return new ArrayStore((Object[])v);
    }
    else{
      return new AnyArrayStore<T>(v);
    }
  }
View Full Code Here

Examples of krati.store.ArrayStore

     * @throws IOException if the store cannot be created.
     */
    @Override
    public ObjectStore<Integer, V> create(StoreConfig config, Serializer<Integer> keySerializer, Serializer<V> valueSerializer) throws IOException {
        try {
            ArrayStore base =  (config instanceof StorePartitionConfig) ?
                               StoreFactory.createArrayStorePartition((StorePartitionConfig)config) :
                               StoreFactory.createStaticArrayStore(config);
            return new SerializableObjectArray<V>(base, keySerializer, valueSerializer);
        } catch (Exception e) {
            if(e instanceof IOException) {
View Full Code Here

Examples of krati.store.ArrayStore

     * @throws IOException if the store cannot be created.
     */
    @Override
    public ObjectStore<Integer, V> create(StoreConfig config, Serializer<Integer> keySerializer, Serializer<V> valueSerializer) throws IOException {
        try {
            ArrayStore base = StoreFactory.createDynamicArrayStore(config);
            return new SerializableObjectArray<V>(base, keySerializer, valueSerializer);
        } catch (Exception e) {
            if(e instanceof IOException) {
                throw (IOException)e;
            } else {
View Full Code Here

Examples of krati.store.ArrayStore

        return getIndexStart() + _rand.nextInt(_store.capacity());
    }
   
    protected SerializableObjectArray<String> createStore(File homeDir) throws Exception {
        StoreConfig config = new StoreConfig(homeDir, 1000);
        ArrayStore arrayStore = StoreFactory.createDynamicArrayStore(config);
        return new SerializableObjectArray<String>(arrayStore, new StringSerializerUtf8());
    }
View Full Code Here

Examples of krati.store.ArrayStore

        }
    }
   
    public void testStaticArrayStoreFactory() throws IOException {
        ArrayStoreFactory storeFactory = new StaticArrayStoreFactory();
        ArrayStore store = storeFactory.create(_config);
        assertEquals(StaticDataArray.class, store.getClass());
        store.close();
    }
View Full Code Here

Examples of krati.store.ArrayStore

        store.close();
    }
   
    public void testDynamicDataStoreFactory() throws IOException {
        ArrayStoreFactory storeFactory = new DynamicArrayStoreFactory();
        ArrayStore store = storeFactory.create(_config);
        assertEquals(DynamicDataArray.class, store.getClass());
        store.close();
    }
View Full Code Here

Examples of krati.store.ArrayStore

   
    public void testStaticArrayStorePartitionFactory() throws IOException {
        setUpStorePartitionConfig();
       
        ArrayStoreFactory storeFactory = new StaticArrayStoreFactory();
        ArrayStore store = storeFactory.create(_config);
        assertEquals(StaticArrayStorePartition.class, store.getClass());
       
        StaticArrayStorePartition p = (StaticArrayStorePartition)store;
        assertEquals(p.capacity(), p.length());
        assertEquals(p.capacity(), store.capacity());
        assertEquals(p.capacity(), _config.getInitialCapacity());
        assertEquals(p.getIndexStart(), ((StorePartitionConfig)_config).getPartitionStart());
       
        store.close();
    }
View Full Code Here

Examples of krati.store.ArrayStore

        StoreResponderFactory responderFactory = new BasicArrayStoreResponderFactory(storeFactory);
        MultiTenantStoreResponder mtStoreResponder = new MultiTenantStoreResponder(homeDir, configTemplate, responderFactory);
       
        String source;
        StoreResponder responder;
        ArrayStore baseStore;
        Serializer<Integer> keySerializer = new IntSerializer();
        Map<String, AvroStore<Integer>> map = new HashMap<String, AvroStore<Integer>>();
       
        // Create "Person" AvroStore
        source = "Person";
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.