|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.uima.cas.admin.CASFactory
public abstract class CASFactory
Factory class to create CASMgr objects. This is the only class in this package. Once you have created a CAS object, you can use the methods there to create and access objects implementing the other interfaces. For the OO API, no direct access to any of the implementations is provided. Should you want to provide an alternative implementation of the CAS interfaces in this package, the only thing you have to change is the implementation of the createCAS() method here.
All methods in this class are static. CASFactory objects can not be created.
Field Summary | |
---|---|
static boolean |
USE_JCAS_CACHE_DEFAULT
|
Constructor Summary | |
---|---|
CASFactory()
|
Method Summary | |
---|---|
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)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean USE_JCAS_CACHE_DEFAULT
Constructor Detail |
---|
public CASFactory()
Method Detail |
---|
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.
public static CASMgr createCAS(int initialHeapSize, boolean useJcasCache)
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |