Package cc.mallet.pipe.iterator
Class DBInstanceIterator
- java.lang.Object
-
- cc.mallet.pipe.iterator.DBInstanceIterator
-
-
Field Summary
Fields Modifier and Type Field Description static intEMPTYstatic intFEATURE_SEQUENCEstatic intFEATURE_VECTORstatic intFEATURE_VECTOR_SEQUENCEstatic intLABELstatic intSTRING
-
Constructor Summary
Constructors Constructor Description DBInstanceIterator(java.lang.String dbName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int[]byteArrayToIntArray(byte[] src)Convert an array of bytes to an array of integers by copying the bits directly.voidcleanup()static InstanceListgetInstances(java.lang.String dbName)PipegetPipe()booleanhasNext()Instancenext()voidremove()
-
-
-
Field Detail
-
EMPTY
public static final int EMPTY
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
FEATURE_VECTOR
public static final int FEATURE_VECTOR
- See Also:
- Constant Field Values
-
FEATURE_SEQUENCE
public static final int FEATURE_SEQUENCE
- See Also:
- Constant Field Values
-
FEATURE_VECTOR_SEQUENCE
public static final int FEATURE_VECTOR_SEQUENCE
- See Also:
- Constant Field Values
-
LABEL
public static final int LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
byteArrayToIntArray
public static int[] byteArrayToIntArray(byte[] src)
Convert an array of bytes to an array of integers by copying the bits directly. Based on code at java2s.com.
-
getPipe
public Pipe getPipe()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<Instance>
-
getInstances
public static InstanceList getInstances(java.lang.String dbName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
cleanup
public void cleanup() throws java.lang.Exception- Throws:
java.lang.Exception
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<Instance>
-
-