Package lupos.datastructures.paged_dbbptree.node.nodedeserializer

Examples of lupos.datastructures.paged_dbbptree.node.nodedeserializer.LazyLiteralNodeDeSerializer


    public PrefixSearchMinMax<TripleKey, Triple> getDatastructure(final CollationOrder order) {
        try {
            if (Indices.usedDatastructure == DATA_STRUCT.DBBPTREE) {

                final NodeDeSerializer<TripleKey, Triple> nodeDeSerializer = (LiteralFactory.getMapType() == LiteralFactory.MapType.LAZYLITERAL || LiteralFactory.getMapType() == LiteralFactory.MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP) ? new LazyLiteralNodeDeSerializer(order) : new StandardNodeDeSerializer<TripleKey, Triple>(TripleKey.class, Triple.class);

                final DBBPTree<TripleKey, Triple> dbbptree = new DBBPTree<TripleKey, Triple>(k, k_, nodeDeSerializer, TripleKey.class, Triple.class);

                dbbptree.setName(order.toString());
View Full Code Here


      if(psmm instanceof OptimizedDBBPTreeGeneration){
          tree = ((OptimizedDBBPTreeGeneration<TripleKey, Triple>)psmm).getDBBPTree();
        } else if(psmm instanceof DBBPTree) {
          tree = (DBBPTree<TripleKey, Triple>) psmm;
        } else {
          final NodeDeSerializer<TripleKey, Triple> nodeDeSerializer = (LiteralFactory.getMapType() == LiteralFactory.MapType.LAZYLITERAL || LiteralFactory.getMapType() == LiteralFactory.MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP) ? new LazyLiteralNodeDeSerializer(order) : new StandardNodeDeSerializer<TripleKey, Triple>(TripleKey.class, Triple.class);
            tree = new DBBPTree<TripleKey, Triple>(k, k_, nodeDeSerializer, TripleKey.class, Triple.class);
        }
    tree.generateDBBPTree(generator);
      switch(order){
      default:
View Full Code Here

      return LengthHelper.lengthLuposByte();
    }

    @Override
    public void serialize(final NodeDeSerializer<TripleKey, Triple> t, final OutputStream out) throws IOException {
      final LazyLiteralNodeDeSerializer tc = (LazyLiteralNodeDeSerializer) t;
      OutHelper.writeLuposByte((byte) tc.getCollationOrder().ordinal(), out);
    }
View Full Code Here

      OutHelper.writeLuposByte((byte) tc.getCollationOrder().ordinal(), out);
    }

    @Override
    public  NodeDeSerializer<TripleKey, Triple> deserialize(final InputStream in) throws IOException, URISyntaxException, ClassNotFoundException {
      return new LazyLiteralNodeDeSerializer(RDF3XIndexScan.CollationOrder.values()[InputHelper.readLuposByte(in)]);
    }
View Full Code Here

TOP

Related Classes of lupos.datastructures.paged_dbbptree.node.nodedeserializer.LazyLiteralNodeDeSerializer

Copyright © 2018 www.massapicom. 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.