com.nhncorp.neptune.util.matrix
Class AbstractMatrix

java.lang.Object
  extended by com.nhncorp.neptune.util.matrix.AbstractMatrix
Direct Known Subclasses:
Matrix, SparseMatrix

public abstract class AbstractMatrix
extends java.lang.Object


Field Summary
static java.text.DecimalFormat KEY_FORMAT
           
static java.lang.String MAX_KEY_VALUE
           
 
Constructor Summary
AbstractMatrix(NConfiguration conf, java.lang.String tableName, java.lang.String columnName)
           
AbstractMatrix(NConfiguration conf, java.lang.String tableName, java.lang.String columnName, AbstractMatrix inputMatrix)
           
 
Method Summary
abstract  void addToUploader(java.lang.String row, java.lang.String col, double value)
           
abstract  void addValue(java.lang.String row, java.lang.String col, double value)
           
 void closeUploader()
           
 void initUploader()
           
 void mutiply(AbstractMatrix targetMatrix, AbstractMatrix resultMatrix)
           
 void mutiplyLocal(AbstractMatrix targetMatrix, AbstractMatrix resultMatrix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_FORMAT

public static final java.text.DecimalFormat KEY_FORMAT

MAX_KEY_VALUE

public static final java.lang.String MAX_KEY_VALUE
See Also:
Constant Field Values
Constructor Detail

AbstractMatrix

public AbstractMatrix(NConfiguration conf,
                      java.lang.String tableName,
                      java.lang.String columnName)
               throws java.io.IOException
Throws:
java.io.IOException

AbstractMatrix

public AbstractMatrix(NConfiguration conf,
                      java.lang.String tableName,
                      java.lang.String columnName,
                      AbstractMatrix inputMatrix)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addValue

public abstract void addValue(java.lang.String row,
                              java.lang.String col,
                              double value)
                       throws java.io.IOException
Throws:
java.io.IOException

addToUploader

public abstract void addToUploader(java.lang.String row,
                                   java.lang.String col,
                                   double value)
                            throws java.io.IOException
Throws:
java.io.IOException

initUploader

public void initUploader()
                  throws java.io.IOException
Throws:
java.io.IOException

closeUploader

public void closeUploader()
                   throws java.io.IOException
Throws:
java.io.IOException

mutiply

public void mutiply(AbstractMatrix targetMatrix,
                    AbstractMatrix resultMatrix)
             throws java.io.IOException
Throws:
java.io.IOException

mutiplyLocal

public void mutiplyLocal(AbstractMatrix targetMatrix,
                         AbstractMatrix resultMatrix)
                  throws java.io.IOException
Throws:
java.io.IOException