Klasse DataHandleSubset

java.lang.Object
org.deidentifier.arx.DataHandle
org.deidentifier.arx.DataHandleSubset

public class DataHandleSubset extends DataHandle
This implementation of a data handle projects a given data handle onto a given research subset.
  • Konstruktordetails

    • DataHandleSubset

      public DataHandleSubset(DataHandle source, DataSubset subset)
      Creates a new handle that represents the research subset.
      Parameter:
      source -
      subset -
  • Methodendetails

    • getAttributeName

      public String getAttributeName(int col)
      Beschreibung aus Klasse kopiert: DataHandle
      Returns the name of the specified column.
      Angegeben von:
      getAttributeName in Klasse DataHandle
      Parameter:
      col - The column index
      Gibt zurück:
      the attribute name
    • getDataType

      public DataType<?> getDataType(String attribute)
      Beschreibung aus Klasse kopiert: DataHandle
      Returns the according data type.
      Setzt außer Kraft:
      getDataType in Klasse DataHandle
      Parameter:
      attribute - the attribute
      Gibt zurück:
      the data type
    • getGeneralization

      public int getGeneralization(String attribute)
      Beschreibung aus Klasse kopiert: DataHandle
      Returns the generalization level for the attribute.
      Angegeben von:
      getGeneralization in Klasse DataHandle
      Parameter:
      attribute - the attribute
      Gibt zurück:
      the generalization
    • getNumColumns

      public int getNumColumns()
      Beschreibung aus Klasse kopiert: DataHandle
      Returns the number of columns in the dataset.
      Angegeben von:
      getNumColumns in Klasse DataHandle
      Gibt zurück:
      the num columns
    • getNumRows

      public int getNumRows()
      Beschreibung aus Klasse kopiert: DataHandle
      Returns the number of rows in the dataset.
      Angegeben von:
      getNumRows in Klasse DataHandle
      Gibt zurück:
      the num rows
    • getStatistics

      public StatisticsBuilder getStatistics()
      Beschreibung aus Klasse kopiert: DataHandle
      Returns an object providing access to basic descriptive statistics about the data represented by this handle.
      Angegeben von:
      getStatistics in Klasse DataHandle
      Gibt zurück:
      the statistics
    • getSubset

      public DataSubset getSubset()
      Returns the research subset.
      Gibt zurück:
    • getValue

      public String getValue(int row, int col)
      Beschreibung aus Klasse kopiert: DataHandle
      Returns the value in the specified cell.
      Angegeben von:
      getValue in Klasse DataHandle
      Parameter:
      row - The cell's row index
      col - The cell's column index
      Gibt zurück:
      the value
    • getView

      public DataHandle getView()
      Beschreibung aus Klasse kopiert: DataHandle
      Returns a new data handle that represents a context specific view on the dataset.
      Setzt außer Kraft:
      getView in Klasse DataHandle
      Gibt zurück:
      the view
    • isOptimized

      public boolean isOptimized()
      Beschreibung aus Klasse kopiert: DataHandle
      Has this handle been optimized with local recoding?
      Setzt außer Kraft:
      isOptimized in Klasse DataHandle
      Gibt zurück:
    • isOutlier

      public boolean isOutlier(int row)
      Beschreibung aus Klasse kopiert: DataHandle
      Determines whether a given row is an outlier in the currently associated data transformation.
      Setzt außer Kraft:
      isOutlier in Klasse DataHandle
      Parameter:
      row - the row
      Gibt zurück:
      true, if is outlier
    • iterator

      public Iterator<String[]> iterator()
      Beschreibung aus Klasse kopiert: DataHandle
      Returns an iterator over the data.
      Angegeben von:
      iterator in Klasse DataHandle
      Gibt zurück:
      the iterator
    • replace

      public boolean replace(int column, String original, String replacement)
      Beschreibung aus Klasse kopiert: DataHandle
      Replaces the original value with the replacement in the given column. Only supported by handles for input data.
      Setzt außer Kraft:
      replace in Klasse DataHandle
      Parameter:
      column - the column
      original - the original
      replacement - the replacement
      Gibt zurück:
      Whether the original value was found
    • shuffledIterator

      public Iterator<String[]> shuffledIterator()
      Beschreibung aus Klasse kopiert: DataHandle
      Returns an iterator over the data in a random order.
      Angegeben von:
      shuffledIterator in Klasse DataHandle
      Gibt zurück:
      the iterator