This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Register TagPrefix="fluent" Namespace="Fluent" Assembly="Fluent.ListTransfer" %> | |
... | |
<fluent:ListTransfer Runat="server" ID="ListTransferEmployees" | |
ListControlTo="ListBoxProjectMembers" | |
ListControlFrom="ListBoxEmployees" | |
EnableClientSide="True" | |
> | |
<asp:ListBox ID="ListBoxEmployees" Runat="server" | |
SelectionMode="Multiple" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Register TagPrefix="fluent" Namespace="Fluent.ControlFocus" Assembly="Fluent.ControlFocus" %> | |
... | |
<asp:TextBox runat="server" ID="FirstTextBox" /><br/> | |
<%-- the control below, SecondTextBox, will be focused on page load --%> | |
<asp:TextBox runat="server" ID="SecondTextBox" /> | |
<fluent:ControlFocus runat="server" Control="SecondTextBox" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit class ProductRDD[T <: Product](rdd: RDD[T]) { | |
/* Saves a RDD of Tuples into a TSV. | |
* Ex: Employee(emp_id = 123, Name(first="Bob",last="Smith")) => "123\tBob\tSmith" | |
*/ | |
def saveAsTsv(path: String) { | |
rdd.map(p => p.productIterator.flatMap { | |
case a: Product => a.productIterator //flattens nested case classes | |
case b => Seq(b) | |
}.mkString("\t")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.avro.Schema; | |
import org.apache.avro.io.BinaryData; | |
import org.apache.avro.mapred.AvroKey; | |
import org.apache.avro.mapred.Pair; | |
import org.apache.avro.mapreduce.AvroJob; | |
import org.apache.avro.reflect.ReflectData; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.conf.Configured; | |
import org.apache.hadoop.io.RawComparator; |
NewerOlder