public abstract class CASFactory extends Object
All methods in this class are static. CASFactory objects can not be created.
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | USE_JCAS_CACHE_DEFAULT | 
| Constructor and Description | 
|---|
| CASFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| static CASMgr | createCAS()Create a new CASMgr object. | 
| static CASMgr | createCAS(int initialHeapSize)Create a new CASMgr object. | 
| static CASMgr | createCAS(int initialHeapSize,
         boolean useJcasCache)Deprecated. 
 use createCas(int initialHeapSize) | 
| static CASMgr | createCAS(int initialHeapSize,
         TypeSystem ts)Create a new CASMgr object from a give type system. | 
| static CASMgr | createCAS(int initialHeapSize,
         TypeSystem ts,
         boolean useJcasCache) | 
| static CASMgr | createCAS(TypeSystem ts)Create a new CASMgr object from a give type system. | 
| static CASMgr | createCAS(TypeSystem ts,
         boolean useJcasCache) | 
| static TypeSystemMgr | createTypeSystem()Create a new type system that is populated with the built-in CAS types. | 
public static final boolean USE_JCAS_CACHE_DEFAULT
public static CASMgr createCAS()
public static CASMgr createCAS(int initialHeapSize)
initialHeapSize - The initial size of the internal CAS heap. If you choose this number too small, it can
          have a major performance impact. As a very rough guideline, this number should not be
          smaller than the number of characters in documents you are processing.@Deprecated public static CASMgr createCAS(int initialHeapSize, boolean useJcasCache)
initialHeapSize - The initial size of the internal CAS heap. If you choose this number too small, it can
          have a major performance impact. As a very rough guideline, this number should not be
          smaller than the number of characters in documents you are processing.useJcasCache - - ignored in v3public static CASMgr createCAS(int initialHeapSize, TypeSystem ts)
initialHeapSize - The initial size of the internal CAS heap. If you choose this number too small, it can
          have a major performance impact. As a very rough guideline, this number should not be
          smaller than the number of characters in documents you are processing.ts - An existing type system (must not be null).public static CASMgr createCAS(int initialHeapSize, TypeSystem ts, boolean useJcasCache)
public static CASMgr createCAS(TypeSystem ts)
ts - An existing type system (must not be null).public static CASMgr createCAS(TypeSystem ts, boolean useJcasCache)
public static TypeSystemMgr createTypeSystem()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.