RecordDataSchema$Field.<init>
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using com.linkedin.data.schema.RecordDataSchema$Field.<init> (Showing top 7 results out of 315)

origin: com.linkedin.pegasus/data

 throw new IllegalStateException("type is missing for field: " + field.getText());
Field result = new Field(toDataSchema(field.type));
Map<String, Object> properties = new HashMap<>();
result.setName(field.name, errorMessageBuilder());
origin: com.linkedin.pegasus/data

public FieldDef(String name, Class<T> type, DataSchema dataSchema)
{
 _name = name;
 _type = type;
 _dataSchema = dataSchema;
 /**
  * FieldDefs representing context, pagination, or things relating to synchronization will not
  * have schemas, so dataSchema and thus dataClass can be null.
  */
 _dataClass = getDataClassFromSchema(_dataSchema);
 StringBuilder errorMessageBuilder = new StringBuilder();
 _field = new RecordDataSchema.Field(_dataSchema);
 _field.setName(_name, errorMessageBuilder);
}
origin: org.coursera.courier/courier-grammar

FieldDeclarationContext field = element.fieldDeclaration();
if (field != null) {
 Field result = new Field(toDataSchema(field.type));
 Map<String, Object> properties = new HashMap<String, Object>();
 result.setName(field.name, errorMessageBuilder());
origin: com.linkedin.pegasus/data-avro

 private RecordDataSchema.Field buildDiscriminatorEnumField(
   String parentRecordFullName, List<String> memberKeys, StringBuilder errorMessageBuilder)
 {
  Name enumName = new Name(parentRecordFullName + SchemaTranslator.CONTAINER_RECORD_DISCRIMINATOR_ENUM_SUFFIX, errorMessageBuilder);
  EnumDataSchema enumDataSchema = new EnumDataSchema(enumName);
  enumDataSchema.setSymbols(memberKeys, errorMessageBuilder);

  RecordDataSchema.Field field = new RecordDataSchema.Field(enumDataSchema);
  field.setName(DataSchemaConstants.DISCRIMINATOR_FIELD, errorMessageBuilder);
  field.setDoc("Contains the name of the field that has its value set.");
  field.setDeclaredInline(true);
  field.setOptional(false);

  return field;
 }
}
origin: com.linkedin.pegasus/restli-client

@Override
public RecordDataSchema schema()
{
 synchronized (this)
 {
  // Don't use double-checked locking because _schema isn't volatile
  if (_schema == null)
  {
   final StringBuilder errorMessageBuilder = new StringBuilder(10);
   final Name elementSchemaName = new Name(_valueClass.getSimpleName(), errorMessageBuilder);
   final MapDataSchema resultsSchema = new MapDataSchema(new RecordDataSchema(elementSchemaName, RecordDataSchema.RecordType.RECORD));
   final RecordDataSchema.Field resultsField = new RecordDataSchema.Field(resultsSchema);
   resultsField.setName(RESULTS, errorMessageBuilder);
   final MapDataSchema errorsSchema = new MapDataSchema(DataTemplateUtil.getSchema(ErrorResponse.class));
   final RecordDataSchema.Field errorsField = new RecordDataSchema.Field(errorsSchema);
   errorsField.setName(ERRORS, errorMessageBuilder);
   final Name name = new Name(BATCH_KV_RESPONSE_CLASSNAME, errorMessageBuilder);
   _schema = new RecordDataSchema(name, RecordDataSchema.RecordType.RECORD);
   _schema.setFields(Arrays.asList(resultsField, errorsField), errorMessageBuilder);
  }
 }
 return _schema;
}
origin: com.linkedin.pegasus/data-avro

RecordDataSchema.Field field = new RecordDataSchema.Field(member.getType());
field.setName(member.getUnionMemberKey(), errorMessageBuilder);
field.setDoc(member.getDoc());
origin: com.linkedin.pegasus/data

if (name != null && type != null)
 RecordDataSchema.Field field = new RecordDataSchema.Field(type);
 field.setDeclaredInline(isDeclaredInline(fieldMap.get(TYPE_KEY)));
 field.setDefault(fieldMap.get(DEFAULT_KEY));
com.linkedin.data.schemaRecordDataSchema$Field<init>

Javadoc

Constructor.

Popular methods of RecordDataSchema$Field

  • getType
    Return the DataSchema of the field.
  • getName
    Return the name of the field.
  • getOptional
    Return optional flag.
  • getProperties
    Return the properties of the field.
  • setName
    Set the name of the field.
  • setRecord
    Set the RecordDataSchema that this field is defined in. A field defined in another record may be inc
  • getDefault
    Return default value.
  • setDefault
    Set the default value. This method does not validate that the default value complies with the DataSc
  • setDoc
    Set the documentation of the field.
  • setOptional
    Set the optional flag.
  • setProperties
    Set the properties of the field.
  • getDoc
    Return the documentation of the field.
  • setProperties,
  • getDoc,
  • getRecord,
  • setDeclaredInline,
  • setType,
  • getAliases,
  • getOrder,
  • isDeclaredInline,
  • isValidFieldName

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • startActivity (Activity)
  • findViewById (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)