public SortCondition(Expr expr, int dir) { expression = expr ; direction = dir ; if ( dir != Query.ORDER_ASCENDING && dir != Query.ORDER_DESCENDING && dir != Query.ORDER_DEFAULT ) Log.error(this, "Unknown sort direction") ; }
public QueryIterRepeatApply( QueryIterator input , ExecutionContext context) { super(input, context) ; this.currentStage = null ; if ( input == null ) { Log.error(this, "[QueryIterRepeatApply] Repeated application to null input iterator") ; return ; } }
public static void panic(Class<?> clazz, String string) { Log.error(clazz, string) ; throw new TDBException(string) ; }
private static String remove(String lang) { if ( rewiredAlternative != null ) Log.error(RDFWriterFImpl.class, "Rewired RDFWriterFImpl2 - configuration changes have no effect on writing"); String oldClassName = currentEntry(lang); custom.remove(lang); return oldClassName; } }
private void checkIfClosed() { if ( closed ) Log.error(this, "Already closed: "+transaction.getTxnId()) ; }
private static String remove(String lang) { if ( rewiredAlternative != null ) Log.error(RDFReaderFImpl.class, "Rewired RDFReaderFImpl - configuration changes have no effect on reading"); String oldClassName = currentEntry(lang); custom.remove(lang); return oldClassName; } }
public static FileRef get(int fileId) { FileRef f = id2name.get(fileId) ; if ( f == null ) { Log.error(FileRef.class, "No FileRef registered for id: "+fileId) ; throw new TDBException("No FileRef registered for id: "+fileId) ; } return f ; }
public static void panic(Class<? > clazz, String string) { Log.error(clazz, string) ; throw new DBOpEnvException(string) ; } public static final boolean isWindows = determineIfWindows() ; // Memory mapped files behave differently.
public static void panic(Class<?> clazz, String string) { Log.error(clazz, string) ; throw new TDBException(string) ; }
public void finish() { --depth; if ( depth < 0 ) { Log.error(this, "Misaligned start/finish"); return; } if ( depth == 0 ) timer.endTimer(); }
private static String remove(String lang) { if ( rewiredAlternative != null ) Log.error(RDFWriterFImpl.class, "Rewired RDFWriterFImpl2 - configuration changes have no effect on writing"); String oldClassName = currentEntry(lang); custom.remove(lang); return oldClassName; } }
private static String remove(String lang) { if ( rewiredAlternative != null ) Log.error(RDFReaderFImpl.class, "Rewired RDFReaderFImpl - configuration changes have no effect on reading"); String oldClassName = currentEntry(lang); custom.remove(lang); return oldClassName; } }
public static void panic(Class<? > clazz, String string) { Log.error(clazz, string) ; throw new DBOpEnvException(string) ; } public static final boolean isWindows = determineIfWindows() ; // Memory mapped files behave differently.
public ElementService(Node n, Element el, boolean silent) { if ( ! n.isURI() && ! n.isVariable() ) Log.error(this, "Must be a URI (or variable which will be bound) for a service endpoint") ; this.serviceNode = n ; this.element = el ; this.silent = silent ; }
/** Build a {@link CuratorFramework} from the {@link LocalServerConfig}. */ protected CuratorFramework curator(LocalServerConfig config) { String connectionString = config.getProperty(DeltaConst.pDeltaZk); if ( connectionString == null ) Log.error(this, "No connection string in configuration"); CuratorFramework client = Zk.curator(connectionString); return client; }
@Override public QueryIterator execute(BasicPattern pattern, QueryIterator input, ExecutionContext execCxt) { if ( input == null ) Log.error(this, "Null input to " + Lib.classShortName(this.getClass())) ; Graph graph = execCxt.getActiveGraph() ; // Choose reorder transformation and execution strategy. ReorderTransformation reorder = reorderFixed ; StageGenerator executor = StageBuilder.executeInline ; return execute(pattern, reorder, executor, input, execCxt) ; }
@Override final public void reset(Block block2) { if ( block2.getId() != id ) Log.error(this, "Block id changed: "+id+" => "+block2.getId()) ; _reset(block2) ; this.block = block2 ; }
/** Iterate over a range of fromRec (inclusive) to toRec (exclusive) */ public static Iterator<Record> iterator(int pageId, Record fromRec, Record toRec, RecordBufferPageMgr pageMgr) { if ( ! pageMgr.valid(pageId) ) { String msg = "RecordRangeIterator.iterator -- No such block (pageId="+pageId+", fromRec="+fromRec+", toRec="+toRec+ ")" ; Log.error(RecordRangeIterator.class, msg); throw new BlockException(msg) ; } return new RecordRangeIterator(pageId, fromRec, toRec, pageMgr) ; }
public static BPlusTreeParams readMeta(MetaFile mf) { try { int pOrder = mf.getPropertyAsInteger(ParamOrder) ; int pKeyLen = mf.getPropertyAsInteger(ParamKeyLength) ; int pRecLen = mf.getPropertyAsInteger(ParamValueLength) ; return new BPlusTreeParams(pOrder, pKeyLen, pRecLen) ; } catch (NumberFormatException ex) { Log.error(BPlusTreeParams.class, "Badly formed metadata for B+Tree") ; throw new DBOpEnvException("Failed to read metadata") ; } }