Class GeographicMidpointReduction

    • Constructor Detail

      • GeographicMidpointReduction

        public GeographicMidpointReduction​(String delim)
        Parameters:
        delim - Delimiter for the coordinates in text format. For example, if format is "lat,long" use ","
      • GeographicMidpointReduction

        public GeographicMidpointReduction​(String delim,
                                           String newColumnName)
    • Method Detail

      • getColumnsOutputName

        public List<String> getColumnsOutputName​(String columnInputName)
        Description copied from interface: AggregableColumnReduction
        Post-reduce: what is the name of the column? For example, "myColumn" -> "mean(myColumn)"
        Specified by:
        getColumnsOutputName in interface AggregableColumnReduction
        Parameters:
        columnInputName - Name of the column before reduction
        Returns:
        Name of the column after the reduction
      • getColumnOutputMetaData

        public List<ColumnMetaData> getColumnOutputMetaData​(List<String> newColumnName,
                                                            ColumnMetaData columnInputMeta)
        Description copied from interface: AggregableColumnReduction
        Post-reduce: what is the metadata (type, etc) for this column? For example: a "count unique" operation on a String (StringMetaData) column would return an Integer (IntegerMetaData) column
        Specified by:
        getColumnOutputMetaData in interface AggregableColumnReduction
        columnInputMeta - Metadata for the column, before reduce
        Returns:
        Metadata for the column, after the reduction
      • setInputSchema

        public void setInputSchema​(Schema inputSchema)
        Description copied from interface: ColumnOp
        Set the input schema.
        Specified by:
        setInputSchema in interface ColumnOp
      • getInputSchema

        public Schema getInputSchema()
        Description copied from interface: ColumnOp
        Getter for input schema
        Specified by:
        getInputSchema in interface ColumnOp
        Returns:
      • outputColumnName

        public String outputColumnName()
        Description copied from interface: ColumnOp
        The output column name after the operation has been applied
        Specified by:
        outputColumnName in interface ColumnOp
        Returns:
        the output column name
      • outputColumnNames

        public String[] outputColumnNames()
        Description copied from interface: ColumnOp
        The output column names This will often be the same as the input
        Specified by:
        outputColumnNames in interface ColumnOp
        Returns:
        the output column names
      • columnNames

        public String[] columnNames()
        Description copied from interface: ColumnOp
        Returns column names this op is meant to run on
        Specified by:
        columnNames in interface ColumnOp
        Returns:
      • columnName

        public String columnName()
        Description copied from interface: ColumnOp
        Returns a singular column name this op is meant to run on
        Specified by:
        columnName in interface ColumnOp
        Returns: