本文整理了Java中cc.mallet.types.InstanceList.clear()
方法的一些代码示例,展示了InstanceList.clear()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InstanceList.clear()
方法的具体详情如下:
包路径:cc.mallet.types.InstanceList
类名称:InstanceList
方法名:clear
暂无
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
/**
* Calls clear on each fold. It is recommended that this be always be called
* when the iterator is no longer needed so that implementations of
* InstanceList such as PagedInstanceList can clean up any temporary data
* they may have outside the JVM.
*/
public void clear () {
for (InstanceList list : this.folds) {
list.clear();
}
}
代码示例来源:origin: cc.mallet/mallet
/**
* Calls clear on each fold. It is recommended that this be always be called
* when the iterator is no longer needed so that implementations of
* InstanceList such as PagedInstanceList can clean up any temporary data
* they may have outside the JVM.
*/
public void clear () {
for (InstanceList list : this.folds) {
list.clear();
}
}
代码示例来源:origin: com.github.steveash.mallet/mallet
/**
* Calls clear on each fold. It is recommended that this be always be called
* when the iterator is no longer needed so that implementations of
* InstanceList such as PagedInstanceList can clean up any temporary data
* they may have outside the JVM.
*/
public void clear () {
for (InstanceList list : this.folds) {
list.clear();
}
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public void clear () {
int numPages = this.size / this.instancesPerPage;
for (int i = 0; i <= numPages; i++) {
getFileForPage (i).delete ();
}
for (int i = 0; i < this.inMemoryPages.length; i++) {
this.inMemoryPages[i] = null;
this.inMemoryPageIds[i] = -1;
}
this.size = 0;
this.swapIns = 0;
this.swapInTime = 0;
this.swapOuts = 0;
this.swapOutTime = 0;
this.dirty.clear ();
super.clear ();
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public void clear () {
int numPages = this.size / this.instancesPerPage;
for (int i = 0; i <= numPages; i++) {
getFileForPage (i).delete ();
}
for (int i = 0; i < this.inMemoryPages.length; i++) {
this.inMemoryPages[i] = null;
this.inMemoryPageIds[i] = -1;
}
this.size = 0;
this.swapIns = 0;
this.swapInTime = 0;
this.swapOuts = 0;
this.swapOutTime = 0;
this.dirty.clear ();
super.clear ();
}
代码示例来源:origin: cc.mallet/mallet
public void clear () {
int numPages = this.size / this.instancesPerPage;
for (int i = 0; i <= numPages; i++) {
getFileForPage (i).delete ();
}
for (int i = 0; i < this.inMemoryPages.length; i++) {
this.inMemoryPages[i] = null;
this.inMemoryPageIds[i] = -1;
}
this.size = 0;
this.swapIns = 0;
this.swapInTime = 0;
this.swapOuts = 0;
this.swapOutTime = 0;
this.dirty.clear ();
super.clear ();
}
内容来源于网络,如有侵权,请联系作者删除!