id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
206459_60 | public void write(D datum, Encoder out) throws IOException {
Objects.requireNonNull(out, "Encoder cannot be null");
write(root, datum, out);
} |
206459_61 | public void write(D datum, Encoder out) throws IOException {
Objects.requireNonNull(out, "Encoder cannot be null");
write(root, datum, out);
} |
206459_62 | public void write(D datum, Encoder out) throws IOException {
Objects.requireNonNull(out, "Encoder cannot be null");
write(root, datum, out);
} |
206459_63 | public void write(D datum, Encoder out) throws IOException {
Objects.requireNonNull(out, "Encoder cannot be null");
write(root, datum, out);
} |
206459_64 | public Object getField(Object record, String name, int position) {
return ((IndexedRecord) record).get(position);
} |
206459_65 | public int hashCode(Object o, Schema s) {
if (o == null)
return 0; // incomplete datum
int hashCode = 1;
switch (s.getType()) {
case RECORD:
for (Field f : s.getFields()) {
if (f.order() == Field.Order.IGNORE)
continue;
hashCode = hashCodeAdd(hashCode, getField(o, f.name(), f.pos()),... |
206459_66 | public static GenericData get() {
return INSTANCE;
} |
206459_67 | public static GenericData get() {
return INSTANCE;
} |
206459_68 | public static GenericData get() {
return INSTANCE;
} |
206459_69 | public static GenericData get() {
return INSTANCE;
} |
206459_70 | public static GenericData get() {
return INSTANCE;
} |
206459_71 | public String toString(Object datum) {
StringBuilder buffer = new StringBuilder();
toString(datum, buffer, new IdentityHashMap<>(128));
return buffer.toString();
} |
206459_72 | public int compare(Object o1, Object o2, Schema s) {
return compare(o1, o2, s, false);
} |
206459_73 | public Object createEnum(String symbol, Schema schema) {
return new EnumSymbol(schema, symbol);
} |
206459_74 | public GenericRecordBuilder set(String fieldName, Object value) {
return set(schema().getField(fieldName), value);
} |
206459_75 | @Override
public Record build() {
Record record;
try {
record = new GenericData.Record(schema());
} catch (Exception e) {
throw new AvroRuntimeException(e);
}
for (Field field : fields()) {
Object value;
try {
value = getWithDefault(field);
} catch (IOException e) {
throw new A... |
206459_76 | public static RecordBuilder<Schema> record(String name) {
return builder().record(name);
} |
206459_77 | public static FixedBuilder<Schema> fixed(String name) {
return builder().fixed(name);
} |
206459_78 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_79 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_80 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_81 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_82 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_83 | public static RecordBuilder<Schema> record(String name) {
return builder().record(name);
} |
206459_84 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_85 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_86 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_87 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_88 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_89 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_90 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_91 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206459_92 | public static RecordBuilder<Schema> record(String name) {
return builder().record(name);
} |
206459_93 | public static EnumBuilder<Schema> enumeration(String name) {
return builder().enumeration(name);
} |
206459_94 | public static EnumBuilder<Schema> enumeration(String name) {
return builder().enumeration(name);
} |
206459_95 | public static FixedBuilder<Schema> fixed(String name) {
return builder().fixed(name);
} |
206459_96 | public static ArrayBuilder<Schema> array() {
return builder().array();
} |
206459_97 | public static MapBuilder<Schema> map() {
return builder().map();
} |
206459_98 | public static RecordBuilder<Schema> record(String name) {
return builder().record(name);
} |
206459_99 | public static TypeBuilder<Schema> builder() {
return new TypeBuilder<>(new SchemaCompletion(), new NameContext());
} |
206478_10 | @Override
public void section3()
{
onSection( SECTION_LEVEL_3, null );
} |
206478_11 | @Override
public void section4()
{
onSection( SECTION_LEVEL_4, null );
} |
206478_12 | @Override
public void section5()
{
onSection( SECTION_LEVEL_5, null );
} |
206478_13 | @Override
public void list()
{
list( null );
} |
206478_14 | @Override
public void numberedList( int numbering )
{
numberedList( numbering, null );
} |
206478_15 | @Override
public void definitionList()
{
definitionList( null );
} |
206478_16 | @Override
public void figure()
{
write( String.valueOf( LESS_THAN ) + HtmlMarkup.IMG );
legacyFigure = true;
} |
206478_17 | @Override
public void figureGraphics( String name )
{
write( String.valueOf( SPACE ) + Attribute.SRC + EQUAL + QUOTE + escapeHTML( name ) + QUOTE );
} |
206478_18 | @Override
public void paragraph()
{
paragraph( null );
} |
206478_19 | @Override
public void verbatim( boolean boxed )
{
if ( boxed )
{
verbatim( SinkEventAttributeSet.BOXED );
}
else
{
verbatim( null );
}
} |
206478_20 | @Override
public void horizontalRule()
{
horizontalRule( null );
} |
206478_21 | @Override
public void table()
{
// start table with tableRows
table( null );
} |
206478_22 | @Override
public void tableRows( int[] justification, boolean grid )
{
this.tableRows = true;
setCellJustif( justification );
if ( this.tableAttributes == null )
{
this.tableAttributes = new SinkEventAttributeSet( 0 );
}
MutableAttributeSet att = new SinkEventAttributeSet();
if ( !th... |
206478_23 | @Override
public void tableRow()
{
// To be backward compatible
if ( !this.tableRows )
{
tableRows( null, false );
}
tableRow( null );
} |
206478_24 | @Override
public void tableCell()
{
tableCell( (SinkEventAttributeSet) null );
} |
206478_25 | @Override
public void tableHeaderCell()
{
tableHeaderCell( (SinkEventAttributeSet) null );
} |
206478_26 | @Override
public void tableCaption()
{
tableCaption( null );
} |
206478_27 | @Override
public void anchor( String name )
{
anchor( name, null );
} |
206478_28 | @Override
public void link( String name )
{
link( name, null );
} |
206478_29 | @Override
public void italic()
{
inline( SinkEventAttributeSet.Semantics.ITALIC );
} |
206478_30 | @Override
public void lineBreak()
{
lineBreak( null );
} |
206478_31 | @Override
public void text( String text )
{
if ( headFlag )
{
getTextBuffer().append( text );
}
else if ( verbatimFlag )
{
verbatimContent( text );
}
else
{
content( text );
}
} |
206478_32 | @Override
public void rawText( String text )
{
if ( headFlag )
{
getTextBuffer().append( text );
}
else
{
write( text );
}
} |
206478_33 | @Override
public void comment( String comment )
{
if ( comment != null )
{
final String originalComment = comment;
// http://www.w3.org/TR/2000/REC-xml-20001006#sec-comments
while ( comment.contains( "--" ) )
{
comment = comment.replace( "--", "- -" );
}
... |
206478_34 | @Override
public void unknown( String name, Object[] requiredParams, SinkEventAttributes attributes )
{
if ( requiredParams == null || !( requiredParams[0] instanceof Integer ) )
{
String msg = "No type information for unknown event: '" + name + "', ignoring!";
logMessage( "noTypeInfo", msg );
... |
206478_35 | @Override
public void head()
{
// nop
} |
206478_36 | @Override
public void body()
{
// nop
} |
206478_37 | @Override
public void article()
{
// nop
} |
206478_38 | @Override
public void navigation()
{
// nop
} |
206478_39 | @Override
public void sidebar()
{
// nop
} |
206478_40 | @Override
public void section1()
{
// nop
} |
206478_41 | @Override
public void section2()
{
// nop
} |
206478_42 | @Override
public void section3()
{
// nop
} |
206478_43 | @Override
public void section4()
{
// nop
} |
206478_44 | @Override
public void section5()
{
// nop
} |
206478_45 | @Override
public void list()
{
// nop
} |
206478_46 | @Override
public void listItem()
{
// nop
} |
206478_47 | @Override
public void numberedList( int numbering )
{
// nop
} |
206478_48 | @Override
public void numberedListItem()
{
// nop
} |
206478_49 | @Override
public void definitionList()
{
// nop
} |
206478_50 | @Override
public void definitionListItem()
{
// nop
} |
206478_51 | @Override
public void definition()
{
// nop
} |
206478_52 | @Override
public void figure()
{
// nop
} |
206478_53 | @Override
public void table()
{
// nop
} |
206478_54 | @Override
public void tableRows( int[] justification, boolean grid )
{
// nop
} |
206478_55 | @Override
public void tableRow()
{
// nop
} |
206478_56 | @Override
public void title()
{
// nop
} |
206478_57 | @Override
public void author()
{
// nop
} |
206478_58 | @Override
public void date()
{
// nop
} |
206478_59 | @Override
public void sectionTitle()
{
// nop
} |
206478_60 | @Override
public void sectionTitle1()
{
// nop
} |
206478_61 | @Override
public void sectionTitle2()
{
// nop
} |
206478_62 | @Override
public void sectionTitle3()
{
// nop
} |
206478_63 | @Override
public void sectionTitle4()
{
// nop
} |
206478_64 | @Override
public void sectionTitle5()
{
// nop
} |
206478_65 | @Override
public void header()
{
// nop
} |
206478_66 | @Override
public void content()
{
// nop
} |
206478_67 | @Override
public void footer()
{
// nop
} |
206478_68 | @Override
public void paragraph()
{
// nop
} |
206478_69 | @Override
public void data( String value )
{
// nop
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.