Package org.apache.xindice.core.data

Examples of org.apache.xindice.core.data.Value


      this.op = op;
      if ( op == SW || op == NSW ) {
         byte[] b = new byte[val1.getLength()+1];
         System.arraycopy(val1.getData(), 0, b, 0, b.length-1);
         b[b.length-1] = 127; // TODO: Must fix this
         Value val2 = new Value(b);
         vals = new Value[] { val1, val2 };
      }
      else
         vals = new Value[] { val1 };
   }
View Full Code Here


   public IndexQuery(IndexPattern pattern, Value val1, Value val2) {
      this(pattern, IN, val1, val2);
   }
  
   public IndexQuery(IndexPattern pattern, int op, String val1) {
      this(pattern, op, new Value(val1));
   }
View Full Code Here

   public IndexQuery(IndexPattern pattern, int op, String val1) {
      this(pattern, op, new Value(val1));
   }
  
   public IndexQuery(IndexPattern pattern, String val1) {
      this(pattern, new Value(val1));
   }
View Full Code Here

   public IndexQuery(IndexPattern pattern, String val1) {
      this(pattern, new Value(val1));
   }
  
   public IndexQuery(IndexPattern pattern, int op, String val1, String val2) {
      this(pattern, op, new Value(val1), new Value(val2));
   }
View Full Code Here

   public IndexQuery(IndexPattern pattern, int op, String val1, String val2) {
      this(pattern, op, new Value(val1), new Value(val2));
   }
  
   public IndexQuery(IndexPattern pattern, String val1, String val2) {
      this(pattern, new Value(val1), new Value(val2));
   }
View Full Code Here

    *
    * @param value The Value to compare
    * @return Whether or not the value matches
    */
   public final boolean testValue(String value) {
      return testValue(new Value(value));
   }
View Full Code Here

      }
      checkOpened();
      try {
         long pos = findValue(key);
         Page startPage = getPage(pos);
         Value v = readValue(startPage);
         BTreeFilerPageHeader sph = (BTreeFilerPageHeader)startPage.getPageHeader();

         HashMap meta = new HashMap(2);
         meta.put(Record.CREATED, new Long(sph.getCreated()));
         meta.put(Record.MODIFIED, new Long(sph.getModified()));
View Full Code Here

      }
      checkOpened();
      try {
         Page startPage = seekRecordPage(key);
         if ( startPage != null ) {
            Value v = readValue(startPage);
            HashPageHeader sph = (HashPageHeader)startPage.getPageHeader();

            HashMap meta = new HashMap(2);
            meta.put(Record.CREATED, new Long(sph.getCreated()));
            meta.put(Record.MODIFIED, new Long(sph.getModified()));
View Full Code Here

      private Value name;
      private long page;

      public BTreeRootInfo(BTreeRootInfo parent, String name, long page) {
         this.parent = parent;
         this.name = new Value(name);
         this.page = page;
      }
View Full Code Here

         this.page = page;
      }

      public BTreeRootInfo(String name, long page) {
         this.parent = rootInfo;
         this.name = new Value(name);
         this.page = page;
      }
View Full Code Here

TOP

Related Classes of org.apache.xindice.core.data.Value

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.