On 5/17/07, Kirk True <[EMAIL PROTECTED]> wrote:
Hi all,
Is there a way to remove data that was inserted into a view?
For all except SofaFS, a feature structure is considered deleted by
removing it from all indexes and/or removing any references to it from
other FS that is indexed or can be reached from another indexed FS. At
that point there is no way to access the FS.
SofaFS are considered immutable to a CAS.
In our application, we load the initial raw document bytes and store it
in a CAS view in one annotator, but later in another downstream
annotator we transform the raw document bytes into plain text and store
it in the "main" CAS view as the document text. At that point the
initial raw document bytes are of no interest.
I've looked but don't see a clear way to remove that data. I tried the
reset/release methods, but that deleted other data from the CAS that is
needed.
Yes, although it is a bit complicated; it can be done with a CAS
multiplier component. A CAS multiplier is a component that can create
new CASes. For this situation, the CAS multiplier would just copy data
from the old CAS to a new one, leaving out what is no longer wanted.
The flow controller would do no further processing on the old CAS.
There is a CasCopier method that facilitates this kind of thing.
Eddie