public class BinaryCasSerDes extends Object
| Constructor and Description | 
|---|
| BinaryCasSerDes(CASImpl baseCAS) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()called by cas reset | 
| static int | getFsSpaceReq(TOP fs,
             TypeImpl type) | 
| void | reinit(CASCompleteSerializer casCompSer)Deserializer for CASCompleteSerializer instances - includes type system and index definitions
 Never delta | 
| void | reinit(CASSerializer ser)Deserializer for Java-object serialized instance of CASSerializer. | 
| SerialFormat | reinit(CommonSerDes.Header h,
      InputStream istream,
      CASMgrSerializer casMgrSerializer,
      CasLoadMode casLoadMode,
      BinaryCasSerDes6 f6,
      AllowPreexistingFS allowPreexistingFS,
      TypeSystemImpl ts)Deserialize a binary input stream, after reading the header, and optionally an externally
 provided type system and index spec used in compressed form 6 serialization previously
 
 This reads in and deserializes CAS data from a stream. | 
| SerialFormat | reinit(InputStream istream)see Blob Format in CASSerializer
 
 This reads in and deserializes CAS data from a stream. | 
| CASImpl | setupCasFromCasMgrSerializer(CASMgrSerializer casMgrSerializer) | 
public BinaryCasSerDes(CASImpl baseCAS)
public void reinit(CASSerializer ser)
ser - - The instance to convert back to a CASpublic CASImpl setupCasFromCasMgrSerializer(CASMgrSerializer casMgrSerializer)
public void reinit(CASCompleteSerializer casCompSer)
casCompSer - -public SerialFormat reinit(InputStream istream) throws CASRuntimeException
istream - -CASRuntimeException - wraps IOExceptionpublic SerialFormat reinit(CommonSerDes.Header h, InputStream istream, CASMgrSerializer casMgrSerializer, CasLoadMode casLoadMode, BinaryCasSerDes6 f6, AllowPreexistingFS allowPreexistingFS, TypeSystemImpl ts) throws CASRuntimeException
h - -istream - -casMgrSerializer - null or the Java object representing the externally supplied type and maybe indexes
          definition (TSI)casLoadMode - DEFAULT or REINIT. REINIT required with compressed form 6 to reinitialize the cas's
          type system and index definition, for form 6.f6 - only used for form 6 where an instance of BinaryCasSerDes6 has been initializedallowPreexistingFS - only used for form 6 delta deserializationts - the type systemCASRuntimeException - wraps IOExceptionpublic void clear()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.