Examples of ReuseInfo


Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

  public void testDeltaWithRefsBelow() {
    lfs.clear();
    TTypeSystem m = getTT(EqTwoTypes);
    remoteCas = setupCas(m);
    loadCas(casSrc, mSrc);
    ReuseInfo ri[] = serializeDeserialize(casSrc, remoteCas, null, null);
    MarkerImpl marker = (MarkerImpl) remoteCas.createMarker();
   
    lfs = getIndexedFSs(remoteCas, m);
    FeatureStructure fs = remoteCas.createFS(m.getType(Akof1));
    maybeSetFeature(fs, m, lfs.get(0));
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

  public void testDeltaWithMods() {
    lfs.clear();
    TTypeSystem m = getTT(EqTwoTypes);
    remoteCas = setupCas(m);
    loadCas(casSrc, mSrc);
    ReuseInfo ri[] = serializeDeserialize(casSrc, remoteCas, null, null);
    MarkerImpl marker = (MarkerImpl) remoteCas.createMarker();
   
    lfs = getIndexedFSs(remoteCas, m);
    FeatureStructure fs = remoteCas.createFS(m.getType(Akof1));
    maybeSetFeatureKind( lfs.get(0), m, "Fs", fs);
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

  public void checkDeltaWithAllMods() {
    makeRandomFss(casSrc, mSrc, Akof1, 7);
    TTypeSystem m = getTT(EqTwoTypes);
    remoteCas = setupCas(m);
    loadCas(casSrc, mSrc);
    ReuseInfo ri[] = serializeDeserialize(casSrc, remoteCas, null, null);
    MarkerImpl marker = (MarkerImpl) remoteCas.createMarker();
   
    lfs = getIndexedFSs(remoteCas, m);
   
    makeRandomFss(remoteCas, m, Akof1, 8);
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

 
  public void testDeltaWithIndexMods() throws IOException {
    TTypeSystem m = getTT(EqTwoTypes);
    remoteCas = setupCas(m);
    loadCas(casSrc, mSrc);
    ReuseInfo ri[] = serializeDeserialize(casSrc, remoteCas, null, null);
    MarkerImpl marker = (MarkerImpl) remoteCas.createMarker();
   
    lfs = new ArrayList<FeatureStructure>();
    loadCas(remoteCas, m);
   
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

   * @return
   * @throws Exception
   */
  protected CAS deserializeCAS(byte[] aSerializedCAS, ClientRequest cachedRequest) throws Exception {
    CAS cas = cachedRequest.getCAS();
    ReuseInfo reuseInfo = cachedRequest.getCompress6ReuseInfo();
    ByteArrayInputStream bais = new ByteArrayInputStream(aSerializedCAS);
    if (reuseInfo != null) {
      Serialization.deserializeCAS(cas, bais, null, reuseInfo);
    } else {
      ((CASImpl)cas).reinit(bais);
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

  }
 
  private void deserialize(byte[] bytes, CAS cas, CacheEntry cacheEntry, TypeSystemImpl remoteTs,
          AllowPreexistingFS allow) throws Exception {
    ByteArrayInputStream istream = new ByteArrayInputStream(bytes);
    ReuseInfo reuseInfo = cacheEntry.getCompress6ReuseInfo();

    Serialization.deserializeCAS(cas, istream, remoteTs, reuseInfo, allow);
  }
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

   * @return
   * @throws Exception
   */
  protected CAS deserializeCAS(byte[] aSerializedCAS, ClientRequest cachedRequest) throws Exception {
    CAS cas = cachedRequest.getCAS();
    ReuseInfo reuseInfo = cachedRequest.getCompress6ReuseInfo();
    ByteArrayInputStream bais = new ByteArrayInputStream(aSerializedCAS);
    if (reuseInfo != null) {
      Serialization.deserializeCAS(cas, bais, null, reuseInfo);
    } else {
      ((CASImpl)cas).reinit(bais);
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

  }
 
  private void deserialize(byte[] bytes, CAS cas, CacheEntry cacheEntry, TypeSystemImpl remoteTs,
          AllowPreexistingFS allow) throws Exception {
    ByteArrayInputStream istream = new ByteArrayInputStream(bytes);
    ReuseInfo reuseInfo = cacheEntry.getCompress6ReuseInfo();

    Serialization.deserializeCAS(cas, istream, remoteTs, reuseInfo, allow);
  }
View Full Code Here

Examples of org.apache.uima.cas.impl.BinaryCasSerDes6.ReuseInfo

      // Deserialize CAS from the message
      // *************************************************************************
      t1 = getController().getCpuTime();
      SerialFormat serialFormat = endpoint.getSerialFormat();
      XmiSerializationSharedData deserSharedData = null;
      ReuseInfo reuseInfo = null;
     
      UimaSerializer uimaSerializer = SerializerCache.lookupSerializerByThreadId();
      byte[] binarySource = aMessageContext.getByteMessage();

      switch (serialFormat) {
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.