org.apache.uima.jcas.impl
Class JCasHashMap

java.lang.Object
  extended by org.apache.uima.jcas.impl.JCasHashMap

public class JCasHashMap
extends java.lang.Object

Special space-saving table that maps between CAS addr and JCas cover objects. Assumptions: Each addr has a corresponding JCas; it is not permitted to "update" an addr with a different JCas cover class (unless the table is cleared first). Table always a power of 2 in size - permits faster hashing


Method Summary
 void clear()
           
 FeatureStructureImpl get(int key)
           
 void put(FeatureStructureImpl value)
           
 void showHistogram()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clear

public void clear()

get

public FeatureStructureImpl get(int key)

put

public void put(FeatureStructureImpl value)

size

public int size()

showHistogram

public void showHistogram()


Copyright © 2012. All Rights Reserved.