Package lupos.datastructures.items

Examples of lupos.datastructures.items.TripleComparator


      OutHelper.writeLuposByte(tc.getBytePattern(), out);
    }

    @Override
    public Comparator<Triple> deserialize(final InputStream in) throws IOException, URISyntaxException, ClassNotFoundException {
      return new TripleComparator(InputHelper.readLuposByte(in));
    }
View Full Code Here


                    objectIsLazyLiteralOriginalContent));
          }
          break;
        }
      }
      return new InnerNodeEntry(new TripleKey(t, new TripleComparator(
          this.order)), fileName, numberOfTriples, numberDistinctSubjects,
          numberDistinctPredicates, numberDistinctObjects,
          subjectDifferentFromPreviousTriple,
          predicateDifferentFromPreviousTriple,
          objectDifferentFromPreviousTriple);
View Full Code Here

            tertiary = innerNode.getFirst().getTripleComparator()
                .getTertiary();
          }
        }
        final TripleKey key = new TripleKey(lastTriple,
            new TripleComparator(primary, secondary, tertiary));
        while (innerNode.getFirst().compareTo(key) < 0) {
          final InnerNodeEntry ine = LazyLiteralTripleKeyDBBPTreeStatistics.this.getNextInnerNodeEntryStatistics(
              innerNode.getFirst(), innerNode.getSecond());
          if (ine == null) {
            try {
View Full Code Here

          final COMPARE primary = nextEntry.key.getTripleComparator()
              .getPrimary();
          final COMPARE secondary = COMPARE.NONE;
          final COMPARE tertiary = COMPARE.NONE;
          final TripleKey key = new TripleKey(lastTriple,
              new TripleComparator(primary, secondary, tertiary));
          while (true) {
            if (nextEntry == null || nextEntry.fileName <= 0) {
              in.close();
              this.close();
              this.next = null;
View Full Code Here

            break;
          }
        }
      }
      return new DBBPTreeEntry<TripleKey, Triple>(new TripleKey(t,
          new TripleComparator(this.order)), t, filenameOfNextLeafNode);
    } catch (final FileNotFoundException e) {
      e.printStackTrace();
      System.err.println(e);
    } catch (final IOException e) {
    }
View Full Code Here

          }
          break;
        }
      }
      return new Tuple<TripleKey, Integer>(new TripleKey(t,
          new TripleComparator(this.order)), fileName);
    } catch (final FileNotFoundException e) {
      e.printStackTrace();
      System.err.println(e);
    } catch (final IOException e) {
      // just ignore...
View Full Code Here

          }
          break;
        }
      }
      return new Tuple<TripleKey, Integer>(new TripleKey(t,
          new TripleComparator(this.order)), fileName);
    } catch (final FileNotFoundException e) {
      e.printStackTrace();
      System.err.println(e);
    } catch (final IOException e) {
    }
View Full Code Here

    super.init();
    this.readTriples = new LinkedList<Triple>();
  }

  public void sortReadTriples() {
    final SortedSet<Triple> sst = new TreeSet<Triple>(new TripleComparator(
        RDF3XIndexScan.CollationOrder.SPO));
    sst.addAll(this.readTriples);
    this.readTriples.clear();
    this.readTriples.addAll(sst);
  }
View Full Code Here

TOP

Related Classes of lupos.datastructures.items.TripleComparator

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.