Examples of Schema


Examples of com.datasalt.pangool.io.Schema

    // serialize common
    write(commonSchema, tuple, commonTranslation, out,serInfo.getCommonSchemaSerializers());
    // serialize source id
    WritableUtils.writeVInt(out, schemaId);
    // serialize rest of the fields
    Schema specificSchema = serInfo.getSpecificSchema(schemaId);
    int[] specificTranslation = serInfo
        .getSpecificSchemaIndexTranslation(schemaId);
    write(specificSchema, tuple, specificTranslation, out,serInfo.getSpecificSchemaSerializers().get(schemaId));
  }
View Full Code Here

Examples of com.dyuproject.protostuff.Schema

  /* (non-Javadoc)
   * @see org.directmemory.utils.Serializer#serialize(java.lang.Object, java.lang.Class)
   */
  @SuppressWarnings("unchecked")
  public byte[] serialize(Object obj, @SuppressWarnings("rawtypes") Class clazz) throws IOException {
    @SuppressWarnings("rawtypes")
    Schema schema = RuntimeSchema.getSchema(clazz);
    final LinkedBuffer buffer = LinkedBuffer.allocate(serBufferSize);
    byte[] protostuff = null;

    try {
View Full Code Here

Examples of com.esri.gpt.catalog.schema.Schema

public Schema prepareForPublication()
  throws SchemaException, SQLException {

  // prepare the schema for publication, send the request
  MetadataDocument document = new MetadataDocument();
  Schema schema = document.prepareForPublication(this);
  determineSourceUri(schema);
  determineUuid(schema);

  return schema;
}
View Full Code Here

Examples of com.eviware.soapui.impl.wadl.inference.schema.Schema

              element.setAttribute( "minOccurs", "0" );
            particles.put( item, element );
          }
          else
          {
            Schema otherSchema = context.getSchemaSystem().getSchemaForNamespace( item.getNamespaceURI() );
            schema.putPrefixForNamespace( item.getPrefix(), item.getNamespaceURI() );
            if( otherSchema == null )
            {
              otherSchema = context.getSchemaSystem().newSchema( item.getNamespaceURI() );
            }
            Particle ref = otherSchema.getParticle( item.getLocalPart() );
            if( ref == null )
            {
              ref = otherSchema.newElement( item.getLocalPart() );
            }
            if( completed )
              ref.setAttribute( "minOccurs", "0" );
            particles.put( item, Particle.Factory.newReferenceInstance( schema, ref ) );
          }
View Full Code Here

Examples of com.foundationdb.ais.model.Schema

                                   CreateSchemaNode createSchema,
                                   QueryContext context)
    {
        final String schemaName = createSchema.getSchemaName();

        Schema curSchema = ais.getSchema(schemaName);
        if((curSchema != null) &&
           skipOrThrow(context, createSchema.getExistenceCheck(), curSchema, new DuplicateSchemaException(schemaName))) {
            return;
        }
View Full Code Here

Examples of com.foundationdb.qp.rowtype.Schema

    public void createAndLoad() {
        cID = createTable(SCHEMA, C_TABLE, "cid INT NOT NULL PRIMARY KEY, w INT");
        aID = createTable(SCHEMA, A_TABLE, "aid INT NOT NULL PRIMARY KEY, cid INT, x INT, GROUPING FOREIGN KEY(cid) REFERENCES c(cid)");
        oID = createTable(SCHEMA, O_TABLE, "oid INT NOT NULL PRIMARY KEY, cid INT, y INT, GROUPING FOREIGN KEY(cid) REFERENCES c(cid)");
        iID = createTable(SCHEMA, I_TABLE, "iid INT NOT NULL PRIMARY KEY, oid INT, z INT, GROUPING FOREIGN KEY(oid) REFERENCES o(oid)");
        Schema schema = SchemaCache.globalSchema(ais());
        cRowType = schema.tableRowType(cID);
        aRowType = schema.tableRowType(aID);
        oRowType = schema.tableRowType(oID);
        iRowType = schema.tableRowType(iID);
        writeRows(// unknown
                    // no O(65, 6)
                                row(iID, 650, 65, 650000),           // 0
                            row(cID, 2, 2000),                       // 1
                        row(aID, 20, 2, 20000),                      // 2
View Full Code Here

Examples of com.google.api.explorer.client.base.Schema

      List<String> enumDescriptions,
      String minimum,
      String maximum,
      boolean required,
      String pattern) {
    Schema parameter = EasyMock.createControl().createMock(Schema.class);
    EasyMock.expect(parameter.isRepeated()).andReturn(repeated);
    EasyMock.expect(parameter.getType()).andReturn(type);
    EasyMock.expect(parameter.getEnumValues()).andReturn(enumValues);
    EasyMock.expect(parameter.getEnumDescriptions()).andReturn(enumDescriptions);
    EasyMock.expect(parameter.getMinimum()).andReturn(minimum);
    EasyMock.expect(parameter.getMaximum()).andReturn(maximum);
    EasyMock.expect(parameter.isRequired()).andReturn(required);
    EasyMock.expect(parameter.getPattern()).andReturn(pattern);

    EasyMock.replay(parameter);

    Editor editor = EditorFactory.forParameter(parameter);
    EasyMock.verify(parameter);
View Full Code Here

Examples of com.google.appengine.api.search.Schema

        GetIndexesRequest.Builder builder = GetIndexesRequest.newBuilder()
            .setIndexNamePrefix(indexName)
            .setSchemaFetched(true);
        GetResponse<Index> response = searchService.getIndexes(builder);
        for (Index index : response) {
            Schema schema = index.getSchema();
            for (int i = 0; i < fields.length; i++) {
                List<Field.FieldType> typesForField = schema.getFieldTypes(fields[i]);
                assertEquals(1, typesForField.size());
                assertEquals(fieldTypes[i], typesForField.get(0));
            }
            List<Field.FieldType> typesForField = schema.getFieldTypes("mixfield");
            assertEquals(2, typesForField.size());
            for (Field.FieldType fieldType : typesForField) {
                assertTrue((fieldType == Field.FieldType.TEXT) ||
                           (fieldType == Field.FieldType.NUMBER));
            }
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.Schema

        GetSchemaRequest req = new GetSchemaRequest();
        req.setApp(ApiProxy.getCurrentEnvironment().getAppId());
        byte[] resBuf =
            ApiProxy.makeSyncCall(DATASTORE_SERVICE, GET_SCHEMA_METHOD, req
                .toByteArray());
        Schema schema = new Schema();
        schema.mergeFrom(resBuf);
        return schema;
    }
View Full Code Here

Examples of com.google.gxp.compiler.schema.Schema

            public Void visitBundleType(BundleType type) {
              final AttributeValidator validator = type.getValidator(name);
              String innerContentTypeString = validator.getContentType();
              if (innerContentTypeString != null) {
                Schema innerSchema = schemaFactory.fromContentTypeName(innerContentTypeString);
                attrBundles.get(parameter.getPrimaryName()).put(validator,
                                                         updatedAttr.withInnerSchema(innerSchema));
              } else {
                attrBundles.get(parameter.getPrimaryName()).put(validator, updatedAttr);
              }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.