Examples of SchemaKey


Examples of org.apache.pig.data.utils.StructuresHelper.SchemaKey

                }

                // the SchemaKey (Schema sans alias) and appendability are how we will
                // uniquely identify a SchemaTupleFactory
                Triple<SchemaKey, Boolean, GenContext> trip =
                    Triple.make(new SchemaKey(schema), isAppendable, context);

                schemaTupleFactoriesByTriple.put(trip, stf);

                SchemaTupleFactory.LOG.info("Successfully resolved class for schema ["+schema+"] and appendability ["+isAppendable+"]"
                        + " in context: " + context);
View Full Code Here

Examples of org.apache.pig.data.utils.StructuresHelper.SchemaKey

     * Schemas registered for generation are held here.
     */
    private static Map<Pair<SchemaKey, Boolean>, Pair<Integer, Set<GenContext>>> schemasToGenerate = Maps.newHashMap();

    private int internalRegisterToGenerateIfPossible(Schema udfSchema, boolean isAppendable, GenContext type) {
        Pair<SchemaKey, Boolean> key = Pair.make(new SchemaKey(udfSchema), isAppendable);
        Pair<Integer, Set<GenContext>> pr = schemasToGenerate.get(key);
        if (pr != null) {
            pr.getSecond().add(type);
            return pr.getFirst();
        }
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

          : source.getSystemId();
      // Push repaired system id back into source where read sees it.
      // It is perhaps a bad thing to patch the source, but this fixes
      // a problem.
      source.setSystemId(systemId);
      final SchemaKey key = new XmlSchemaCollection.SchemaKey(
          targetNamespace, systemId);
      XmlSchema schema = collection.getSchema(key);
      if (schema != null) {
        return schema;
      }
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

        //use the entity resolver provided
        InputSource source = collection.schemaResolver.
                resolveEntity(targetNamespace,schemaLocation,baseUri);

        final String systemId = source.getSystemId() == null ? schemaLocation : source.getSystemId();
        final SchemaKey key = new XmlSchemaCollection.SchemaKey(targetNamespace, systemId);
        XmlSchema schema = collection.getSchema(key);
        if (schema != null) {
            return schema;
        }
        if (collection.check(key)) {
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

        //use the entity resolver provided
        InputSource source = collection.schemaResolver.
                resolveEntity(targetNamespace,schemaLocation,baseUri);

        final String systemId = source.getSystemId() == null ? schemaLocation : source.getSystemId();
        final SchemaKey key = new XmlSchemaCollection.SchemaKey(targetNamespace, systemId);
        XmlSchema schema = collection.getSchema(key);
        if (schema != null) {
            return schema;
        }
            try {
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

          : source.getSystemId();
      // Push repaired system id back into source where read sees it.
      // It is perhaps a bad thing to patch the source, but this fixes
      // a problem.
      source.setSystemId(systemId);
      final SchemaKey key = new XmlSchemaCollection.SchemaKey(
          targetNamespace, systemId);
      XmlSchema schema = collection.getSchema(key);
      if (schema != null) {
        return schema;
      }
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

        //use the entity resolver provided
        InputSource source = collection.schemaResolver.
                resolveEntity(targetNamespace,schemaLocation,baseUri);

        final String systemId = source.getSystemId() == null ? schemaLocation : source.getSystemId();
        final SchemaKey key = new XmlSchemaCollection.SchemaKey(targetNamespace, systemId);
        XmlSchema schema = collection.getSchema(key);
        if (schema != null) {
            return schema;
        }
        if (collection.check(key)) {
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

            final String systemId = source.getSystemId() == null ? schemaLocation : source.getSystemId();
            // Push repaired system id back into source where read sees it.
            // It is perhaps a bad thing to patch the source, but this fixes
            // a problem.
            source.setSystemId(systemId);
            final SchemaKey key = new XmlSchemaCollection.SchemaKey(targetNamespace, systemId);
            XmlSchema schema = collection.getSchema(key);
            if (schema != null) {
                return schema;
            }
            if (collection.check(key)) {
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

          : source.getSystemId();
      // Push repaired system id back into source where read sees it.
      // It is perhaps a bad thing to patch the source, but this fixes
      // a problem.
      source.setSystemId(systemId);
      final SchemaKey key = new XmlSchemaCollection.SchemaKey(
          targetNamespace, systemId);
      XmlSchema schema = collection.getSchema(key);
      if (schema != null) {
        return schema;
      }
View Full Code Here

Examples of org.apache.ws.commons.schema.XmlSchemaCollection.SchemaKey

          return null;
        }
      }
      final String systemId = source.getSystemId() == null ? schemaLocation
          : source.getSystemId();
      final SchemaKey key = new XmlSchemaCollection.SchemaKey(
          targetNamespace, systemId);
      XmlSchema schema = collection.getSchema(key);
      if (schema != null) {
        return schema;
      }
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.