Package cc.mallet.pipe.iterator
Class DBInstanceIterator
- java.lang.Object
-
- cc.mallet.pipe.iterator.DBInstanceIterator
-
-
Field Summary
Fields Modifier and Type Field Description static int
EMPTY
static int
FEATURE_SEQUENCE
static int
FEATURE_VECTOR
static int
FEATURE_VECTOR_SEQUENCE
static int
LABEL
static int
STRING
-
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.void
cleanup()
static InstanceList
getInstances(java.lang.String dbName)
Pipe
getPipe()
boolean
hasNext()
Instance
next()
void
remove()
-
-
-
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:
hasNext
in 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:
remove
in interfacejava.util.Iterator<Instance>
-
-