public class LocalPropertiesIterator extends Object implements Iterator<LocalProperties>
Modifier and Type | Field and Description |
---|---|
protected int[] |
atomColIndices |
protected org.apache.commons.csv.CSVRecord |
curCSVRecord |
protected LocalProperties |
curLocalProperties |
protected String |
curMolId |
protected File |
file |
protected org.apache.commons.csv.CSVFormat |
format |
protected Iterator<org.apache.commons.csv.CSVRecord> |
iterator |
protected LocalProperties.Type |
locPropType |
protected int |
molIdColIndex |
protected int |
numOfProperties |
protected org.apache.commons.csv.CSVParser |
parser |
protected int[] |
propertyColIndices |
protected String[] |
propertyNames |
Constructor and Description |
---|
LocalPropertiesIterator(File file) |
LocalPropertiesIterator(File file,
org.apache.commons.csv.CSVFormat format,
LocalProperties.Type locPropType) |
LocalPropertiesIterator(File file,
LocalProperties.Type locPropType) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
LocalProperties.Type |
getLocalPropertyType() |
String[] |
getPropertyNames() |
boolean |
hasNext() |
protected void |
init() |
LocalProperties |
next() |
protected void |
setDefaultColumnIndices() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
protected File file
protected LocalProperties.Type locPropType
protected org.apache.commons.csv.CSVParser parser
protected Iterator<org.apache.commons.csv.CSVRecord> iterator
protected org.apache.commons.csv.CSVFormat format
protected LocalProperties curLocalProperties
protected org.apache.commons.csv.CSVRecord curCSVRecord
protected String curMolId
protected String[] propertyNames
protected int numOfProperties
protected int molIdColIndex
protected int[] atomColIndices
protected int[] propertyColIndices
public LocalPropertiesIterator(File file) throws Exception
Exception
public LocalPropertiesIterator(File file, LocalProperties.Type locPropType) throws Exception
Exception
public LocalPropertiesIterator(File file, org.apache.commons.csv.CSVFormat format, LocalProperties.Type locPropType) throws Exception
Exception
public String[] getPropertyNames()
public LocalProperties.Type getLocalPropertyType()
protected void setDefaultColumnIndices()
public boolean hasNext()
hasNext
in interface Iterator<LocalProperties>
public LocalProperties next()
next
in interface Iterator<LocalProperties>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.